Skip to main content

Workflow Quickstart

Standalone smithers-orchestrator quickstart example. A planner task feeds a briefing task through persisted workflow output.

Source

Running

Notes

  • Cross-task data flowdeps={{ plan: outputs.plan }} on the brief task defers it until the plan task’s output is persisted, then passes it to the (deps) => ... children callback as deps.plan.
  • Shared schemas — The same Zod schemas are reused by createSmithers(...) and Output.object({ schema }), so task persistence and agent output stay aligned.
  • Vercel AI SDKToolLoopAgent runs 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.