graph TD
A[用户请求] --> B[代理应用A插件请求]
B --> C{"参数校验"}
C -->|"通过"| D[执行代理应用A的业务]
C -->|"失败"| E[返回错误]
D --> F{"数据处理"}
F -->|"处理成功"| G[发送消息至代理应用B]
F -->|"数据不符"| H[返回错误]
G --> I{"代理应用B参数校验"}
I -->|"通过"| J[执行代理应用B的业务]
I -->|"失败"| K[返回错误]
J --> L[返回结果至代理应用A]
An open protocol enabling communication and interoperability between opaque agentic applications.
The Agent2Agent (A2A) protocol addresses a critical challenge in the AI landscape: enabling gen AI agents, built on diverse frameworks by different companies running on separate servers, to communicate and collaborate effectively - as agents, not just as tools. A2A aims to provide a common language for agents, fostering a more interconnected, powerful, and innovative AI ecosystem.
Make agents A2A-compliant: Expose agents built with frameworks like Google ADK, LangGraph, or BeeAI as A2A servers.
Connect agents: Create A2A clients from scratch or using integrations to connect to A2A-compliant agents.
Orchestrate workflows: Build sequential and hierarchical workflows of A2A-compliant agents.
Multi-agent systems: Build a healthcare multi-agent system using different frameworks and see how A2A enables collaboration.
A2A and MCP: Learn how A2A complements MCP by enabling agents to collaborate with each other.
Why A2A?
As AI agents become more prevalent, their ability to interoperate is crucial for building complex, multi-functional applications. A2A aims to:
Break Down Silos: Connect agents across different ecosystems.
Enable Complex Collaboration: Allow specialized agents to work together on tasks that a single agent cannot handle alone.
Promote Open Standards: Foster a community-driven approach to agent communication, encouraging innovation and broad adoption.
Preserve Opacity: Allow agents to collaborate without needing to share internal memory, proprietary logic, or specific tool implementations, enhancing security and protecting intellectual property.
Key Features
Standardized Communication: JSON-RPC 2.0 over HTTP(S).
Agent Discovery: Via “Agent Cards” detailing capabilities and connection info.
Rich Data Exchange: Handles text, files, and structured JSON data.
Enterprise-Ready: Designed with security, authentication, and observability in mind.
Getting Started
📚 Explore the Documentation: Visit the Agent2Agent Protocol Documentation Site for a complete overview, the full protocol specification, tutorials, and guides.
Partner Program: Google Cloud customers can join our partner program via this form.
What’s next
Protocol Enhancements
Agent Discovery:
Formalize inclusion of authorization schemes and optional credentials directly within the AgentCard.
Agent Collaboration:
Investigate a QuerySkill() method for dynamically checking unsupported or unanticipated skills.
Task Lifecycle & UX:
Support for dynamic UX negotiation within a task (e.g., agent adding audio/video mid-conversation).
Client Methods & Transport:
Explore extending support to client-initiated methods (beyond task management).
Improvements to streaming reliability and push notification mechanisms.
About
The A2A Protocol is an open source project under the Linux Foundation, contributed by Google. It is licensed under the Apache License 2.0 and is open to contributions from the community.
评论