Vercel AI SDK expert guidance. Use when building AI-powered features — chat interfaces, text generation, structured output, tool calling, agents, MCP integration, streaming, embeddings, reranking, image generation, or working with any LLM provider.
88
88%
Does it follow best practices?
Impact
91%
4.78xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Structured output extraction with generateText
generateText import
0%
100%
Output.object usage
0%
100%
No generateObject
100%
100%
Output import
0%
100%
result.output access
0%
100%
AI Gateway model format
0%
100%
No direct OpenAI import
100%
100%
No direct Anthropic import
0%
100%
maxOutputTokens
0%
100%
Zod schema
0%
100%
Streaming chat API route with tool calling
toUIMessageStreamResponse
0%
0%
No toDataStreamResponse
0%
100%
inputSchema in tools
0%
100%
stopWhen: stepCountIs
0%
100%
No maxSteps
0%
100%
stepCountIs import
0%
100%
streamText usage
100%
0%
AI Gateway model
0%
100%
No deprecated object APIs
100%
100%
No direct provider imports
100%
100%
Agent creation and type-safe useChat client
ToolLoopAgent
0%
100%
InferAgentUIMessage export
0%
100%
inputSchema in tools
0%
100%
File structure
100%
100%
DefaultChatTransport
0%
100%
Manual input state
100%
100%
sendMessage
0%
100%
message.parts iteration
0%
100%
Typed tool parts
0%
100%
State-guarded property access
0%
100%
status not isLoading
0%
100%
uiMessages in route
0%
100%
61f1903
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.