> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> What the TypeScript Agent SDK is for and when to use it.

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
* structured outputs and plugin-aware routing

It builds on top of `@ai-stats/sdk` and is the most feature-complete Agent SDK in the current language set.

## What you get

* `createAgent()`
* `defineTool()`
* `createGatewayAgentClient()`
* `continueRun()` and richer lifecycle hooks
* support for local tool concurrency, human review pauses, and typed output parsing

## Next

* [Installation](./agent-sdk-installation.mdx)
* [Usage](./agent-sdk.mdx)
