Multi-Agent Orchestration in .NET Using A2A
说明与用途
展示了使用 A2A 协议和 LLM 在 .NET 中进行代理编排的示例,实现动态路由和结果聚合。
问题
Existing agents support A2A but lack a system to route user requests and aggregate results across multiple agents.
结果
The PoC demonstrates dynamic discovery of agents, LLM-driven routing, and seamless aggregation of results without code changes when adding new agents.
工作流
- Discover AgentCards from each agent
- Register each AgentCard as an AIFunction tool
- Build a FunctionInvokingChatClient with all tools
- Send user message to LLM with system prompt
- LLM selects appropriate agent tool(s) and invokes them
- Collect responses from agents
- Aggregate and return final answer to user
证据
We chose the last one because we want to have the possibility to add a new agent without any code changes.
Two agents: Assortment and SupplyChain that support A2A
- 记录日期: 2026-09-15T06:15:47.208Z