---
title: "异步结果"
method: POST
path: "/v1/agents/async-result"
tags: ["Agent API"]
---

# 异步结果

`POST /v1/agents/async-result`

查询智能体异步任务的处理结果和状态。点击 **Try it** 按钮可快速试用。

## Request body

- object
  - `async_id` string, required — 任务ID
  - `agent_id` string, required — 智能体ID

## Response `200`

业务处理成功

- AgentAsyncResultResponse
  - `agent_id` string — 智能体`ID`
  - `async_id` string — 异步任务的`ID`
  - `status` 'success' | 'failed' | 'pending' — 任务状态，`success/failed/pending`
  - `choices` object[] — `agent`输出
    - `messages` object[]
      - `role` string — 用户的输入 `role = assistant`
      - `content` object[]
        - `type` string — 目前支持 `type=file_url`
        - `file_url` string — url链接
        - `tag_cn` string — 中文描述
        - `tag_en` string — 英文描述
  - `usage` object
    - `total_tokens` integer — 消耗总`tokens`数

## Other responses

- `default` — 请求失败。

---

[API](https://skmtc.net/bigmodel/apis/zhipu-ai-api.md) · [All operations](https://skmtc.net/bigmodel/apis/zhipu-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bigmodel/zhipu-ai-api/versions/37de2d7b73de/schema)
