.NET: Update Hosted Samples References to latest beta.11#4853
Open
rogerbarreto wants to merge 3 commits intomicrosoft:mainfrom
Open
.NET: Update Hosted Samples References to latest beta.11#4853rogerbarreto wants to merge 3 commits intomicrosoft:mainfrom
rogerbarreto wants to merge 3 commits intomicrosoft:mainfrom
Conversation
…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>
Contributor
There was a problem hiding this comment.
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.AgentFramework→1.0.0-beta.11, andMicrosoft.Agents.AI*→1.0.0-rc4where applicable). - Update
FoundryMultiAgentto useAsAIAgent()(API rename) before hosting. - Remove
AgentWithToolssample 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>
fb03938 to
e069e04
Compare
SergeyMenshykh
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.