Skip to content

.NET: Migrate A2A hosting to A2A SDK v1#5363

Draft
SergeyMenshykh wants to merge 1 commit intomicrosoft:a2a-agent-migrationfrom
SergeyMenshykh:migrate-a2a-hosting-1
Draft

.NET: Migrate A2A hosting to A2A SDK v1#5363
SergeyMenshykh wants to merge 1 commit intomicrosoft:a2a-agent-migrationfrom
SergeyMenshykh:migrate-a2a-hosting-1

Conversation

@SergeyMenshykh
Copy link
Copy Markdown
Member

@SergeyMenshykh SergeyMenshykh commented Apr 20, 2026

Migrates the A2A hosting layer (Microsoft.Agents.AI.Hosting.A2A and Microsoft.Agents.AI.Hosting.A2A.AspNetCore) to A2A SDK v1.

Changes

  • New A2AAgentHandler — extracted A2A agent handling logic into a dedicated class.
  • New A2AProtocolBinding enum[Flags] enum for selecting which A2A protocol bindings to expose (JSON-RPC, HTTP+JSON/REST).
  • New A2AHostingOptions — consolidates hosting configuration (protocol bindings, agent run mode, server options).
  • New A2AEndpointRouteBuilderExtensions — replaces EndpointRouteBuilderExtensions with cleaner overloads accepting either direct parameters or an Action<A2AHostingOptions> callback.
  • Simplified AIAgentExtensions — moved endpoint-mapping logic out; retains only the MapA2A adapter method.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@SergeyMenshykh SergeyMenshykh self-assigned this Apr 20, 2026
@SergeyMenshykh SergeyMenshykh moved this to In Review in Agent Framework Apr 20, 2026
@SergeyMenshykh SergeyMenshykh added .NET a2a Issue relates to A2A labels Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a2a Issue relates to A2A .NET

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

1 participant