Skip to content

.NET: Update HostedAgents samples to Azure.AI.AgentServer.AgentFramework 1.0.0-beta.9 and MEAI 10.3.0 - #4477

Merged
Roger Barreto (rogerbarreto) merged 12 commits into
mainfrom
copilot/update-sample-references-to-1-0-0-beta-9
Mar 6, 2026
Merged

.NET: Update HostedAgents samples to Azure.AI.AgentServer.AgentFramework 1.0.0-beta.9 and MEAI 10.3.0#4477
Roger Barreto (rogerbarreto) merged 12 commits into
mainfrom
copilot/update-sample-references-to-1-0-0-beta-9

Conversation

CopilotAI commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Motivation and Context

Align all HostedAgents samples to Azure.AI.AgentServer.AgentFramework 1.0.0-beta.9 and Microsoft.Extensions.AI.OpenAI 10.3.0. Several samples were pinned to older beta versions (beta.5, beta.6, beta.8) and preview MEAI builds.

Description

Azure.AI.AgentServer.AgentFramework → 1.0.0-beta.9 across all 6 samples:

  • AgentWithTools, AgentWithLocalTools, AgentThreadAndHITL (from beta.8)
  • AgentWithHostedMCP (from beta.6)
  • AgentWithTextSearchRag, AgentsInWorkflows (from beta.5)

Microsoft.Extensions.AI.OpenAI → 10.3.0 in 3 samples that were on older previews:

  • AgentThreadAndHITL (from 10.1.1-preview.1.25612.2)
  • AgentWithTextSearchRag (from 10.1.1-preview.1.25612.2)
  • AgentsInWorkflows (from 10.1.0-preview.1.25608.1)

The remaining 3 samples (AgentWithTools, AgentWithHostedMCP, AgentWithLocalTools) were already on MEAI 10.3.0.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…0.0-beta.9 and MEAI 10.3.0
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com>
CopilotAI changed the title [WIP] Update sample references to Azure.AI.AgentServer.AgentFramework 1.0.0-beta.9Update HostedAgents samples to Azure.AI.AgentServer.AgentFramework 1.0.0-beta.9 and MEAI 10.3.0Mar 4, 2026
- Rename CreateAIAgent -> AsAIAgent (AgentThreadAndHITL, AgentWithHostedMCP, AgentWithTextSearchRag)
- Rename AsAgent -> AsAIAgent (AgentsInWorkflows)
- Replace AIContextProviderFactory with AIContextProviders and simplified TextSearchProvider ctor (AgentWithTextSearchRag)
- Update Microsoft.Agents.AI.OpenAI to 1.0.0-rc2 (AgentThreadAndHITL, AgentWithTextSearchRag, AgentWithTools)
- Update Microsoft.Agents.AI.Workflows to 1.0.0-rc2 (AgentsInWorkflows)
- Add Microsoft.Agents.AI 1.0.0-rc2 reference (AgentWithHostedMCP)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ojects to slnx
- Use DefaultAzureCredential consistently across all samples
- Add AgentThreadAndHITL, AgentWithLocalTools, AgentWithTools to slnx
- Apply dotnet format
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@markwallace-microsoftMark Wallace (markwallace-microsoft) added the .NET Usage: [Issues, PRs], Target: .Net label Mar 5, 2026
@github-actionsgithub-actionsBot changed the title Update HostedAgents samples to Azure.AI.AgentServer.AgentFramework 1.0.0-beta.9 and MEAI 10.3.0.NET: Update HostedAgents samples to Azure.AI.AgentServer.AgentFramework 1.0.0-beta.9 and MEAI 10.3.0Mar 5, 2026
@rogerbarreto
Roger Barreto (rogerbarreto) marked this pull request as ready for review March 5, 2026 10:58
CopilotAI review requested due to automatic review settings March 5, 2026 10:58
…ve from AgentFramework)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the .NET HostedAgents end-to-end samples to align with newer Azure AI AgentServer AgentFramework and Microsoft.Extensions.AI.OpenAI package versions, and adjusts sample code to match updated extension APIs.

Changes:

  • Bump Azure.AI.AgentServer.AgentFramework to 1.0.0-beta.9 across all HostedAgents samples, and update select samples to Microsoft.Extensions.AI.OpenAI10.3.0.
  • Update sample code to use newer agent creation APIs (e.g., .AsAIAgent() and updated AI context provider configuration).
  • Add missing HostedAgents sample projects to dotnet/agent-framework-dotnet.slnx.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 6 comments.

Show a summary per file
FileDescription
dotnet/samples/05-end-to-end/HostedAgents/AgentsInWorkflows/Program.csUpdates workflow-to-agent conversion API usage (AsAIAgent) and removes DefaultAzureCredential warning comment.
dotnet/samples/05-end-to-end/HostedAgents/AgentsInWorkflows/AgentsInWorkflows.csprojUpdates AgentFramework + Workflows + MEAI package versions.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithTools/Program.csSwitches auth credential to DefaultAzureCredential.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithTools/AgentWithTools.csprojUpdates AgentFramework + Microsoft.Agents.AI.OpenAI package versions.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithTextSearchRag/Program.csUpdates agent creation API and moves to AIContextProviders configuration.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithTextSearchRag/AgentWithTextSearchRag.csprojUpdates AgentFramework + Microsoft.Agents.AI.OpenAI + MEAI package versions.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithLocalTools/Program.csSwitches auth credential to DefaultAzureCredential.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithLocalTools/AgentWithLocalTools.csprojUpdates AgentFramework package version.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithHostedMCP/Program.csUpdates agent creation API to AsAIAgent and removes DefaultAzureCredential warning comment.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithHostedMCP/AgentWithHostedMCP.csprojUpdates AgentFramework version and adds Microsoft.Agents.AI dependency.
dotnet/samples/05-end-to-end/HostedAgents/AgentThreadAndHITL/Program.csSwitches auth credential and updates agent creation API to AsAIAgent.
dotnet/samples/05-end-to-end/HostedAgents/AgentThreadAndHITL/AgentThreadAndHITL.csprojUpdates AgentFramework + Microsoft.Agents.AI.OpenAI + MEAI package versions.
dotnet/agent-framework-dotnet.slnxAdds HostedAgents sample projects to the solution.

Comment threaddotnet/samples/05-end-to-end/HostedAgents/AgentWithLocalTools/Program.cs Outdated
Comment threaddotnet/samples/05-end-to-end/HostedAgents/AgentWithTools/Program.cs Outdated
…gents samples
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace AzureCliCredential references with DefaultAzureCredential in all
HostedAgents README files to match the actual sample code.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@markwallace-microsoftMark Wallace (markwallace-microsoft) added the documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs label Mar 5, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationUsage: [Issues, PRs], Target: documentation in the code base and learn docs.NETUsage: [Issues, PRs], Target: .Net

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@rogerbarreto@SergeyMenshykh@westey-m@markwallace-microsoft