Authorizations
使用以下格式进行身份验证:Bearer <your api key>
Body
application/json
智能体ID
列表,如果为空则查询所有可用智能体
Example:
["65940acff94777010aa6b796", "assistant_2"]
🚀 GLM-4.6 代码编程专享计划 • 限时优惠 Coding Plan ➞
curl --request POST \
--url https://open.bigmodel.cn/api/paas/v4/assistant/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"assistant_id_list": [
"65940acff94777010aa6b796",
"assistant_2"
]
}'
{
"success": true,
"code": 200,
"msg": "操作成功",
"data": [
{
"assistant_id": "65940acff94777010aa6b796",
"name": "通用智能助手",
"avatar": "https://example.com/avatar.png",
"description": "一个通用的`AI`助手,可以回答各种问题",
"tools": [
"web_search",
"code_interpreter"
],
"tags": [
{
"key": "category",
"label": "通用助手"
}
],
"status": "active",
"starter_prompts": [
{}
],
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]
}
查询指定的智能体助手列表信息,包括智能体助手的详细配置、工具和元数据。
curl --request POST \
--url https://open.bigmodel.cn/api/paas/v4/assistant/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"assistant_id_list": [
"65940acff94777010aa6b796",
"assistant_2"
]
}'
{
"success": true,
"code": 200,
"msg": "操作成功",
"data": [
{
"assistant_id": "65940acff94777010aa6b796",
"name": "通用智能助手",
"avatar": "https://example.com/avatar.png",
"description": "一个通用的`AI`助手,可以回答各种问题",
"tools": [
"web_search",
"code_interpreter"
],
"tags": [
{
"key": "category",
"label": "通用助手"
}
],
"status": "active",
"starter_prompts": [
{}
],
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]
}
使用以下格式进行身份验证:Bearer <your api key>
智能体ID
列表,如果为空则查询所有可用智能体
["65940acff94777010aa6b796", "assistant_2"]
业务处理成功
true
200
"操作成功"
Hide child attributes
智能体ID
"65940acff94777010aa6b796"
智能体名称
"通用智能助手"
智能体头像URL
"https://example.com/avatar.png"
智能体描述
"一个通用的
AI助手,可以回答各种问题"
智能体支持的工具列表
["web_search", "code_interpreter"]
智能体状态
"active"
智能体的起始提示语
创建时间
"2024-01-01T00:00:00Z"
更新时间
"2024-01-01T00:00:00Z"