Skip to content

.NET: Update Hosted Samples References to latest beta.11#4853

Open
rogerbarreto wants to merge 3 commits intomicrosoft:mainfrom
rogerbarreto:issues/update-samples-references-beta.11
Open

.NET: Update Hosted Samples References to latest beta.11#4853
rogerbarreto wants to merge 3 commits intomicrosoft:mainfrom
rogerbarreto:issues/update-samples-references-beta.11

Conversation

@rogerbarreto
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings March 23, 2026 11:53
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation .NET labels Mar 23, 2026
@github-actions github-actions bot changed the title .Net: Update Hosted Samples References to latest beta.11 .NET: Update Hosted Samples References to latest beta.11 Mar 23, 2026
rogerbarreto and others added 2 commits March 23, 2026 11:55
…al to UseFoundryTools

Update all 8 HostedAgents samples:
- Azure.AI.AgentServer.AgentFramework -> 1.0.0-beta.11
- Microsoft.Agents.AI.OpenAI -> 1.0.0-rc4
- Microsoft.Agents.AI/AzureAI/Workflows -> 1.0.0-rc4
- Azure.AI.Projects -> 2.0.0-beta.1
- Fix Workflow.AsAgent() -> AsAIAgent() in FoundryMultiAgent
- Pass credential to UseFoundryTools in AgentWithTools (resolves #56802)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove the AgentWithTools hosted agent sample as the UseFoundryTools
backend is no longer supported. Updated HostedAgents README and solution
file to remove all references.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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

Updates the .NET HostedAgents end-to-end samples to align with newer Azure AI AgentServer / Agent Framework package versions and removes the deprecated AgentWithTools sample and its associated documentation/configuration.

Changes:

  • Bump HostedAgents sample NuGet references (notably Azure.AI.AgentServer.AgentFramework1.0.0-beta.11, and Microsoft.Agents.AI*1.0.0-rc4 where applicable).
  • Update FoundryMultiAgent to use AsAIAgent() (API rename) before hosting.
  • Remove AgentWithTools sample files and references from the HostedAgents README and solution.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
dotnet/samples/05-end-to-end/HostedAgents/README.md Removes AgentWithTools references and updates Foundry setup/environment variable guidance accordingly.
dotnet/samples/05-end-to-end/HostedAgents/FoundrySingleAgent/FoundrySingleAgent.csproj Updates sample package versions for the Foundry single-agent hosted sample.
dotnet/samples/05-end-to-end/HostedAgents/FoundryMultiAgent/Program.cs Updates workflow hosting call to AsAIAgent() to match current APIs.
dotnet/samples/05-end-to-end/HostedAgents/FoundryMultiAgent/FoundryMultiAgent.csproj Updates package versions and normalizes project file header.
dotnet/samples/05-end-to-end/HostedAgents/AgentsInWorkflows/AgentsInWorkflows.csproj Updates package versions for the workflow-based hosted sample.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithTextSearchRag/AgentWithTextSearchRag.csproj Updates package versions for the RAG hosted sample.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithLocalTools/AgentWithLocalTools.csproj Updates package versions for the local-tools hosted sample.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithHostedMCP/AgentWithHostedMCP.csproj Updates package versions for the hosted-MCP sample.
dotnet/samples/05-end-to-end/HostedAgents/AgentThreadAndHITL/AgentThreadAndHITL.csproj Updates package versions for the HITL/threading hosted sample.
dotnet/agent-framework-dotnet.slnx Removes the AgentWithTools project from the solution.
dotnet/samples/05-end-to-end/HostedAgents/AgentWithTools/* Deletes the AgentWithTools sample assets (program, docs, deployment files, and request examples).

… rc4 compatibility

Azure.AI.OpenAI 2.9.0-beta.1 has breaking changes (GetResponsesClient no
longer accepts deployment name, ResponsesClient.Model removed) that are
incompatible with Microsoft.Agents.AI.OpenAI rc4. Pin to 2.8.0-beta.1 and
use GetResponsesClient(deploymentName).AsAIAgent() pattern.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rogerbarreto rogerbarreto force-pushed the issues/update-samples-references-beta.11 branch from fb03938 to e069e04 Compare March 23, 2026 13:03
@rogerbarreto rogerbarreto self-assigned this Mar 23, 2026
@rogerbarreto rogerbarreto moved this to In Review in Agent Framework Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

4 participants