Use the TypeScript Agent SDK when your app needs more than one-shot generation:
- multi-step local tool loops
- resumable run state
- gateway-backed model turns
- validated structured outputs, streamed progress, and plugin-aware routing
It builds on top of @phaseo/sdk and defines the reference runtime contract shared by the other Agent SDK languages.
Runtime capability matrix
What you get
createAgent()
defineTool()
createGatewayAgentClient()
run(), stream(), continueRun(), and continueStream()
- executable, manual, approval-gated, and human-in-the-loop tools
- runtime input/output schemas, generator progress, composable stop conditions, and usage/cost summaries
- optional application-owned state accessors and lifecycle events for devtools
Next
Last modified on July 26, 2026