Skip to content

Conversation

@jeffhandley
Copy link
Member

@jeffhandley jeffhandley commented Dec 19, 2025

Microsoft Reviewers: Open in CodeFlow

@jeffhandley jeffhandley self-assigned this Dec 19, 2025
@jeffhandley jeffhandley requested review from a team as code owners December 19, 2025 20:17
Copilot AI review requested due to automatic review settings December 19, 2025 20:17
@jeffhandley jeffhandley added the area-ai-templates Microsoft.Extensions.AI.Templates label Dec 19, 2025
Copy link
Contributor

Copilot AI left a 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.1 to 1.0.0-preview.251219.1 for Microsoft.Agents.AI packages
  • Modified AgentWorkflowBuilder.BuildSequential API usage to use named parameter agents: 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

@jeffhandley jeffhandley enabled auto-merge (squash) December 19, 2025 20:37
@jeffhandley jeffhandley merged commit 561e75b into dotnet:main Dec 19, 2025
12 of 13 checks passed
@jeffhandley jeffhandley deleted the jeffhandley/aiagent-template-update branch December 19, 2025 21:48
jeffhandley added a commit to jeffhandley/extensions that referenced this pull request Dec 20, 2025
This was referenced Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ai-templates Microsoft.Extensions.AI.Templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants