ai-sdk-handler
Installation
SKILL.md
AI SDK Handler
This skill defines how to implement Large Language Model (LLM) features using the Vercel AI SDK. It covers streaming chat, structured object generation, generative UI, and background agents.
Note: For Image/Video generation (Replicate, Fal.ai), continue to use ai-handler. Use ai-sdk-handler specifically for text, chat, and agentic text/JSON workflows.
When to Use
- Chatbots: Building interactive chat interfaces (
useChat,streamText). - Structured Data: Extracting JSON from text (
generateObject). - Generative UI: Streaming React components directly from the server (
streamUI). - Agents: Complex, multi-step reasoning tasks (often combined with Inngest).
- Multimodal: Handling image inputs with text.