CreateWorkflowConfig

Interface: CreateWorkflowConfig<TInputSchema, TOutputSchema, TStateSchema>

Defined in: packages/workflow-core/src/define/define-workflow.ts:43

Type Parameters

TInputSchema

TInputSchema extends SchemaInput | undefined

TOutputSchema

TOutputSchema extends SchemaInput | undefined

TStateSchema

TStateSchema extends SchemaInput | undefined

Properties

defaultStepRetry?

ts
optional defaultStepRetry: StepRetryOptions;
optional defaultStepRetry: StepRetryOptions;

Defined in: packages/workflow-core/src/define/define-workflow.ts:65

Default retry policy applied to every ctx.step() call that doesn't carry its own { retry } option.


description?

ts
optional description: string;
optional description: string;

Defined in: packages/workflow-core/src/define/define-workflow.ts:49


id

ts
id: string;
id: string;

Defined in: packages/workflow-core/src/define/define-workflow.ts:48


initialize()?

ts
optional initialize: (args) => TStateSchema extends SchemaInput ? Partial<InferSchema<TStateSchema<TStateSchema>>> : Record<string, unknown>;
optional initialize: (args) => TStateSchema extends SchemaInput ? Partial<InferSchema<TStateSchema<TStateSchema>>> : Record<string, unknown>;

Defined in: packages/workflow-core/src/define/define-workflow.ts:56

Parameters

args
input

TInputSchema extends SchemaInput ? InferSchema<TInputSchema<TInputSchema>> : unknown

Returns

TStateSchema extends SchemaInput ? Partial<InferSchema<TStateSchema<TStateSchema>>> : Record<string, unknown>


input?

ts
optional input: TInputSchema;
optional input: TInputSchema;

Defined in: packages/workflow-core/src/define/define-workflow.ts:53


output?

ts
optional output: TOutputSchema;
optional output: TOutputSchema;

Defined in: packages/workflow-core/src/define/define-workflow.ts:54


state?

ts
optional state: TStateSchema;
optional state: TStateSchema;

Defined in: packages/workflow-core/src/define/define-workflow.ts:55


version?

ts
optional version: string;
optional version: string;

Defined in: packages/workflow-core/src/define/define-workflow.ts:52

Caller-supplied version identifier (e.g. 'v1', '2026-05-15'). Used with selectWorkflowVersion for cross-version routing.