A2A 兼容的 Agent Card 元数据。
对应 Agentic Design Patterns 第 15 章 Inter-Agent Communication (A2A) 协议
规范的"Agent 自描述名片",通过 GET /.well-known/agent.json 暴露,
允许外部 Agent registry / orchestrator 自动发现本 Gateway 暴露的 CMDC Agent
能力清单。
字段约定
与 Google A2A Spec 保持兼容:
name— Agent 标识名(默认cmdc-gateway)description— 人类可读描述version— Gateway 版本provider— 提供方信息capabilities— 支持的能力(streaming, tools, hitl, ...)endpoints— 标准 RPC / 流式端点 URLextensions— CMDC 专属扩展(plugins / steering / model_switch / ...)
配置覆盖
通过 config :cmdc_gateway, :agent_card, %{...} 覆盖默认字段,
尤其适合多租户场景下为每个部署单元定制 name / description。
Summary
Functions
根据当前请求构建 Agent Card JSON map。
Functions
@spec build(Plug.Conn.t()) :: map()
根据当前请求构建 Agent Card JSON map。