llms.txt Content
# Documentation
- [Introduction](/docs): A pure, web-first, multi-provider TypeScript AI SDK with zero runtime dependencies and one canonical streaming wire.
- [Installation](/docs/installation): Install @deuz-sdk/core, check runtime requirements, and pick the optional peers and subpath exports you need.
- [Quickstart](/docs/quickstart): Streaming chat in under five minutes — Node script, Next.js route handler, and a browser client.
- Core
- [streamChat](/docs/core/stream-chat): The primary streaming entry point — canonical delta stream, lazy pump, never throws synchronously.
- [generateText](/docs/core/generate-text): Buffered, awaited text generation — single-turn, or the full agentic tool loop when you pass tools.
- [generateObject](/docs/core/generate-object): Generate a typed, schema-validated object from a model using a zod/Standard Schema or raw JSON Schema.
- [streamObject](/docs/core/stream-object): Stream a schema-validated object as it generates — partial objects on every meaningful delta, a typed final value at the end.
- [Context Compaction](/docs/core/compaction): Opt-in, layered compaction for the agentic loop — prune tool results, prune reasoning, summarize the oldest slice — with immutable, cache-safe history.
- [Embeddings](/docs/core/embeddings): Turn text into vectors with embed / embedMany across OpenAI, Gemini, and Voyage.
- [Messages & Parts](/docs/core/messages): The canonical Message/Part model every provider speaks — roles, text, vision, PDFs, and reasoning round-trips.
- [Error Handling](/docs/core/errors): The typed DeuzError taxonomy, the never-throw streaming contract, retry semantics, and the secret-redaction guarantee.
- [Dependencies & Clients](/docs/core/dependencies): The single DI seam (Dependencies) and createClient — inject fetch, clock, keys, and metering into a pure, edge-portable core.
- Providers
- [Anthropic](/docs/providers/anthropic): Claude models on the /v1/messages wire — vision,