Skip to main content
GET
Get Agent File

获取智能体生成的文件

URL: /v1/agent/files/{file_id}
方法: GET
描述: 获取智能体在对话过程中生成的文件,如报告、图表等。

路径参数

响应

成功时返回文件的二进制内容(application/octet-stream)。

请求示例

cURL
Python
TypeScript

错误响应

使用场景

  1. 下载智能体生成的报告
    • 智能体在分析过程中可能会生成 PDF 报告或 Excel 文件
    • 使用此接口下载这些生成的文件
  2. 获取图表和可视化
    • 智能体可能会生成数据可视化图表
    • 通过文件 ID 下载对应的图表文件
文件 ID 通常在智能体的事件流中返回,在 tool_output 或 workflow_end 事件中包含生成的文件信息。

Authorizations

Authorization
string
header
required

Enter your Bearer token

Path Parameters

file_id
string
required

Agent generated file ID

Response

Successful Response

The response is of type file.