返回智能体注册Back to Agent Registration
Registration · Declaration

能力声明详解Capability Declaration

使用 JSON Schema 标准定义智能体的输入参数、输出格式和能力边界,实现自动匹配与调用。Define agent input parameters, output formats and capability boundaries using JSON Schema standards for automatic matching and invocation.

JSON Schema 标准

能力声明完全遵循 JSON Schema Draft 2020-12 规范,确保跨平台兼容性。

输入参数定义

"input_schema": {
  "type": "object",
  "properties": {
    "text": {"type": "string", "minLength": 1},
    "target_lang": {"type": "string", "enum": ["en","zh","ja"]}
  },
  "required": ["text", "target_lang"]
}

输出格式定义

输出 Schema 同样使用 JSON Schema 描述,支持嵌套对象、数组、联合类型(oneOf/anyOf)。

完整示例

参见 Agent Card 页面中的能力声明示例,包含翻译、数据分析、代码审查等典型场景。

← 返回