跳到主要内容

管理端流式运行 workflow

POST 

/api/workflows/:workflowName/run/stream

Workflow 省略入口时运行目标版本默认入口;Conversation 不接受入口字段。 Server 会在发送 NDJSON 响应头前固定精确版本并校验入口,未知入口返回 HTTP 400 JSON, 不创建 run。开始流式响应后的执行错误继续使用 NDJSON error event。 Kanban 调用该接口返回 409 且不创建运行记录。

Request

Responses

NDJSON 流,每行是 runtime event、run_result 或 error;runtime event 包含 timer_started / timer_finished,用于展示业务计时卡片。