Workflow Quickstart
Standalone
smithers-orchestrator quickstart example. A planner task feeds a briefing task through persisted workflow output.Source
Running
Notes
- Cross-task data flow —
deps={{ plan: outputs.plan }}on thebrieftask defers it until theplantask’s output is persisted, then passes it to the(deps) => ...children callback asdeps.plan. - Shared schemas — The same Zod schemas are reused by
createSmithers(...)andOutput.object({ schema }), so task persistence and agent output stay aligned. - Vercel AI SDK —
ToolLoopAgentruns tool-call loops internally until the model stops calling tools, so you do not manage the loop yourself.Output.object({ schema })tells the Vercel AI SDK to enforce the Zod schema on the model’s JSON output.