What problem does it solve? Building AI features across multiple LLM providers requires rewriting integration code for each vendor's API, handling streaming inconsistently, and losing type safety on structured responses. This Skill provides a unified, type-safe SDK layer for text generation, tool calling, and multimodal content across OpenAI, Anthropic, Gemini, and Ollama. ## Core Features & Use Cases - Provider-Agnostic Generation: Use a single generate() API with tree-shakeable adapters for OpenAI, Anthropic, Gemini, and Ollama, with runtime adapter switching. - Streaming & Structured Output: Stream responses with async iteration and enforce Zod-schema-typed structured output, including partial JSON parsing during streaming. - Tool Calling & Agentic Loops: Define tools with approval workflows and bounded agent loops via maxIterations. - Framework Hooks: Build chat and completion UIs with useChat/useCompletion for React, createChat for Solid, or a framework-agnostic vanilla client. - Use Case: Build a TanStack Start chat endpoint that streams GPT-4o responses through a server function, keeps API keys server-side, and renders the conversation with useChat in a React component. ## Quick Start Ask the AI to create a streaming chat endpoint using @tanstack/ai with the OpenAI adapter and wire it to a React useChat component.