OptionalmaxConcurrency?: numberMaximum number of graph-scheduled nodes running in parallel. undefined
means unlimited; must be a positive integer otherwise. Does not throttle
dynamic (ctx.runNode) children.
OptionaldynamicEntry?: neverEdge definitions used to build the workflow graph.
An imperative entry function driving execution via ctx.runNode(...).
Mutually exclusive with edges.
Optionaledges?: never
Configuration for a Workflow.
A workflow is driven either by a static
edgesgraph or by an imperativedynamicEntryfunction — exactly one is required, and the two are mutually exclusive. The type is a discriminated union so that constraint is enforced at compile time (the runtime constructor keeps the equivalent throws for JS callers).