Skip to content

Renaming and merging hosting extensions.#5091

Merged
alliscode merged 2 commits intomicrosoft:feature/responses-hostingfrom
alliscode:hosted-agent-adapter
Apr 3, 2026
Merged

Renaming and merging hosting extensions.#5091
alliscode merged 2 commits intomicrosoft:feature/responses-hostingfrom
alliscode:hosted-agent-adapter

Conversation

@alliscode
Copy link
Copy Markdown
Member

This pull request updates the Foundry hosting extension methods to simplify and standardize how agent-framework agents are registered and mapped as Foundry Hosted Agents using the Azure AI Responses Server SDK. The changes consolidate and rename extension methods, update documentation and usage examples, and add a new route mapping helper. Corresponding updates are made to the sample application and unit tests.

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.

…ndryResponses

- Rename extension methods: AddAgentFrameworkHandler -> AddFoundryResponses, MapAgentFrameworkHandler -> MapFoundryResponses
- AddFoundryResponses now calls AddResponsesServer() internally
- Add MapFoundryResponses() extension on IEndpointRouteBuilder
- Update sample and tests to use new API names
- Remove redundant AddResponsesServer() and /ready endpoint from sample

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions bot changed the title Rename AddAgentFrameworkHandler to AddFoundryResponses and add MapFou… .NET: Rename AddAgentFrameworkHandler to AddFoundryResponses and add MapFou… Apr 3, 2026
@alliscode alliscode changed the title .NET: Rename AddAgentFrameworkHandler to AddFoundryResponses and add MapFou… Renaming and merging hosting extensions. Apr 3, 2026
Comment thread dotnet/samples/04-hosting/FoundryResponsesHosting/Program.cs Outdated
@alliscode alliscode merged commit 23db956 into microsoft:feature/responses-hosting Apr 3, 2026
2 checks passed
alliscode added a commit to alliscode/agent-framework that referenced this pull request Apr 15, 2026
* Rename AddAgentFrameworkHandler to AddFoundryResponses and add MapFoundryResponses

- Rename extension methods: AddAgentFrameworkHandler -> AddFoundryResponses, MapAgentFrameworkHandler -> MapFoundryResponses
- AddFoundryResponses now calls AddResponsesServer() internally
- Add MapFoundryResponses() extension on IEndpointRouteBuilder
- Update sample and tests to use new API names
- Remove redundant AddResponsesServer() and /ready endpoint from sample

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fixing numbering in sample.

---------

Co-authored-by: alliscode <bentho@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants