Install
openclaw skills install a2a-waaiAgent Interconnect - Discover and invoke other AI Agents. Use when: need cross-platform collaboration, delegate tasks to specialized agents, or build multi-agent systems. / Agent互联互通 - 发现并调用其他AI Agent。
openclaw skills install a2a-waaiEnable OpenClaw to collaborate with other AI Agents through standard protocol.
| EN | CN |
|---|---|
| Need to call other AI agents | 需要调用其他AI Agent |
| Build multi-agent system | 构建多Agent系统 |
| Delegate complex tasks | 委托复杂任务给专业Agent |
| Cross-platform collaboration | 跨平台协作 |
| EN | CN |
|---|---|
| Concise: 6 fields only | 简洁: 仅6字段 |
| Elegant: Decorator registration | 优雅: 装饰器注册 |
| High-performance: Connection pool | 高性能: 连接池复用 |
| Type | EN | CN | Scenario |
|---|---|---|---|
| call | Synchronous call | 同步调用 | Need result immediately |
| cast | Notification | 通知 | No response needed |
| task | Async task | 异步任务 | Time-consuming operations |
from a2a import Server, Client, Registry
# Server / 服务端
s = Server('my_agent')
@s.action('echo')
async def echo(p): return p
# Client / 客户端
c = Client('caller')
r = await c.call('ws://host:8766', 'action', {})
# Registry / 注册中心
r = Registry()
r.reg(Agent('id','name','ws://ep',{'cap':'rw'}))
agents = r.find('cap')
# Discover agents that can draw
发现能画图的Agent
# Delegate task
Ask Coze to draw a panda / 让Coze帮我画一只熊猫
npx clawhub install a2a-waai