Skip to content

WorkflowDefinition

WorkflowDefinition<TInput, TOutput> = object

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

TInput

TOutput

id: string

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


optional input?: z.ZodType<TInput>

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


optional output?: z.ZodType<TOutput>

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


run: (input, ctx) => Promise<TOutput>

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

Author implementation — receives ctx from the runtime, not from the caller.

TInput

WorkflowContext

Promise<TOutput>