Agent Communication Protocol
Github
  • ACP(智能体通信协议)介绍
    • 为什么选择ACP?
    • ACP架构图
    • AID智能体身份标识
    • ACP证书管理体系
    • Agent会话时序
    • Agent的通信协议
      • ACP底层协议
      • ACP消息格式
    • Agent数据规范
      • agentprofile.json规范
      • config.json规范
    • Agent授权与交易
    • Agent的发现机制
    • Agent行为及安全规范
    • 一些设计的理念和原则
  • ACP SDK快速入门
    • Agent如何接入智能体互联网
    • 接入点部署
    • Agent例程
      • 一、创建身份&读写公私有数据
      • 二、agent的hello world
      • 三、把在线大模型封装成agent
        • 1.deepseek异步响应
        • 2.qwen3大模型流式输出
        • 3.qwen3大模型function calling
      • 四、把本地大模型封装成agent
      • 五、通过调用大模型agent来替代直接对大模型的调用
      • 六、调用api的方式来实现天气查询的agent
      • 七、通过使用agent的方式来完成天气的查询
      • 八、把输出写入到文件的agent
      • 九、读取文件数据输出的agent
      • 十、将python执行器封装成agent
      • 十一、对agent实现串行和并行的调用
      • 十二、HCP 天气问答智能体
      • 十三、将dify实现的agent接入agent互联网
        • 1.dify chat接入
        • 2.dify workflow接入
      • 十四、用agently来实现agent
      • 十五、将阿里百炼平台上封装的agent接入agent互联网
      • 十六、千问大模型智能体接入程序
      • 十七、生成agent调用关系图
  • 常见问题FAQ
  • 其它
由 GitBook 提供支持
在本页
  • 1. 概述
  • 2. 字段定义
  • 3. JSON示例
  • 4. 注意事项
  1. ACP(智能体通信协议)介绍
  2. Agent数据规范

agentprofile.json规范

1. 概述

agentprofile.json 是ACP协议中描述智能体能力的标准化配置文件,用于:

  • 搜索引擎收录:支持通过关键字、能力语义等字段检索智能体

  • 授权与协作:定义智能体的输入/输出规范、授权模式及兼容性

2. 字段定义

2.1 基础信息

字段

类型

必选

描述

publisherInfo

dict

是

发布者信息,包含实名认证签名

version

string

是

版本号(语义化版本,如1.0.0)

lastUpdated

string

是

ISO8601格式更新时间(UTC时区)

name

string

是

智能体名称(唯一标识)

description

string

是

面向用户的自然语言描述

capabilities

list

是

能力关键词列表(如["nlp", "data-cleaning"])

2.2 授权信息

"authorization": {
    "modes": ["time-bound", "token-limited"],  # 授权模式
    "feeStructure": {"perToken": 0.01},       # 费用结构
    "description": "授权描述文本",
    "sla": {"uptime": 99.9}                   # 服务等级协议
}

2.3 输入/输出规范

字段

子字段

类型

示例

input/output

types

list

["text", "json", "file"]

formats

dict

{"json": "RFC8259", "file": [".csv"]}

examples

dict

{"json": {"sample": "value"}}

semantics

list

["tabular-data"](语义标签)

compatibleAids

list

["aid.data-collector.*"](通配符支持)

2.4 操作特性

字段

类型

描述

avaUrl

string

头像URL地址

supportStream

bool

是否支持流式处理

supportAsync

bool

是否支持异步调用

permissions

list

可访问的AID列表(如["aid.report-manager"])

3. JSON示例

{
  "publisherInfo": {
    "publisherAid": "search.agentunion.cn",
    "organization": "agentunion.cn",
    "certificationSignature": "agentunion.cn"
  },
  "avaUrl": "https://img0.baidu.com/it/u=727206602,4114969606&fm=253&fmt=auto&app=138&f=JPEG?w=285&h=285",
  "version": "1.0.0",
  "lastUpdated": "2025-05-08T07:13:27Z",
  "name": "智能体搜索",
  "description": "搜索网络中存在的各种能力的智能体",
  "capabilities": {
    "core": [
      "搜索智能体"
    ],
    "extended": []
  },
  "llm": {
    "model": "qwen-plus",
    "num_parameters": "",
    "quantization_bits": "",
    "context_length": ""
  },
  "references": {
    "knowledgeBases": [
      ""
    ],
    "tools": [
      ""
    ],
    "companyInfo": [
      ""
    ],
    "productInfo": [
      ""
    ]
  },
  "authorization": {
    "modes": [
      "free"
    ],
    "fee": {},
    "description": "当前智能体免费使用,无费用",
    "sla": {}
  },
  "input": {
    "types": [
      "content"
    ],
    "formats": [
      "json"
    ],
    "examples": {
      "type": "content",
      "format": "text",
      "content": "搜索智能体:xxx"
    },
    "semantics": [
      ""
    ],
    "compatibleAids": [
      "*"
    ]
  },
  "output": {
    "types": [
      "content"
    ],
    "formats": [
      "markdown"
    ],
    "examples": {
      "type": "content",
      "format": "markdown",
      "content": ""
    },
    "semantics": [
      ""
    ],
    "compatibleAids": [
      ""
    ]
  },
  "supportStream": true,
  "supportAsync": true,
  "permission": [
    "*"
  ]
}

4. 注意事项

  1. 签名验证:certificationSignature 需使用根证书背书的数字签名

  2. 版本控制:建议遵循语义化版本规范(如MAJOR.MINOR.PATCH)

  3. 流式处理:若supportStream为true,输入/输出中需包含流类型(如audio-stream)

  4. 权限管理:permissions字段支持通配符(如aid.report.*)


上一页Agent数据规范下一页config.json规范

最后更新于22天前