跳到主要内容

公开入口以流式方式提交用户输入

POST 

/embed/api/workflows/:workflowName/runs/:runId/user-input/stream

与公开入口阻塞版 user-input 提交使用同一套 embed token、runId 和 requestId 校验, 但响应为 application/x-ndjson。恢复执行后的 output chunk 和 timer 会即时返回, 最后一条事件为 run_result。请求不接受 entrypointIdentrypoint_id; 可在开流前识别的无效请求返回 HTTP 400 JSON,开流后的执行错误仍以 error event 返回。

Request

Responses

NDJSON runtime event 流,最后一条为 run_result