Skip to content

Commit 54b5503

Browse files
committed
docs(a2a): update protocol section and add usage examples
Rename section to "A2A Overview" and add details on AutoDev's A2A integration and usage examples.
1 parent 25f8f07 commit 54b5503

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

docs/a2a/index.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,41 @@
11
---
22
layout: default
3-
title: A2A Protocol
3+
title: A2A Overview
44
nav_order: 7
55
has_children: true
66
permalink: /a2a
77
---
88

99
在 issue [#435](https://github.com/unit-mesh/auto-dev/issues/435), 我们创建了 AutoDev 的 A2A 功能。
1010

11-
# A2A
12-
13-
> 全称为Agent to Agent Protocol,是由Google推出的一个开放协议,旨在实现不同AI智能体之间的互操作性,
11+
> A2A 全称为Agent to Agent Protocol,是由Google推出的一个开放协议,旨在实现不同AI智能体之间的互操作性,
1412
> 促进它们在动态多智能体环境下的有效通信和协作。简单来说,A2A协议就像是为AI智能体之间提供了一套标准化的“语言”,
1513
> 使得不同厂商、不同技术框架的AI智能体能够像人与人交流一样,互相理解、互相协作,共同完成任务
14+
15+
## AutoDev A2A
16+
17+
在 AutoDev 中,我们使用 https://github.com/a2aproject/a2a-java 实现了对 A2A 协议的支持。当前 AutoDev 支持
18+
两种的 A2A 功能:
19+
20+
- A2A Agent 即 Tool。即你可以将支持 A2A 的 Agent,作为类似于 MCP 中的 Tool 来使用。
21+
- A2A Debugger。即你可以通过 A2A Debugger 来调试 A2A Agent。
22+
23+
24+
### A2A Agent as Tool
25+
26+
如下是示例的 DevIns Command:
27+
28+
```devin
29+
/a2a
30+
```json
31+
{
32+
"agent": "code-reviewer",
33+
"message": "Please review this code for potential security vulnerabilities"
34+
}
35+
\`\`\`
36+
37+
Legacy format also supported:
38+
/a2a code-reviewer "Please review this code for potential issues"
39+
/a2a documentation-writer "Generate documentation for this module"
40+
/a2a test-generator "Create unit tests for the PaymentService class"
41+
```

0 commit comments

Comments
 (0)