Build stateful agent workflows with typed outputs, reusable tools, session forks, and ordinary TypeScript.