POST
/
v1
/
agents
/
conversation
查询对话历史
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>"
  }
}

Authorizations

Authorization
string
header
required

使用以下格式进行身份验证:Bearer <your api key>

Body

application/json

Response

200
application/json

处理成功

The response is of type object.