Course contents
A2A — Agents Talking to Agents
The Agent2Agent protocol: discovery through Agent Cards, tasks with a lifecycle, and where it fits next to MCP.
A2A (Agent2Agent) standardizes how independent agents, built by different teams on different frameworks, find each other and work together. Google announced it in 2025; it's now a Linux Foundation project that joined the Agentic AI Foundation in August 2026. The spec reached v1.0 in March 2026 (v1.0.1 followed in May), with official SDKs such as a2a-sdk for Python and @a2a-js/sdk for TypeScript. The point is the same as an API contract: your travel agent can hand the flight booking to an airline's agent without either side reading the other's code.
The pieces
- Agent Card: a JSON document, served at
/.well-known/agent-card.jsonon the agent's domain, that says who the agent is, what skills it offers, where to reach it, which protocol bindings it supports and how to authenticate (securitySchemes). Cards can be signed, and an agent can offer a fuller card to authenticated clients. - Message and parts: what a client sends, made of text, file or structured-data parts.
- Task: the stateful unit of work the remote agent creates, with a lifecycle you can poll, stream or subscribe to.
- Artifact: what a task produces, such as a booking confirmation or a report.
- Operations and bindings:
SendMessage,SendStreamingMessage,GetTask,ListTasks,CancelTaskandSubscribeToTask, plus push-notification configuration, over JSON-RPC, gRPC or HTTP+JSON (REST).
| Task state | What it means |
|---|---|
| submitted | Received, not started |
| working | The remote agent is on it; progress can stream |
| input-required | It needs more information from you to continue |
| auth-required | It needs you to authenticate or authorize something first |
| completed | Done; results are attached as artifacts |
| failed | It tried and couldn't finish |
| canceled | Stopped at your request |
| rejected | It declined the task |
Put one A2A delegation in order, from discovery to result.
- The task moves to input-required, and you answer in a follow-up message
- Send a message describing the job
- Authenticate using a scheme the card declares
- The task completes and returns its result as an artifact
- Fetch the remote agent's card from /.well-known/agent-card.json
- The remote agent creates a task and reports it as working
MCP and A2A: hands versus colleagues
| MCP | A2A | |
|---|---|---|
| Connects an agent to | Tools, data and prompts it uses | Other agents it delegates to |
| The other side is | A capability: called, returns | A peer: plans, runs long tasks, can ask questions |
| Typical boundary | Inside your system or a vendor's service | Across teams, companies or trust domains |
| Discovery | The client lists a server's tools | The client reads an Agent Card |
They compose. An orchestrator uses MCP for its own hands and A2A to delegate to specialist peers, each of which uses MCP internally. The A2A project's own summary makes the same split: MCP connects an agent to tools, APIs and data; A2A connects it to other agents.
MCP, A2A, or a plain function call inside your own code?
Hand a freight booking to a logistics partner's agent and track it for two days
When A2A earns its keep, and how to trust a peer
Inside one codebase you don't need A2A; in-process handoffs are simpler. Reach for it at organizational boundaries, the same places you'd publish an API: different teams, vendors or trust domains whose agents must interoperate. And treat a peer agent exactly like any external service: authenticate with the schemes its card declares, verify signed cards where offered, authorize which skills each caller may use, rate-limit, and validate every artifact as untrusted input before it touches your systems. OpenTelemetry's GenAI conventions include a document for A2A, so cross-agent calls can show up in the same traces as everything else.
Your agent delegated a return to a partner's agent. The task reports input-required. What should your agent do?
Plain-English definitions from the AI Coding Dictionary.