Agent-to-Agent Protocol (A2A)
A2A is an open protocol enabling AI agents to communicate and collaborate across platforms. Learn how to build and connect A2A-compatible agents.
What is A2A?
A2A (Agent-to-Agent Protocol) is an open protocol that enables AI agents to discover and communicate with each other across different platforms and vendors. Originally launched by Google and now maintained by the Linux Foundation, A2A provides a standardized way for agents to collaborate on complex tasks.
Current Implementation
| Feature | Status |
|---|---|
| Streaming | A2A waits for the complete response before returning results |
| Authentication | None or API key based |
| Discovery | Via agent-card.json |
Core Concepts
AgentCards
Every A2A agent exposes an AgentCard β a JSON file at /.well-known/agent-card.json that describes the agent's capabilities. This enables automatic discovery.
json
{
"name": "Research Agent",
"description": "Searches and summarizes academic papers",
"url": "https://research-agent.example.com",
"version": "1.0.0",
"skills": [
{
"id": "paper-search",
"name": "Paper Search",
"description": "Search academic databases for relevant papers"
},
{
"id": "summarize",
"name": "Summarize Paper",
"description": "Generate a concise summary of a research paper"
}
]
}Communication Flow
- Discovery β Client fetches
/.well-known/agent-card.jsonto learn agent capabilities - Task Creation β Client sends a task request with input data
- Processing β Agent processes the task and generates a complete response
- Response β Agent returns the full result (no streaming)
When to Use A2A
| Use Case | A2A | MCP |
|---|---|---|
| Query a database | β | |
| Call an API | β | |
| Delegate research to a specialized agent | β | |
| Coordinate multiple agents on a task | β | |
| Connect to external tools/services | β | |
| Agent-to-agent collaboration | β |
Resources
- A2A Protocol Website β Official documentation and specification
- A2A GitHub Repository β Protocol specification and reference implementations
- ajan Cookbook β Runnable A2A recipes for building on ajan
Related Documentation
- MCP Integration Guide β Connect agents to tools
- MCP Server Directory β Verified MCP servers
- Agent Configuration β Configure your ajan agents