🚀 GLM-4.6 代码编程专享计划 • 限时优惠 Coding Plan ➞
cURL
curl --request POST \ --url https://open.bigmodel.cn/api/v1/agents/async-result \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "async_id": "VHJhbnNsYXRvckVudGl0eVRhc2s6OTI5OTY5", "agent_id": "intelligent_education_correction_polling" } '
{ "agent_id": "<string>", "async_id": "<string>", "status": "success", "choices": [ { "messages": [ { "role": "<string>", "content": [ { "type": "<string>", "file_url": "<string>", "tag_cn": "<string>", "tag_en": "<string>" } ] } ] } ], "usage": { "total_tokens": 123 } }
查询智能体异步任务的处理结果和状态。
使用以下格式进行身份验证:Bearer
任务ID
"VHJhbnNsYXRvckVudGl0eVRhc2s6OTI5OTY5"
智能体ID
"intelligent_education_correction_polling"
业务处理成功
ID
异步任务的ID
任务状态,success/failed/pending
success/failed/pending
success
failed
pending
agent输出
agent
Hide child attributes
用户的输入 role = assistant
role = assistant
目前支持 type=file_url
type=file_url
url链接
中文描述
英文描述
消耗总tokens数
tokens