# Ai

> TanStack AI aims to simplify the development of intelligent applications by abstracting LLM interactions into a unified, type-safe API. It enables developers to build chat interfaces, agent systems, and multimodal tools without vendor lock-in, while providing rich tooling for debugging, streaming, and server-client synchronization. The SDK is designed for modern frameworks (React, Solid, Vue, Svelte) and integrates with TanStack Start to eliminate duplication of logic between client-side AI tools and server functions.

**Remember:**
- Provider-agnostic adapters
- Multimodal content support
- Agent loop strategies
- Headless chat state management
- Isomorphic tool execution (server/client)
- TanStack Start integration with `createServerFnTool`

## Docs
- [Devtools](https://github.com/tanstack/ai/blob/main/docs/getting-started/devtools.md): install & quickstart.
- [Overview](https://github.com/tanstack/ai/blob/main/docs/getting-started/overview.md): install & quickstart.
- [Quick Start](https://github.com/tanstack/ai/blob/main/docs/getting-started/quick-start.md): install & quickstart.
- [Reference](https://github.com/tanstack/ai/blob/main/docs/reference/index.md): API reference.
- [Generate Docs](https://github.com/tanstack/ai/blob/main/scripts/generate-docs.ts): docs page.
- [Agentic Cycle](https://github.com/tanstack/ai/blob/main/docs/guides/agentic-cycle.md): docs page.
- [Ai](https://github.com/tanstack/ai/blob/main/docs/api/ai.md): API reference.
- [Ai Client](https://github.com/tanstack/ai/blob/main/docs/api/ai-client.md): API reference.
- [Ai React](https://github.com/tanstack/ai/blob/main/docs/api/ai-react.md): API reference.
- [Ai Solid](https://github.com/tanstack/ai/blob/main/docs/api/ai-solid.md): API reference.

## Tutorials
- [README](https://github.com/tanstack/ai/blob/main/examples/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/examples/php-slim/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/examples/python-fastapi/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/examples/ts-group-chat/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/examples/ts-react-chat/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/examples/ts-solid-chat/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/examples/ts-svelte-chat/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/examples/ts-vue-chat/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/examples/vanilla-chat/README.md): install & quickstart.
- [Ts Vue Chat](https://github.com/tanstack/ai/blob/main/examples/ts-vue-chat/index.html): worked example.

## API
- [Api.Chat](https://github.com/tanstack/ai/blob/main/testing/panel/src/routes/api.chat.ts): API reference.
- [Api.List Traces](https://github.com/tanstack/ai/blob/main/testing/panel/src/routes/api.list-traces.ts): API reference.
- [Api.Load Trace](https://github.com/tanstack/ai/blob/main/testing/panel/src/routes/api.load-trace.ts): API reference.
- [Api.Tanchat](https://github.com/tanstack/ai/blob/main/packages/typescript/smoke-tests/e2e/src/routes/api.tanchat.ts): API reference.

## Optional
- [Changelog](https://github.com/tanstack/ai/blob/main/CHANGELOG.md): version history.
- [Changelog](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-anthropic/CHANGELOG.md): version history.
- [Changelog](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-client/CHANGELOG.md): version history.
- [Changelog](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-devtools/CHANGELOG.md): version history.
- [Changelog](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-gemini/CHANGELOG.md): version history.
- [Changelog](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-ollama/CHANGELOG.md): version history.
- [Changelog](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-openai/CHANGELOG.md): version history.
- [Changelog](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-react-ui/CHANGELOG.md): version history.
- [Changelog](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-react/CHANGELOG.md): version history.
- [Changelog](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-solid-ui/CHANGELOG.md): version history.
- [Claude](https://github.com/tanstack/ai/blob/main/CLAUDE.md): docs page.
- [Code Of Conduct](https://github.com/tanstack/ai/blob/main/CODE_OF_CONDUCT.md): docs page.
- [README](https://github.com/tanstack/ai/blob/main/README.md): docs page.
- [Eslint.Config](https://github.com/tanstack/ai/blob/main/eslint.config.js): docs page.
- [Prettier.Config](https://github.com/tanstack/ai/blob/main/prettier.config.js): docs page.
- [Verify Links](https://github.com/tanstack/ai/blob/main/scripts/verify-links.ts): docs page.
- [Vitest.Workspace](https://github.com/tanstack/ai/blob/main/vitest.workspace.js): docs page.

## .Github
- [Pull Request Template](https://github.com/tanstack/ai/blob/main/.github/pull_request_template.md): docs page.
- [Copilot Instructions](https://github.com/tanstack/ai/blob/main/.github/instructions/copilot-instructions.md): docs page.

## Packages
- [README](https://github.com/tanstack/ai/blob/main/packages/php/tanstack-ai/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/packages/python/tanstack-ai/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-client/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-devtools/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-gemini/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-ollama/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-openai/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-react-ui/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-react/README.md): install & quickstart.
- [README](https://github.com/tanstack/ai/blob/main/packages/typescript/ai-solid-ui/README.md): install & quickstart.

## Testing
- [README](https://github.com/tanstack/ai/blob/main/testing/panel/README.md): install & quickstart.
- [App.Config](https://github.com/tanstack/ai/blob/main/testing/panel/app.config.ts): docs page.
- [Vite.Config](https://github.com/tanstack/ai/blob/main/testing/panel/vite.config.ts): docs page.
- [Routetree.Gen](https://github.com/tanstack/ai/blob/main/testing/panel/src/routeTree.gen.ts): docs page.
- [Guitar Tools](https://github.com/tanstack/ai/blob/main/testing/panel/src/lib/guitar-tools.ts): docs page.
- [Index](https://github.com/tanstack/ai/blob/main/testing/panel/src/traces/index.ts): docs page.
- [Model Selection](https://github.com/tanstack/ai/blob/main/testing/panel/src/lib/model-selection.ts): docs page.
- [Recording](https://github.com/tanstack/ai/blob/main/testing/panel/src/lib/recording.ts): docs page.
