# Agent2Agent 协议

Agent2Agent 协议（A2A）是一种开放的、基于 HTTP 的协议，用于独立的 AI 智能体之间的通信。它最初由谷歌（Google）开发，于 2025 年 4 月发布，旨在让构建于不同框架、出自不同厂商的智能体能够相互发现、交换任务并汇报结果。该协议现已成为 [Linux 基金会](https://www.edgepedia.org/zh/linux-foundation)（Linux Foundation）旗下的开源项目，由来自 AWS、思科（Cisco）、谷歌、IBM 研究院（IBM Research）、微软（Microsoft）、Salesforce、SAP 和 [ServiceNow](https://www.edgepedia.org/zh/servicenow) 的代表组成的技术指导委员会维护，采用 Apache 2.0 许可证。<sup>[1](https://a2a-protocol.org/latest/)</sup><sup> • </sup><sup>[2](https://github.com/a2aproject/A2A/)</sup>

A2A 的定位刻意收得很窄。它只规范智能体之间的对话，并不规范智能体如何与自己的工具、自己的子智能体通信，也不规范智能体本身如何构建。与之最接近的对应物是 [Anthropic](https://www.edgepedia.org/zh/anthropic) 于 2024 年推出的模型上下文协议（Model Context Protocol，MCP），后者规范的是智能体与工具之间的通信；两者被设计为互补关系，而非竞争关系。<sup>[1](https://a2a-protocol.org/latest/)</sup><sup> • </sup><sup>[3](https://www.ibm.com/think/topics/agent2agent-protocol)</sup>

| 事实 | 详情 |
|---|---|
| 起源 | 2025 年 4 月 9 日由谷歌在 Cloud Next 大会上发布，有 50 余家技术合作伙伴<sup>[4](https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/)</sup><sup> • </sup><sup>[5](https://josenobile.co/guides/a2a-protocol/)</sup> |
| 管理机构 | Linux 基金会；Apache 2.0 许可证；由八家公司组成的技术指导委员会<sup>[1](https://a2a-protocol.org/latest/)</sup><sup> • </sup><sup>[2](https://github.com/a2aproject/A2A/)</sup> |
| 传输 | 基于 HTTPS 的 JSON-RPC 2.0，支持 SSE 流式传输与异步推送通知<sup>[2](https://github.com/a2aproject/A2A/)</sup><sup> • </sup><sup>[3](https://www.ibm.com/think/topics/agent2agent-protocol)</sup> |
| 当前规范 | v1.0，2026 年 3 月 12 日发布，新增签名智能体卡与多租户支持<sup>[5](https://josenobile.co/guides/a2a-protocol/)</sup> |
| 规模 | 150 余家支持机构；五套生产级 SDK（Python、JavaScript、Java、Go、.NET）<sup>[6](https://mikezupper.com/posts/a2a-agent-to-agent-protocol/)</sup> |
| 代码仓库 | 25,480 颗星，2,583 次复刻，创建于 2025 年 3 月 25 日（2026 年 9 月数据）<sup>[2](https://github.com/a2aproject/A2A/)</sup> |
| 平台支持 | Azure AI Foundry、Copilot Studio、Amazon Bedrock AgentCore Runtime、Vertex AI/Agent Engine<sup>[6](https://mikezupper.com/posts/a2a-agent-to-agent-protocol/)</sup><sup> • </sup><sup>[5](https://josenobile.co/guides/a2a-protocol/)</sup> |

## 起源与治理

谷歌于 2025 年 4 月将 A2A 作为开放协议推出，获得 50 余家技术合作伙伴的支持与贡献，包括 [Atlassian](https://www.edgepedia.org/zh/atlassian)、Box、Cohere、Intuit、Langchain、MongoDB、PayPal、Salesforce、SAP、ServiceNow、UKG 和 Workday，以及[埃森哲](https://www.edgepedia.org/zh/accenture)（Accenture）、BCG、凯捷（Capgemini）、德勤（Deloitte）、印孚瑟斯（Infosys）、毕马威（KPMG）、麦肯锡（McKinsey）、普华永道（PwC）、TCS 和威普罗（Wipro）等服务提供商（厂商自述）。<sup>[4](https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/)</sup> 发布两个月后，谷歌将协议捐赠给 Linux 基金会，由来自 AWS、思科、谷歌、IBM 研究院、微软、Salesforce、SAP 和 ServiceNow 的技术指导委员会治理。<sup>[5](https://josenobile.co/guides/a2a-protocol/)</sup><sup> • </sup><sup>[1](https://a2a-protocol.org/latest/)</sup>

区分发布时的背书者与后来的参与者，对解读采用率声明很重要。50 余家发布合作伙伴签署的是一份支持声明；项目在 2026 年引用的 150 余家组织是在“支持”这一标准，这一范畴比实际生产部署更宽泛，独立分析明确指出了这一点。<sup>[7](https://rywalker.com/research/google-a2a)</sup>

## 工作原理

A2A 运行在现有 Web 基础设施之上。智能体通过 HTTPS 通信，以 JSON-RPC 2.0 作为数据交换格式。<sup>[3](https://www.ibm.com/think/topics/agent2agent-protocol)</sup> 仓库中的规范描述了通过 HTTP(S) 上的 JSON-RPC 2.0 进行标准化通信的方式，交互模式包括同步请求/响应、基于服务器发送事件（Server-Sent Events，SSE）的流式传输和异步推送通知，并支持文本、文件和结构化 JSON 数据。<sup>[2](https://github.com/a2aproject/A2A/)</sup>

协议的核心概念包括：

- **智能体卡（Agent Card）。** 每个智能体用一份 JSON 格式的“智能体卡”声明自身能力，使客户端智能体能够为任务挑选最合适的智能体；卡片同时携带连接信息。<sup>[4](https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/)</sup><sup> • </sup><sup>[2](https://github.com/a2aproject/A2A/)</sup>
- **客户端智能体与远程智能体。** 通信始于客户端智能体拟定任务并发送给选定的远程智能体，由后者执行。<sup>[3](https://www.ibm.com/think/topics/agent2agent-protocol)</sup><sup> • </sup><sup>[4](https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/)</sup>
- **任务与产物。** 任务的输出称为“产物”（artifact）；消息携带带类型的“部分”（parts），以便双方协商用户体验层面的细节。<sup>[4](https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/)</sup>
- **长时间运行的工作。** 协议支持从快速请求到耗时数小时乃至数天的深度研究等各类任务，提供实时反馈、通知与状态更新，并且与模态无关，包括音频和视频流（厂商自述）。<sup>[4](https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/)</sup>
- **企业级认证。** A2A 在设计上支持企业级认证与授权，发布时与 OpenAPI 的认证方案对等（厂商自述）。<sup>[4](https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/)</sup>

## A2A 与 MCP 及其他协议

两大主流智能体协议之间的分工在两个项目的文档中都有明确表述：MCP 规范智能体与工具之间的通信；A2A 规范智能体与智能体之间的通信，二者互补。<sup>[1](https://a2a-protocol.org/latest/)</sup> IBM 的解读文章将 Anthropic 于 2024 年推出的 MCP 描述为一种标准化层，让 AI 应用能够与 API、数据源和工具等外部服务通信，而 A2A 则聚焦于智能体之间的协作。<sup>[3](https://www.ibm.com/think/topics/agent2agent-protocol)</sup> 谷歌在发布时对 A2A 的定位也是如此。<sup>[4](https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/)</sup>

A2A 也明确说明了自己不是什么：它不是 [LangGraph](https://www.edgepedia.org/zh/langgraph)、[CrewAI](https://www.edgepedia.org/zh/crewai) 或谷歌 ADK 那样的智能体开发套件，也不规定智能体如何与自己的子智能体通信或调用自己的工具；它是用上述任一工具构建的智能体之间的通信层。<sup>[1](https://a2a-protocol.org/latest/)</sup>

其他协议则占据相邻的领域。IBM 的 ACP 是一种基于 REST、以对话为中心的协议，已被并入 A2A 协议本身。<sup>[8](https://a2a-protocol.org/v1.0.0/)</sup> 思科的 agntcy 为“智能体互联网”（Internet of Agents）提供组件，涵盖发现、群组通信、身份与可观测性，并且是借助 A2A 和 MCP 而非取代它们。<sup>[8](https://a2a-protocol.org/v1.0.0/)</sup> 独立的对比研究进一步作出了区分：ANP 通过 W3C DID 追求去中心化身份，而 A2A 使用标准 OAuth 与企业认证；Summoner 为跨组织交易提供持久化的签名状态，而 A2A 更简单但状态性较弱；CrewAI 和 AutoGen 是框架，不是协议。<sup>[7](https://rywalker.com/research/google-a2a)</sup>

## 采用与实现

目前存在五套生产级 SDK，分别面向 Python、JavaScript、Java、Go 和 .NET。<sup>[6](https://mikezupper.com/posts/a2a-agent-to-agent-protocol/)</sup> 各大云平台已将 A2A 内建：微软将其原生集成进 [Azure AI Foundry](https://www.edgepedia.org/zh/azure-ai-foundry) 和 [Copilot Studio](https://www.edgepedia.org/zh/copilot-studio)，因此在 Foundry 中构建的任何智能体默认都可从 Azure 外部通过 A2A 调用；AWS 为 Amazon Bedrock AgentCore Runtime 增加了 A2A 支持；谷歌云的 [Vertex AI](https://www.edgepedia.org/zh/vertex-ai) 和 Agent Engine 也在 2026 年提供了相应支持。<sup>[5](https://josenobile.co/guides/a2a-protocol/)</sup><sup> • </sup><sup>[6](https://mikezupper.com/posts/a2a-agent-to-agent-protocol/)</sup>

2026 年有具名生产工作负载报告的包括[泰森食品](https://www.edgepedia.org/zh/tyson-foods)（Tyson Foods）、Gordon Food Service、标普全球市场财智（S&P Global Market Intelligence）、ServiceNow 和 Adobe（分析师所述）。<sup>[5](https://josenobile.co/guides/a2a-protocol/)</sup> 这些数字来自厂商和分析师来源；在所查阅的来源中，未发现对部署深度的独立审计。

## 数字一览

- **支持机构：** 截至 2026 年为 150 余家，高于一年前发布时的 50 余家。<sup>[6](https://mikezupper.com/posts/a2a-agent-to-agent-protocol/)</sup> Linux 基金会提到企业生产使用，但 150 余家支持机构并不意味着 150 余个生产部署。<sup>[7](https://rywalker.com/research/google-a2a)</sup>
- **GitHub 星数：** 在 v1.0 里程碑（2026 年 4 月）时，核心规范仓库有 22,000 余颗星；仓库自身的元数据显示，截至 2026 年 9 月，这个创建于 2025 年 3 月 25 日的仓库有 25,480 颗星、2,583 次复刻和 242 个未关闭议题。<sup>[6](https://mikezupper.com/posts/a2a-agent-to-agent-protocol/)</sup><sup> • </sup><sup>[2](https://github.com/a2aproject/A2A/)</sup>
- **SDK：** 五套，语言如上所列。<sup>[6](https://mikezupper.com/posts/a2a-agent-to-agent-protocol/)</sup>
- **规范版本：** 2025 年全年为 0.x，2026 年为 v1.0。<sup>[5](https://josenobile.co/guides/a2a-protocol/)</sup>

这些数字没有包含的是任何独立的互操作性测试结果、性能基准或成本测量；所查阅的来源中只有厂商和分析师的说法。

## 安全、局限与批评

协议的安全指南有文档记载，但属于建议性质。规范明确指出推送通知 webhook 存在 SSRF（服务端请求伪造）风险，并指示服务器不要区分“未找到”与“未授权”响应，以免泄露信息；这些都是指引而非强制。<sup>[6](https://mikezupper.com/posts/a2a-agent-to-agent-protocol/)</sup> v1.0 的签名智能体卡增加了对签发者身份的密码学验证，但没有协议层面的信任评分；有效签名只能证明卡片由谁签发，不能证明该智能体是否可信。<sup>[5](https://josenobile.co/guides/a2a-protocol/)</sup><sup> • </sup><sup>[7](https://rywalker.com/research/google-a2a)</sup>

发现机制是公认的薄弱环节。智能体卡是静态 JSON，没有动态市场或语义匹配；在较小规模下，使用约定路径的 URI 和硬编码配置尚可运作，但目前尚不存在可按技能、标签或提供方查询的标准化注册表；有分析认为，在已使用该协议的行业之外大举押注该协议之前，应先解决发现机制问题。<sup>[7](https://rywalker.com/research/google-a2a)</sup><sup> • </sup><sup>[6](https://mikezupper.com/posts/a2a-agent-to-agent-protocol/)</sup>

任务模型是有状态的，并沿一条定义好的生命周期推进；规范针对企业编排而非独立开发者体验进行了优化，使得上手比 MCP 更重。<sup>[7](https://rywalker.com/research/google-a2a)</sup> v1.0 还引入了相对 0.x 的破坏性变更，包括移除 `kind` 判别字段以及迁移扩展智能体卡的位置，要求早期采用者进行迁移。<sup>[7](https://rywalker.com/research/google-a2a)</sup>

## References

1. [A2A Protocol — official project site](https://a2a-protocol.org/latest/)
2. [a2aproject/A2A — GitHub repository](https://github.com/a2aproject/A2A/)
3. [What Is Agent2Agent (A2A) Protocol? — IBM](https://www.ibm.com/think/topics/agent2agent-protocol)
4. [Announcing the Agent2Agent Protocol (A2A) — Google Developers Blog](https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/)
5. [A2A Protocol v1.0: Agent-to-Agent Interoperability — Jose Nobile](https://josenobile.co/guides/a2a-protocol/)
6. [A2A: The Protocol That Treats Other Agents as Partners, Not Tools — Mike Zupper](https://mikezupper.com/posts/a2a-agent-to-agent-protocol/)
7. [Google A2A (Agent2Agent Protocol) — Ry Walker Research](https://rywalker.com/research/google-a2a)
8. [A2A Protocol v1.0.0 — official site](https://a2a-protocol.org/v1.0.0/)

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Foundation-model methods and training › Prompting, reasoning, and agents

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/agent2agent-protocol

English original: https://www.edgepedia.org/agent2agent-protocol
