Get Agent File
智能体接口
Get Agent File
Get agent generated file by file ID
GET
Get Agent File
Documentation Index
Fetch the complete documentation index at: https://docs.reportify.cn/llms.txt
Use this file to discover all available pages before exploring further.
获取智能体生成的文件
URL:/v1/agent/files/{file_id}方法:
GET描述: 获取智能体在对话过程中生成的文件,如报告、图表等。
路径参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| file_id | string | 是 | 智能体生成的文件 ID |
响应
成功时返回文件的二进制内容(application/octet-stream)。
请求示例
cURL错误响应
| 状态码 | 描述 |
|---|---|
| 404 | 文件不存在 |
| 422 | 请求参数验证失败 |
使用场景
-
下载智能体生成的报告
- 智能体在分析过程中可能会生成 PDF 报告或 Excel 文件
- 使用此接口下载这些生成的文件
-
获取图表和可视化
- 智能体可能会生成数据可视化图表
- 通过文件 ID 下载对应的图表文件
