AI 服务/Agent
断点续播
Changed on重放进行中的 Agent 会话流。使用 X-Api-Key 鉴权。
Last-Event-ID 请求头优先于查询参数 lastEventId,两者都是与本次运行绑定的 SSE 事件 ID。已完成会话只在流仍保留时可以重放;已中止或流已过期时返回 HTTP 204。响应是 SSE,不使用 { code, data } 包裹。
get/api/ai/agent/sessions/{sessionId}/resume
Request
- Base URLhttps://aitoearn.cn
- AuthAPI key in header X-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
sessionIdstring required
会话 ID。
Query parameters
lastEventIdstring
断点续播游标。请求头 Last-Event-ID 优先于本参数。
Headers
Last-Event-IDstring
SSE 断点续播游标,优先于查询参数 lastEventId。
Response
第三方协议原生响应或 SSE 数据。不使用 AiToEarn 通用响应包裹。
object required
第三方协议原生响应,不使用 AiToEarn 通用响应包裹。
Changes
- info
endpoint added
- info