← 返回
AI智能

A2a

Agent Interconnect - Discover and invoke other AI Agents. Use when: need cross-platform collaboration, delegate tasks to specialized agents, or build multi-a...
代理互联 —— 发现并调用其他AI代理。适用场景:跨平台协作、委托任务给专业代理,或构建多代理...
huaibuer
AI智能 clawhub v1.2.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 664
下载
💾 11
安装
1
版本
#latest

概述

🔗 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

版本历史

共 1 个版本

  • v1.2.0 当前
    2026-03-29 21:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,602
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,058 📥 797,053
security-compliance

Skill Guard

huaibuer
Skill Security Scanner - Scan for risks before download/use. Use when: installing unknown skills, evaluating third-party
★ 0 📥 587