library: { name: "ai", versions: ">=6 <8" } and only narrates files that import from ai or an @ai-sdk/* package, or belong to a package that depends on ai (see Dependency detection); that dependency’s major picks the v6 or v7 reading unless version is pinned.
Examples
Generating text
English
A chat route with a tool
English
Structured output
English
AI SDK 6 and 7
Some names changed meaning in AI SDK 7. For example,usage and toolCalls on a multi-step result cover only the final step in version 6 and every step in version 7. In auto mode the plugin avoids saying which steps a value covers. Pin version: 6 or version: 7 to get the precise reading. See Plugin versioning.
What it covers
generateText,streamText,generateObject,streamObject, structured output, tool choice and stop conditions.- Tools defined with
tool()and inline, agents, and callbacks such asonFinishandonChunk. - Embeddings, image generation, transcription and speech.
- Providers, custom providers, registries and middleware.
- Stream responses for route handlers and the loops that read streams.
- The UI hooks
useChat,useCompletionanduseObject, and the functions they return.
Translating
The English phrasebook is exported asen and typed as AiSdkPhrases.