# Agent Accelerator > TypeScript SDK (Bun, ships TypeScript source): one `Agent` class over Google Gemini, OpenAI, Anthropic, OpenRouter and any OpenAI-compatible service. Tools, streaming, hooks, workers, scheduled actions, steer/queue/interrupt, saved sessions with crash recovery, structured output, media input, prompt caching, budgets and retries, a telemetry bus, safe file and URL handling. Pre-1.0: pin a version. Import everything from "agent-accelerator". Paths are relative to docs/. - [For AI agents](for-ai-agents.md): decision table, a safe template, hard rules, what does NOT exist, error-to-fix lookup, notes by feature - [Getting started](getting-started.md): install, keys, first agent, streaming, a tool, running with no key, first-run errors - [How it works](how-it-works.md): a run, the conversation, providers, workers, the home folder, limits, cost, telemetry - [Agents](guides/agents.md): `Agent`, `run`/`ask`/`stream`, `additionalContext`, `stateless`, structured output (`output`), `toConfig`/`fromConfig` - [Provider notes](guides/provider-notes.md): what the adapters send to Google, OpenAI, Anthropic, OpenRouter and OpenAI-compatible services, and how they read the answer - [Models and providers](guides/models-and-providers.md): model strings and keys, `ModelProvider`, `resolveModel`, provider differences, the model catalog, `registerModel` - [Allowed models](guides/allowed-models.md): `setModels`, `listModels`, `setModel`, `setSubAgentModel`, where the list is enforced - [Reasoning and caching](guides/reasoning-and-caching.md): `thinking` levels, `cache` per provider, `serviceTier`, session affinity - [Tools](guides/tools.md): `tool()`, how a call runs, `toolContent`, `toolChoice`, `ctx.stop` approval, `hooks` (beforeTool, afterTool, beforeRequest, onYield), crash replay - [Streaming and steering](guides/streaming-and-steering.md): streaming, `steer`/`queue`/`interrupt`, `requestId`, what an interrupt stops, provider cancel behavior - [Sub-agents](guides/workers.md): fixed `subagents` (an `Agent`, or data with `name`, `description`, `instructions`), dynamic `subagents` tool, `agent.workers`, tracking, depth and spending caps - [Scheduled actions](guides/scheduled-actions.md): `agent.scheduled`, the `DD:HH:MM` time format, lifecycle, missed runs - [Sessions](guides/sessions.md): `persist`, the home folder, crash resume, the per-session lock, what is saved - [Media input](guides/media-input.md): images, audio, video and files in a prompt, per-provider rules - [Usage and cost](guides/usage-and-cost.md): `res.usage`, cost rules, `SessionTelemetry`, `agent.usageReport()` - [Limits and retries](guides/limits-and-retries.md): `maxTurns`, `limits`, `budget`, `usageLimit`, network timeouts, `retry`, `runRetries`, the `concurrency` setting - [Settings](guides/settings.md): `setConfigs`, `getConfigs`, `setConfig`, `editable`, the user's `configs.json` - [Errors and telemetry](guides/errors-and-telemetry.md): the error classes, `telemetryBus`, `telemetry: { persist: true }` - [Security](guides/security.md): what the SDK protects, a hardening checklist, known limitations - [Prompts](guides/prompts.md): the SDK's own prompts, `DEFAULT_PROMPTS`, `AgentConfig.prompts`, placeholders - [Testing](guides/testing.md): `fauxProvider(steps)`, scripted text, thinking, tool calls, usage, errors and delays - [Images](guides/images.md): `generateImage`, `listImageModels`, options checked per model, `image.edit`, `imageTool` - [Videos](guides/videos.md): `generateVideo`, `listVideoModels`, options checked per model, `video.edit`, `resumeVideo` - [Embeddings](guides/embeddings.md): `generateEmbedding`, `listEmbeddingModels`, one `task` option, `cosineSimilarity` - [Decisions](guides/decisions.md): `generateDecision`, typed `noul`, `choice` and `score` questions, probabilities and `confidence` - [Reference](reference.md): all AgentConfig keys, run options, response fields, stream events, telemetry codes, errors, environment variables - [Scheduled action files](scheduled-action-files.md): the stable on-disk format of scheduled actions, reading, editing rules, changelog - [Migration](migration.md): what changed in each 0.9 release, what was removed or renamed, and the old environment variables