跳到主要内容

以流式方式提交用户输入并恢复等待中的 run

POST 

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

POST /api/workflows/{workflowName}/runs/{runId}/user-input 使用同一组校验规则, 但响应为 application/x-ndjson。恢复执行后的 output chunk、timer 和最终 run_result 会沿用首次运行相同的 NDJSON runtime event 合约返回。请求同样不接受 entrypointIdentrypoint_id;可在开流前识别的无效请求返回 HTTP 400 JSON, 开流后的执行错误仍以 error event 返回。

Request

Responses

NDJSON runtime event 流,最后一条为 run_result