Skip to main content

Core Types

FlowContext

The context object available in every step handler:

WorkflowConfig

WorkflowStep

AgentStepResult

Returned by .agent() steps:

Builder Option Types

StepOpts

Options for .step():

BranchOpts

Options for .branch():

SwitchOpts

Options for .switch():

ForeachOpts

Options for .foreach():

AgentOpts

Options for .agent():

ParallelOpts

Options for .parallel():

Configuration Types

RetryConfig

WorkflowOptions

Graph Types

WorkflowGraph

Returned by workflow.toGraph():

Event Types

WorkflowEvents

Events emitted by Workflow during execution:

Handler Types

StepHandler

Legacy Types (Deprecated)

WorkflowContext

Next Steps

Trace Types

Observability type definitions

Workflows Guide

Learn workflow concepts