curl --request POST \
--url https://open.bigmodel.cn/api/v1/agents/conversation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"conversation_id": "<string>",
"custom_variables": {
"include_pdf": true,
"pages": [
{
"position": 123,
"width": 123,
"height": 123
}
]
}
}
'{
"conversation_id": "<string>",
"agent_id": "<string>",
"choices": [
{
"message": [
{
"role": "<string>",
"content": [
{
"type": "<string>",
"tag_cn": "<string>",
"tag_en": "<string>",
"file_url": "<string>",
"image_url": "<string>"
}
]
}
]
}
],
"error": {
"code": "<string>",
"message": "<string>"
}
}查询智能体对话历史,现仅支持 slides_glm_agent 智能体
curl --request POST \
--url https://open.bigmodel.cn/api/v1/agents/conversation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"conversation_id": "<string>",
"custom_variables": {
"include_pdf": true,
"pages": [
{
"position": 123,
"width": 123,
"height": 123
}
]
}
}
'{
"conversation_id": "<string>",
"agent_id": "<string>",
"choices": [
{
"message": [
{
"role": "<string>",
"content": [
{
"type": "<string>",
"tag_cn": "<string>",
"tag_en": "<string>",
"file_url": "<string>",
"image_url": "<string>"
}
]
}
]
}
],
"error": {
"code": "<string>",
"message": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.bigmodel.cn/llms.txt
Use this file to discover all available pages before exploring further.
智能体 ID
对话 ID
处理成功
对话 ID
智能体 ID
Agent output.
Hide child attributes
Hide child attributes
智能体的角色 role = assistant
智能体响应内容
Hide child attributes
响应内容类型:文件下载链接-file_url、图片下载链接-image_url
CN Tag.
EN Tag.
如果 type = file_url,则这个字段给出文件的具体下载链接
如果 type = image_url,则这个字段给出图片的具体下载链接