API 参考执行
线程事件流
通过 SSE 提供线程运行的实时输出:`delta`、`boundary` 帧,以及 `changed`、`reset`、`gap`。
GET
/api/v1/threads/{thread_id}/stream通过 SSE 提供线程运行的实时输出:delta、boundary 帧,以及 changed、reset、gap。
认证与授权Bearer <token>
工作空间 API 密钥(a13n_...)
传递位置: header
路径参数
thread_id*Thread Id
查询参数
run?string|null
position?|null
请求头参数
Last-Event-ID?|null
X-Workspace-ID?|
登录会话作用的工作空间 ID,登录会话必须提供。API 密钥作用于自身工作空间,无需提供;禁止指定其他工作空间。
响应体
text/event-stream
application/json
application/json
curl -X GET "https://example.com/api/v1/threads/string/stream"无