Getting Started
A first agent with tools and streaming, the built-in tools, typed JSON answers and a scaffolded project.
+++ 4 recipes +++
Your First Agenteasy5 minYou want an agent that answers questions with your own data: a tool with a Zod schema, a normal run, a streamed run and the token usage.Built-in Toolseasy5 minYou need an analyst that reads files and does exact math instead of guessing, without writing the tools yourself.Structured Outputeasy5 minYou need typed JSON from the model — a support ticket classified into fields your code can switch on — not free text.Scaffold a Projecteasy5 minYou want a ready-to-run project — package.json, tsconfig, an agent and a tool — generated from code, e.g. inside your own tooling.