Skip to main content

MDX (default)

This is a standalone hello-world example, not a workflow installed by the default init pack. Copy it into .smithers/workflows/ if you want to try it. Edit the copied prompt or inline task to change what the agent says:
Run it:
Change the instruction - for example, ask for a haiku instead - 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 structured output. If the workflow crashes mid-run, re-running replays completed tasks from storage and continues from the last incomplete step.