ai-sdk
Answer questions about the AI SDK and help build AI-powered features. Use when developers ask about Vercel AI SDK, generateText, streamText, ToolLoopAgent, useChat, providers, tools, structured output, embeddings, streaming, or adding AI to an app. First identify the installed major version and route version-specific work: use ai-sdk-7 for AI SDK 7 features/migrations such as WorkflowAgent, HarnessAgent, reasoning, runtime/tools context, toolApproval, telemetry, realtime, or v6-to-v7 upgrades; use ai-sdk-6 for v6 code.
Pinned to revision 0b7b5c0607dc, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/ai-sdk/SKILL.md
- skills/ai-sdk/README.md
- skills/ai-sdk/references/common-errors.md
- skills/ai-sdk/references/devtools.md
- skills/ai-sdk/references/examples.md
- skills/ai-sdk/references/type-safe-agents.md
Every link opens the file at its source, pinned to the revision this page describes.