Skip to main content

MDX (default)

This standalone hello-world example isn’t installed by the default init pack: copy it into .smithers/workflows/ to try it, then edit the copied prompt or inline task to change what the agent says:
Run it:
Change the instruction (ask for a haiku, say) and run again: no TypeScript needed. See MDX Workflow Authoring for how to create your own MDX-backed workflows.

TypeScript SDK

When you need branching, schemas, or parallel tasks, write the workflow in TypeScript:
Run it:
createSmithers registers a greeting table with a message field; Task sends the prompt to the agent and persists the structured output. If the workflow crashes mid-run, re-running replays completed tasks from storage and continues from the last incomplete step.