Vercel AI SDK
Build AI-powered applications with the Vercel AI SDK. Generates streaming chat UIs, tool-calling agents, structured output extraction, and multi-provider LLM integrations with React Server Components.
This skill helps you build AI features using the Vercel AI SDK. It implements streaming chat interfaces, tool-calling agents with function definitions, structured data extraction from LLM outputs, multi-model provider switching, and edge-compatible AI routes with proper error handling and rate limiting.
When to use
Use when adding AI chat, completions, or agent features to Next.js or React apps. Handles streaming responses, tool use, and provider abstraction across OpenAI, Anthropic, Google, and local models.
Examples
Streaming chat UI
Build a ChatGPT-like interface with streaming
Create a streaming chat interface using the AI SDK with message history, typing indicators, and tool-call rendering in Next.js
Structured data extraction
Extract typed data from unstructured text
Use the AI SDK to extract structured product data (name, price, features, category) from product review text with Zod schema validation