WorkflowDefinition
WorkflowDefinition<
TInput,TOutput> =object
Defined in: packages/core/src/workflow/types.ts:62
Type Parameters
Section titled “Type Parameters”TInput
Section titled “TInput”TInput
TOutput
Section titled “TOutput”TOutput
Properties
Section titled “Properties”id:
string
Defined in: packages/core/src/workflow/types.ts:63
input?
Section titled “input?”
optionalinput?:z.ZodType<TInput>
Defined in: packages/core/src/workflow/types.ts:64
output?
Section titled “output?”
optionaloutput?: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.
Parameters
Section titled “Parameters”TInput
Returns
Section titled “Returns”Promise<TOutput>