A2a

v1.2.0

Agent Interconnect - Discover and invoke other AI Agents. Use when: need cross-platform collaboration, delegate tasks to specialized agents, or build multi-a...

0· 372· 3 versions· 0 current· 0 all-time· Updated 23h ago· MIT-0

Install

openclaw skills install a2a-waai

🔗 A2A - Agent Interconnect / Agent 互联互通

Enable OpenClaw to collaborate with other AI Agents through standard protocol.

When to Use / 使用场景

ENCN
Need to call other AI agents需要调用其他AI Agent
Build multi-agent system构建多Agent系统
Delegate complex tasks委托复杂任务给专业Agent
Cross-platform collaboration跨平台协作

Design / 设计原则

ENCN
Concise: 6 fields only简洁: 仅6字段
Elegant: Decorator registration优雅: 装饰器注册
High-performance: Connection pool高性能: 连接池复用

Message Types / 消息类型

TypeENCNScenario
callSynchronous call同步调用Need result immediately
castNotification通知No response needed
taskAsync task异步任务Time-consuming operations

Core API / 核心API

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')

Examples / 示例

# Discover agents that can draw
发现能画图的Agent

# Delegate task
Ask Coze to draw a panda / 让Coze帮我画一只熊猫

Installation / 安装

npx clawhub install a2a-waai

Author / 作者

  • WaaiOn

Version tags

latestvk976b8yamz945zkby8mzfrcyfd830tjt

Runtime requirements

🔗 Clawdis
Binspython3