Skip to main content

Workflow Quickstart

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

Source

Running

Notes

  • Cross-task data flowdeps={{ plan: outputs.plan }} on brief defers it until plan’s output is persisted, then passes it to the (deps) => ... callback as deps.plan.
  • Shared schemas — The same Zod schemas back both createSmithers(...) and Output.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 SDKToolLoopAgent runs tool-call loops internally until the model stops calling tools, so you don’t manage the loop yourself.