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>"
}
}
使用以下格式进行身份验证:Bearer <your api key>
处理成功
The response is of type object
.