-
Notifications
You must be signed in to change notification settings - Fork 849
Update Microsoft.Agents.AI.ProjectTemplates to latest Agent Framework #7167
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
Update Microsoft.Agents.AI.ProjectTemplates to latest Agent Framework #7167
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 updates the AI Agent project templates to use the latest Agent Framework packages (dated December 19, 2025). The changes adapt the templates to work with updated API signatures in the Agent Framework.
Key changes:
- Updated package versions from
1.0.0-preview.251114.1to1.0.0-preview.251219.1for Microsoft.Agents.AI packages - Modified
AgentWorkflowBuilder.BuildSequentialAPI usage to use named parameteragents:with collection initializer syntax - Updated
AddAsAIAgent()to require an agent name parameter ("publisher-agent") - Re-enabled .NET 8.0 framework support in tests
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| eng/packages/ProjectTemplates.props | Updated three Microsoft.Agents.AI package versions to latest preview dated 251219 |
| src/ProjectTemplates/Microsoft.Agents.AI.ProjectTemplates/templates/AIAgentWebApi-CSharp/Program.cs | Updated workflow builder API call to use named parameter syntax and added agent name to registration |
| test/ProjectTemplates/Microsoft.Agents.AI.ProjectTemplates.IntegrationTests/AIAgentWebAPIExecutionTests.cs | Re-enabled net8.0 framework testing by removing version restriction comment |
| test/ProjectTemplates/Microsoft.Agents.AI.ProjectTemplates.IntegrationTests/Snapshots/aiagent-webapi/aiagent-webapi._defaults.verified/aiagent-webapi/Program.cs | Updated snapshot to reflect new API usage |
| test/ProjectTemplates/Microsoft.Agents.AI.ProjectTemplates.IntegrationTests/Snapshots/aiagent-webapi/aiagent-webapi.o.verified/aiagent-webapi/Program.cs | Updated snapshot to reflect new API usage |
| test/ProjectTemplates/Microsoft.Agents.AI.ProjectTemplates.IntegrationTests/Snapshots/aiagent-webapi/aiagent-webapi.oai.verified/aiagent-webapi/Program.cs | Updated snapshot to reflect new API usage |
| test/ProjectTemplates/Microsoft.Agents.AI.ProjectTemplates.IntegrationTests/Snapshots/aiagent-webapi/aiagent-webapi.aoai_ID_F.verified/aiagent-webapi/Program.cs | Updated snapshot to reflect new API usage |
| test/ProjectTemplates/Microsoft.Agents.AI.ProjectTemplates.IntegrationTests/Snapshots/aiagent-webapi/aiagent-webapi.aoai_ID_T.verified/aiagent-webapi/Program.cs | Updated snapshot to reflect new API usage |
Microsoft Reviewers: Open in CodeFlow