Skip to content

WorkflowResult

Defined in: packages/schema/src/workflow.ts:152

Workflow 执行结果

workflowId: string

Defined in: packages/schema/src/workflow.ts:153


outputs: string[]

Defined in: packages/schema/src/workflow.ts:155

输出 Asset ID 列表


optional stepOutputs?: Record<string, string[]>

Defined in: packages/schema/src/workflow.ts:164

各 transform 节点的输出 Asset ID(按 node.id 索引)。

仅在单 target 工作流(无 outputs.targets)执行成功时填充, 多 target 场景由于同一节点会有多份输出而留空(undefined)。 调用方据此获取中间步骤结果(如 pipeline UI 展示各步产物), 无需自行拆分工作流绕过 runtime 调度。


duration: number

Defined in: packages/schema/src/workflow.ts:166

执行耗时(毫秒)


status: "completed" | "cancelled" | "failed"

Defined in: packages/schema/src/workflow.ts:168

执行状态


optional error?: string

Defined in: packages/schema/src/workflow.ts:170

错误信息(status=failed 时)