Skip to main content
POST
/
v1
/
agents
/
async-result
异步结果
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
  }
}

Authorizations

Authorization
string
header
required

使用以下格式进行身份验证:Bearer

Body

application/json
async_id
string
required

任务ID

Example:

"VHJhbnNsYXRvckVudGl0eVRhc2s6OTI5OTY5"

agent_id
string
required

智能体ID

Example:

"intelligent_education_correction_polling"

Response

业务处理成功

agent_id
string

智能体ID

async_id
string

异步任务的ID

status
enum<string>

任务状态,success/failed/pending

Available options:
success,
failed,
pending
choices
object[]

agent输出

usage
object