-
Notifications
You must be signed in to change notification settings - Fork 1.1k
.NET: Add sample to show multiple AIContextProvider usage #3284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a comprehensive sample demonstrating how to use multiple AIContextProvider instances with agents, addressing issue #2933. The sample shows how to aggregate multiple providers and demonstrates practical use cases including a todo list manager and calendar integration.
Changes:
- Added a new sample Agent_Step20_AdditionalAIContext that demonstrates AIContextProvider usage
- Implemented an AggregatingAIContextProvider to combine multiple context providers
- Updated the main README to reference the new sample
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| dotnet/samples/GettingStarted/Agents/README.md | Added entry for the new Step 20 sample with description |
| dotnet/samples/GettingStarted/Agents/Agent_Step20_AdditionalAIContext/Program.cs | Main sample code implementing TodoListAIContextProvider, CalendarSearchAIContextProvider, and AggregatingAIContextProvider with demonstration usage |
| dotnet/samples/GettingStarted/Agents/Agent_Step20_AdditionalAIContext/Agent_Step20_AdditionalAIContext.csproj | Project file with necessary dependencies and configuration matching other samples |
| dotnet/agent-framework-dotnet.slnx | Added the new project to the solution file |
Motivation and Context
#2933
Description
Contribution Checklist