multi-agent-a2a
Help a learner compose agents as networked services using the open Agent-to-Agent (A2A) protocol — expose an agent as an A2A server and consume a remote agent as a peer. Use for Lesson 7 tasks: multi-agent orchestration and A2A client/server wiring.
- License 许可
- MIT
- 最近更新
- 2026-10-31
- Stars
- ★ 198
- Forks
- 72
01 前言 Front Matter
- name
- multi-agent-a2a
- description
- Help a learner compose agents as networked services using the open Agent-to-Agent (A2A) protocol — expose an agent as an A2A server and consume a remote agent as a peer. Use for Lesson 7 tasks: multi-agent orchestration and A2A client/server wiring.
03 SKILL.md 正文
Multi-agent & A2A
Guidance for composing agents over the Agent-to-Agent (A2A) protocol (Lesson 7).
Guardrails (always apply)
- Terminology: A2A (Agent-to-Agent) — an open protocol for agents to call each other as peers.
- Uses preview packages:
agent-framework-a2a,a2a-sdk, anduvicorn(pinned inrequirements.txtwith a preview note). Present these as preview, not GA. - Config via
.env:A2A_HOST,A2A_PORT,A2A_SERVER_URL. Modelsgpt-5.1/gpt-5-codex.
Concepts a learner should grasp
- Agents as services: instead of one process holding every agent, each agent can be exposed over A2A and called remotely — enabling reuse, independent scaling and cross-team composition.
- Server vs client: the server publishes an agent (with an agent card) over A2A; the client
discovers and calls it as a peer using
A2AAgent. - Orchestration: a coordinating agent can delegate sub-tasks to specialised remote agents.
Worked example in this repo (validated live)
lesson-7-multi-agent-a2a/a2a_server.py— exposes a Foundry agent over A2A (default port 9000).lesson-7-multi-agent-a2a/a2a_client.py— consumes the remote agent as a peer and prints its response. This pair was validated end-to-end against a live Foundry agent.
How to help
- Start the server, then run the client; confirm
A2A_SERVER_URLmatches the server's host/port. - Adapt the server's underlying agent (instructions/tools) rather than rewriting the A2A plumbing.
- Keep the preview caveat visible when advising on production use.
Validate
python -m py_compileon both server and client.- Client should reach the running server and return a real model response.
References
lesson-7-multi-agent-a2a/README.md
04 同仓库更多 Skills
microsoft-toolbox
Help a learner use Microsoft Toolbox to define tools once and govern them centrally, then consume a toolbox from an agent through a single MCP endpoint. Use for Lesson 6 tasks: tool discovery, registration, governance, and versioning.
mcp-integration
Help a learner give an agent tools through the Model Context Protocol (MCP) — both client-side MCP and Foundry Hosted MCP tools. Use when connecting an agent to an MCP server (e.g. the GitHub MCP server), adding a remote tool, or reasoning about MCP approval/governance.
hosted-agent-deployment
Help a learner deploy an agent to production as a Microsoft Foundry Hosted Agent, and decide when Capability Hosts are needed. Use for Lessons 4–5: hosted deployment, thread/memory persistence, bring-your-own storage, and enterprise governance.
foundry-agent-basics
Help a learner build their first AI agent with the Microsoft Agent Framework (MAF) on Microsoft Foundry. Use when the task is creating a basic agent, wiring up FoundryChatClient, choosing a model, running the DevUI, or understanding lesson 1–2 concepts (instructions, tools, threads).
agent-evaluation
Help a learner evaluate and observe an AI agent on Microsoft Foundry — quality/safety evaluators, tracing, and reading results. Use for Lesson 3 tasks: measuring agent performance, adding observability, or interpreting evaluation output.