The Playcode SDK docs grew from one page to ten, with examples
The docs for @playcode/sdk, the package your app's backend uses for AI, are now a section of their own, so you find what you need and copy code that works.
- A quick start, and a map of what you can build with each part.
- Agents in depth: tools, how a run ends, approvals, hooks, fallback models, sub-agents and spending limits.
- A chat for your users, step by step: the chat endpoint and the React hook.
- Runs that survive a restart, on your own database and queue.
- Examples from real use cases: reading invoices, sorting tickets, answering from your own data, refunds a person reviews, a weekly report.
- A reference of every option, event, error and default.
Every code sample in these pages compiles against the SDK: a test checks them on every release.