Skip to content

Commit 6a4c117

Browse files
committed
docs(a2a): add usage instructions for /agents endpoint
Expand documentation to include how to list and invoke agents using the /agents command with JSON format.
1 parent db4c370 commit 6a4c117

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

docs/a2a/index.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permalink: /a2a
2020
- A2A Agent 即 Tool。即你可以将支持 A2A 的 Agent,作为类似于 MCP 中的 Tool 来使用。
2121
- A2A Debugger。即你可以通过 A2A Debugger 来调试 A2A Agent。
2222

23-
### A2A Agent as Tool
23+
### A2A Agent as Tool: `/a2a`
2424

2525
Enable the MCP server in AutoDev settings, and Config with A2A
2626

@@ -45,17 +45,34 @@ Enable the MCP server in AutoDev settings, and Config with A2A
4545

4646
如下是示例的 DevIns Command:
4747

48-
```devin
48+
<devin>
4949
/a2a
5050
```json
5151
{
5252
"agent": "code-reviewer",
5353
"message": "Please review this code for potential security vulnerabilities"
5454
}
55-
\`\`\`
56-
55+
```
5756
Legacy format also supported:
5857
/a2a code-reviewer "Please review this code for potential issues"
5958
/a2a documentation-writer "Generate documentation for this module"
6059
/a2a test-generator "Create unit tests for the PaymentService class"
61-
```
60+
</devin>
61+
62+
### Agent Tool: `/agents`
63+
64+
List all available agents.
65+
66+
/agents
67+
68+
Invoke a specific agent with JSON format:
69+
70+
<devin>
71+
/agents
72+
```json
73+
{
74+
"agent": "code-reviewer",
75+
"message": "Please review this code for potential security vulnerabilities"
76+
}
77+
```
78+
</devin>

0 commit comments

Comments
 (0)