A .NET application that demonstrates structured output capabilities using the Microsoft Agent Framework. This application analyzes customer bike reviews and extracts structured insights using AI models hosted on GitHub.
- .NET 8.0 or later
- GitHub Personal Access Token (PAT) with model access
git clone <repository-url>
cd agent_framework_structured_output/ContosoBikeReviewAnalyzer
dotnet restore
dotnet build- Go to GitHub Settings β Developer Settings β Personal Access Tokens
- Click "Generate new token (classic)"
- Select appropriate scopes (no special scopes needed for AI models)
- Copy the generated token
Windows (PowerShell):
$env:GITHUB_TOKEN="your_github_token_here"Windows (Command Prompt):
set GITHUB_TOKEN=your_github_token_heremacOS/Linux:
export GITHUB_TOKEN="your_github_token_here"dotnet run=== Contoso Bike Review Analyzer ===
β
Review analyzer initialized successfully!
Analyzing sample customer reviews...
π Analysis Results:
π Sentiment: positive
π Summary: Customer is happy with the Mountain Explorer bike's performance for trail riding, praising its climbing ability and frame quality, but notes seat comfort and delivery time issues.
β
Positive Highlights: solid frame, smooth shifting, good for climbing hills
β οΈ Issues Mentioned: uncomfortable seat for long rides, slow delivery (3 weeks)