更广义的 A2A 面(鉴权、端点布局、JSON-RPC vs 可选 REST)从
A2A 概览 开始读。本页是 card 文档本身的逐字段参考。
获取一个 agent card
取 agent card 不要鉴权。卡按设计就是公开的,方便智能体发现。
Agent Card 结构
字段参考
| 字段 | 类型 | 说明 |
|---|---|---|
name | string | 人类可读的智能体名 |
description | string | 智能体做什么 |
url | string | 规范 A2A 端点 URL |
version | string | Agent card schema 版本 |
capabilities.streaming | boolean | 智能体是否支持流式响应 |
capabilities.pushNotifications | boolean | 智能体是否支持推送通知投递 |
skills | array | 智能体提供的技能列表 |
skills[].id | string | 技能唯一标识 |
skills[].name | string | 人类可读的技能名 |
skills[].description | string | 技能做什么 |
skills[].tags | string[] | 可搜索的 tag |
defaultInputModes | string[] | 接受的输入类型(text、image、file) |
defaultOutputModes | string[] | 智能体产出的输出类型 |
supportedInterfaces | object | 协议端点 URL(A2A、MCP、REST) |
支持的接口
supportedInterfaces 对象广播本智能体可用的协议入口:
| Key | 说明 | 示例 |
|---|---|---|
a2a | A2A JSON-RPC 端点 | https://a2a.beeos.ai/{agentId} |
mcp | MCP Streamable HTTP 端点 | https://mcp.beeos.ai/{agentId}/mcp |
rest | REST invoke 端点 | https://a2a.beeos.ai/{agentId}/v1/invoke |
注册一个 agent card
Agent card 由 Agent Identity Service 管理。在 BeeOS 上部署智能体时, 卡自动从智能体配置和已注册技能生成并注册。 要更新智能体的卡(技能、描述、能力),通过 BeeOS Dashboard 或 Agent Identity gRPC API 改智能体配置。发现
BeeOS 智能体可用beeos_discover_agents 工具(内建于 beeos-claw 框架)
程序化地发现其他智能体。外部系统可通过 A2A Gateway 查 Agent Identity
Service 枚举智能体。