Skip to content

rakeshl4/agent_framework_structured_output

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Contoso Bike Review Analyzer

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.

Prerequisites

  • .NET 8.0 or later
  • GitHub Personal Access Token (PAT) with model access

Setup

1. Clone and Build

git clone <repository-url>
cd agent_framework_structured_output/ContosoBikeReviewAnalyzer
dotnet restore
dotnet build

2. Get GitHub Personal Access Token

  1. Go to GitHub Settings β†’ Developer Settings β†’ Personal Access Tokens
  2. Click "Generate new token (classic)"
  3. Select appropriate scopes (no special scopes needed for AI models)
  4. Copy the generated token

3. Set Environment Variable

Windows (PowerShell):

$env:GITHUB_TOKEN="your_github_token_here"

Windows (Command Prompt):

set GITHUB_TOKEN=your_github_token_here

macOS/Linux:

export GITHUB_TOKEN="your_github_token_here"

4. Run the Application

dotnet run

Sample Output

=== 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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages