Agent-to-Agent Communication Explained: A2A, Handoffs and More
How AI agents talk to each other: in-process handoffs and shared state, and the A2A protocol's Agent Cards, tasks, messages and artifacts, as of A2A v1.0.
Agent-to-agent communication is how separate AI agents pass work, questions and results to one another. Inside a single application, agents usually communicate through the framework itself: one agent hands the conversation to another, calls it like a tool, or reads and writes a shared state object. When agents run in different services, companies or frameworks, they need a common protocol, and the leading open standard for that is Agent2Agent (A2A), whose latest release as of November 2026 is version 1.0.0 [1].
If you're new to systems with several agents, start with our explainer on multi-agent systems, which covers why and when to split work. This piece focuses on the communication layer itself.
Two very different situations
The phrase "agents talking to each other" covers two cases with different engineering needs.
Inside one application | Across a boundary | |
|---|---|---|
Example | A triage agent routing to a billing agent in the same codebase | Your procurement agent asking a supplier's quoting agent for a price |
Who controls both sides | You | Different teams, vendors or companies |
What can be shared | Memory, state, tools, full history | Only what each side chooses to expose |
Typical mechanism | Framework handoffs, agents-as-tools, shared graph state | A network protocol such as A2A |
Main concern | Clarity of control flow | Discovery, authentication, long-running tasks, trust |
Communication inside one application
Handoffs
A handoff transfers control. In the OpenAI Agents SDK, a triage agent routes the conversation to a specialist, and "that specialist becomes the active agent for the rest of the turn" [7]. The specialist answers the user directly.
Agents as tools
Here the caller keeps control. A manager agent calls a specialist as if it were a function and gets a result back; OpenAI's docs say the manager "keeps control of the conversation" and can combine several specialists' outputs [7]. The docs recommend this when a specialist should handle a bounded subtask and "should not take over the user-facing conversation" [7]. (For how tool calls work, see AI agent tools and function calling.)
Shared state
In graph frameworks, agents often never message each other directly. Each node reads a shared state object and returns updates. In LangGraph, nodes return partial updates that are merged into the state, and a Command object lets one step both update state and choose which node runs next [8]. Communication happens through the state, which also makes it easy to save and inspect. Our LangGraph architecture explainer goes deeper.
These in-process methods are simple and fast, but they assume both agents live in the same program and trust each other completely.
Communication across boundaries: the A2A protocol
Where A2A came from
Google launched A2A in April 2025. On June 23, 2025, the Linux Foundation announced it would host the protocol as a vendor-neutral project, with more than 100 technology companies supporting it at the time [4]. In August 2026, A2A joined the Agentic AI Foundation (AAIF) as a hosted project, alongside MCP [5]. The AAIF dates version 1.0, the first stable release of the specification, to March 2026 [5]. The official site lists six SDKs, for Python, Go, Java, JavaScript, C#/.NET and Rust, all implementing the same v1.0 specification [2].
The core idea: opaque agents
A2A's defining design choice is that agents collaborate without sharing their internals. The specification calls this "Opaque Execution": agents collaborate based on declared capabilities and exchanged information, without sharing their internal thoughts, plans or tool implementations [1]. The official site puts it as agents that "interact without needing to share internal memory, tools, or proprietary logic" [2]. That's what makes it practical between organizations: you can delegate to a partner's agent without seeing, or trusting, how it works inside.
The building blocks
A2A client and A2A server. The client is the application or agent that starts a request. The server, also called the remote agent, exposes an A2A endpoint and processes the work [1].
Agent Card. A JSON document describing the agent's identity, capabilities, skills, endpoints and authentication requirements [1]. Clients can find it at a well-known URL, /.well-known/agent-card.json on the agent's domain, through a registry or catalog, or by direct configuration [1]. The card declares optional capabilities such as streaming and push notifications [1]. An authenticated client can request an extended Agent Card with more detail if the server supports it [1]. In v1.0, cards can be signed using JWS [3].
Task. The unit of work, with an ID, status, history and outputs [1]. Tasks move through defined states: submitted, working, input required, auth required, and the terminal states completed, failed, canceled and rejected [1]. The "input required" and "auth required" states let a remote agent pause and ask for more information or credentials, which matters for jobs that take minutes or days.
Message. One turn of communication, with a role (user or agent) and one or more parts [1]. An optional context ID groups related tasks into one conversation [1].
Part. The content container. In v1.0, a part holds exactly one of text, raw bytes, a URL or structured JSON data, plus optional metadata, a filename and a media type [1]. Earlier versions had separate text, file and data part types; v1.0 merged them [3].
Artifact. The output a task produces, made of parts. The spec advises returning results as artifacts rather than as messages [1].
How a typical exchange works
- Discover. The client fetches the remote agent's Agent Card and reads its skills, endpoint and security schemes [1].
- Authenticate. The client obtains credentials out of band (for example, through OAuth) and sends them in protocol-appropriate headers or metadata on every request [1].
- Send. The client sends a message. The server either replies directly or creates a task [1].
- Follow progress. The client can poll the task, open a stream that delivers ordered updates over Server-Sent Events, or register a webhook for push notifications [1].
- Collect results. When the task reaches a terminal state, the client reads its artifacts [1].
Operations and bindings
As of v1.0, the operations are named SendMessage, SendStreamingMessage, GetTask, ListTasks, CancelTask, SubscribeToTask, four push-notification configuration operations, and GetExtendedAgentCard [1]. They can run over three standard bindings: JSON-RPC, gRPC, and HTTP+JSON/REST [1].
What changed in v1.0
If you used A2A in 2025, several things moved in v1.0 [3]:
- Slash-style method names such as
message/sendandtasks/getbecameSendMessageandGetTask. - A
ListTasksoperation with cursor-based pagination was added. - Enum values became prefixed uppercase names such as
TASK_STATE_COMPLETED. - Part types were unified, and
mediaTypereplacedmimeType. - Agent Card endpoint fields were consolidated into
supportedInterfaces. - OAuth implicit and password flows were removed; a device code flow was added.
- A
tenantfield was added for multi-tenant deployments.
Clients signal their version with an A2A-Version header; an empty value is treated as 0.3 [1].
A2A vs MCP
The two protocols are often mentioned together because they solve neighboring problems. The A2A site's summary is blunt: "MCP connects an agent to tools, APIs, and data. A2A connects it to other agents. Use both." [2]
MCP | A2A | |
|---|---|---|
Connects | An AI application to tools, data and prompts [6] | One agent to another agent [1] |
The other side is | A server exposing defined capabilities | An autonomous, opaque agent |
Unit of work | A tool call, resource read or prompt [6] | A task with a lifecycle and artifacts [1] |
Long-running work | Optional Tasks extension [6] | Core: task states, streaming, push [1] |
Discovery | Configured by the host application | Agent Card at a well-known URL or registry [1] |
Wire format | JSON-RPC 2.0 [6] | JSON-RPC, gRPC or HTTP+JSON [1] |
The A2A spec's own appendix describes them as complementary: a client asks a remote agent to perform a complex task over A2A, and that agent may use MCP internally to reach the tools and data it needs [1]. For MCP itself, see our MCP explainer.
Framework support (as of November 2026)
- CrewAI treats A2A as a "first-class delegation primitive." Agents can delegate to remote A2A agents via an
A2AClientConfigpointing at an Agent Card, or be exposed as A2A servers; the server config's default protocol version is 0.3.0 [9]. - Microsoft Agent Framework can host agents over A2A in .NET, Python and Go, publish an Agent Card at the well-known path, and maps A2A's context ID to its own session ID in Python [10].
- Google's Agent Development Kit (ADK) documents exposing and consuming agents over A2A in several languages [11].
Version mismatches are a practical issue: some tools default to 0.3 while the spec is at 1.0, so check which version both sides speak.
Security and trust
Crossing an organizational boundary means treating the other agent as untrusted.
- Authenticate every call. A2A servers must reject missing or invalid credentials, and supported schemes include API keys, HTTP auth, OAuth 2.0, OpenID Connect and mutual TLS [1].
- Treat replies as untrusted input. A remote agent's output can contain instructions aimed at your agent. Validate artifacts before acting on them; see AI agent security and governance.
- Don't confuse metadata with authorization. Microsoft's docs warn that forwarded runtime metadata "isn't an authentication boundary" [10].
- Verify identity. Signed Agent Cards in v1.0 help clients check that a card wasn't tampered with [3].
- Keep a human gate on high-impact delegation. Long-running tasks with "input required" states are a natural place for human-in-the-loop approval.
How to choose a communication method
- Same codebase, same team? Use your framework's handoffs, agents-as-tools or shared state [7][8]. A protocol adds overhead you don't need.
- Different services you own, different frameworks? A2A lets a CrewAI agent call a Microsoft Agent Framework agent without custom glue [9][10].
- Different companies? A2A's opacity, Agent Cards and task lifecycle were designed for this [1][2].
- Just need a capability, not a decision-maker? Expose it as an MCP tool rather than an agent [6].
Outlook
A2A's move under the Agentic AI Foundation in 2026 [5] puts it alongside other agent standards in neutral governance. The v1.0 changes [3], such as multi-tenancy, signed cards and task listing, point toward production use between organizations. Watch for registries that make Agent Cards discoverable at scale, and for how quickly frameworks move from 0.3 to 1.0 support.
Frequently asked questions
What is the A2A protocol?
Agent2Agent (A2A) is an open standard for communication between independent AI agents. Agents publish an Agent Card describing their skills and endpoint, and clients send them messages that create tasks with tracked states and output artifacts [1]. Google launched it in 2025, and it's now governed in the open [4][5].
Is A2A a replacement for MCP?
No. MCP connects an agent to tools and data; A2A connects agents to other agents [2]. A remote agent reached over A2A may itself use MCP for its tools [1].
What is an Agent Card?
A JSON metadata document that describes an agent's identity, skills, endpoints and authentication requirements [1]. Clients usually fetch it from /.well-known/agent-card.json on the agent's domain [1].
Do my agents need A2A if they're in the same app?
Usually not. In-process agents can use framework features such as handoffs, agents-as-tools or shared graph state [7][8]. A2A earns its overhead when agents cross process, framework or company boundaries.
How does A2A handle tasks that take hours?
Tasks have explicit states, including "input required" and "auth required" for pauses [1]. Clients can poll, subscribe to a Server-Sent Events stream, or register a webhook to receive push notifications when status changes [1].
Sources
- A2A Project, "Agent2Agent (A2A) Protocol Specification." https://a2a-protocol.org/latest/specification/
- A2A Project, official site. https://a2a-protocol.org/latest/
- A2A Project, "What's New in v1.0." https://a2a-protocol.org/latest/whats-new-v1/
- Linux Foundation, "Linux Foundation Launches the Agent2Agent Protocol Project to Enable Secure, Intelligent Communication Between AI Agents." https://linuxfoundation.org/press/linux-foundation-launches-the-agent2agent-protocol-project-to-enable-secure-intelligent-communication-between-ai-agents
- Agentic AI Foundation, "A2A joins AAIF's open agentic stack." https://aaif.io/blog/a2a-joins-aaif
- Model Context Protocol, "Specification" (revision 2026-07-28). https://modelcontextprotocol.io/specification/2026-07-28
- OpenAI Agents SDK documentation, "Orchestrating multiple agents." https://openai.github.io/openai-agents-python/multi_agent/
- LangGraph documentation, "Graph API overview." https://docs.langchain.com/oss/python/langgraph/graph-api
- CrewAI documentation, "A2A Agent Delegation." https://docs.crewai.com/en/learn/a2a-agent-delegation
- Microsoft Learn, "Host agents with A2A." https://learn.microsoft.com/en-us/agent-framework/integrations/a2a
- Google, Agent Development Kit documentation. https://adk.dev/