Skip to content

Workflow

Defined in: packages/core/src/workflow/types.ts:103

TInput

TOutput

readonly id: string

Defined in: packages/core/src/workflow/types.ts:104

run(input, options?): WorkflowRunHandle<TOutput>

Defined in: packages/core/src/workflow/types.ts:109

Start a workflow run. The bound runtime creates WorkflowContext internally. Use workflowRunId on the handle to subscribe before result settles.

TInput

WorkflowRunStartOptions

WorkflowRunHandle<TOutput>


stream(input): WorkflowStreamHandle<TOutput>

Defined in: packages/core/src/workflow/types.ts:115

Start a run and expose live run events (steps, agents, lifecycle) for in-process consumers. Persisted history still goes through WorkflowStore; production UI may use run + SSE instead.

TInput

WorkflowStreamHandle<TOutput>