Notes
- Direct children run sequentially;
<Sequence>is only needed inside other control-flow components. - Two ways to get
<Workflow>, both equivalent. You can eitherimport { Workflow } from "smithers-orchestrator"(top-level export) or destructure it fromcreateSmithers(...); they render the identical node. The factory’sWorkflowis a thin pass-through to the same component (it injects no schema or context), unlikeTask/Approval/Sandbox/Signal, which the factory wires to the run’s context and your output schemas. Convention: destructureWorkflowfromcreateSmithersalongsideTask,smithers, andoutputsso the workflow’s components all come from one place; this is what the example above and ~95% ofexamples/do. ImportingWorkflow(orSequence,Branch,Loop,Parallel, also pure structural components) directly from"smithers-orchestrator"is equally valid and handy in tiny single-file workflows. - Custom Drizzle tables require
runId,nodeId, anditerationcolumns with a composite primary key(run_id, node_id, iteration). Tasks outside a<Loop>writeiteration = 0.