Workflow Quickstart
Standalone
smithers-orchestrator quickstart: a planner task feeds a briefing task through persisted workflow output.Source
Running
Notes
- Cross-task data flow —
deps={{ plan: outputs.plan }}onbriefdefers it untilplan’s output is persisted, then passes it to the(deps) => ...callback asdeps.plan. - Shared schemas — The same Zod schemas back both
createSmithers(...)andOutput.object({ schema })(which tells the Vercel AI SDK to enforce the schema on the model’s JSON output), keeping task persistence and agent output aligned. - Vercel AI SDK —
ToolLoopAgentruns tool-call loops internally until the model stops calling tools, so you don’t manage the loop yourself.