下载不可变产物版本的原始二进制内容。
接口
GET /agents/sessions/{session_id}/artifacts/{artifact_id}/content
下载指定 Artifact 的原始内容。成功返回 200 和二进制流。
路径参数session_idstring (必选)Artifact 所属 Sessionartifact_id string (必选)列表返回的 Artifact 版本 ID无请求体。可以发送 Accept: application/octet-stream。 | 请求示例 |
响应示例
Content-Type 为 application/octet-stream,并带有附件文件名。常见响应头:
| 响应头 | 说明 |
|---|---|
Content-Type | application/octet-stream |
Content-Length | 文件字节数 |
Content-Disposition | attachment 和文件名 |
Cache-Control | private, no-store |
错误码
| HTTP 状态码 | 错误类型 / 错误码 | 解决方案 |
|---|---|---|
404 | not_found_error / not_found_error | 使用当前工作空间中存在且未删除的 Artifact ID |
{"error":{"type","code","message","param"}},网关或路由错误可能使用不同结构。排查时保留 HTTP 状态、响应头、x-request-id 和 Artifact ID。