[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-vercel-migrate-ai-sdk-v6-to-v7":3,"mdc-tguygk-key":50,"related-repo-vercel-migrate-ai-sdk-v6-to-v7":1830,"related-org-vercel-migrate-ai-sdk-v6-to-v7":1923},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":45,"sourceUrl":48,"mdContent":49},"migrate-ai-sdk-v6-to-v7","migrate applications to AI SDK v7","Migrate applications from AI SDK 6.x to AI SDK 7.0. Use when upgrading Vercel AI SDK packages, fixing v7 migration errors, or when the user mentions AI SDK v6, v7, upgrade, migration, breaking changes, system to instructions, fullStream, telemetry, tool context, or finalStep.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"vercel","Vercel","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fvercel.png",[12,14,17,20,23],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"TypeScript","typescript",{"name":18,"slug":19,"type":13},"Migration","migration",{"name":21,"slug":22,"type":13},"AI SDK","ai-sdk",{"name":24,"slug":25,"type":13},"Engineering","engineering",25670,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai","2026-06-22T09:47:42.347187",null,4816,[32,33,34,35,36,37,38,39,40,41,42,43,16,8,44],"anthropic","artificial-intelligence","gemini","generative-ai","generative-ui","javascript","language-model","llm","nextjs","openai","react","svelte","vue",{"repoUrl":27,"stars":26,"forks":30,"topics":46,"description":47},[32,33,34,35,36,37,38,39,40,41,42,43,16,8,44],"The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents ","https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai\u002Ftree\u002FHEAD\u002Fskills\u002Fmigrate-ai-sdk-v6-to-v7","---\nname: migrate-ai-sdk-v6-to-v7\ndescription: Migrate applications from AI SDK 6.x to AI SDK 7.0. Use when upgrading Vercel AI SDK packages, fixing v7 migration errors, or when the user mentions AI SDK v6, v7, upgrade, migration, breaking changes, system to instructions, fullStream, telemetry, tool context, or finalStep.\n---\n\n## AI SDK 6 to 7 Migration\n\nUse `content\u002Fdocs\u002F08-migration-guides\u002F23-migration-guide-7-0.mdx` from the AI SDK repo as the source of truth. This skill is the working checklist; read the guide for exact examples or when behavior is unclear.\n\n## Migration Workflow\n\n1. Ensure the user has a clean backup or committed baseline before editing.\n2. Inspect `package.json` and lockfiles to identify installed `ai`, `@ai-sdk\u002F*`, provider, UI, MCP, and telemetry packages.\n3. Upgrade AI SDK packages to latest versions, and add `@ai-sdk\u002Fotel` only if the project uses OpenTelemetry spans.\n4. Update runtime and module assumptions: Node.js must be `>=22`, and AI SDK packages are ESM-only. Replace `require()` imports with ESM imports and add `\"type\": \"module\"` or use `.mjs` where needed.\n5. Search for the v6 patterns below, migrate only the code that exists, then run typecheck and targeted tests.\n\nPrefer behavior-preserving changes. When v7 changes semantics, decide whether the app wants the new all-steps behavior or the previous final-step-only behavior.\n\n## Core API Changes\n\n- `experimental_customProvider` -> `customProvider`.\n- `experimental_generateImage` -> `generateImage`; `Experimental_GenerateImageResult` -> `GenerateImageResult`.\n- `experimental_transcribe` -> `transcribe`; `Experimental_TranscriptionResult` -> `TranscriptionResult`.\n- `experimental_generateSpeech` -> `generateSpeech`; `Experimental_SpeechResult` -> `SpeechResult`.\n- `experimental_output` option\u002Fresult -> `output` option\u002Fresult.\n- `CallSettings` -> `LanguageModelCallOptions & Omit\u003CRequestOptions, 'timeout'>`; `prepareCallSettings` -> `prepareLanguageModelCallOptions`.\n- `stepCountIs` -> `isStepCount`.\n\n## Prompts and Steps\n\n- Rename top-level `system` to `instructions` for `generateText`, `streamText`, `generateObject`, `streamObject`, and `streamUI`.\n- Move `{ role: 'system' }` messages from `prompt` or `messages` into top-level `instructions`. Only use `allowSystemInMessages: true` for trusted persisted messages.\n- Rename `experimental_prepareStep` to `prepareStep`.\n- In `prepareStep`, rename returned `system` to `instructions`.\n- In `experimental_repairToolCall`, use `{ instructions }` instead of `{ system }`.\n- Audit `prepareStep` behavior: returned `instructions` and `messages` now carry forward into later steps. If code depended on one-step-only overrides, rebuild from `initialInstructions`, `initialMessages`, and `responseMessages` explicitly.\n\n## Lifecycle Callbacks\n\n- `experimental_onStart` -> `onStart`.\n- `experimental_onStepStart` -> `onStepStart`.\n- `onFinish` -> `onEnd`.\n- `onStepFinish` -> `onStepEnd`.\n- For `embed`, `embedMany`, and `rerank`, `experimental_onFinish` -> `onEnd`.\n- Callback event fields use `instructions` instead of `system`.\n\n## Usage, Telemetry, and Include Options\n\n- `usage.cachedInputTokens` -> `usage.inputTokenDetails.cacheReadTokens`.\n- `usage.reasoningTokens` -> `usage.outputTokenDetails.reasoningTokens`.\n- OpenTelemetry moved out of `ai`; install `@ai-sdk\u002Fotel` and call `registerTelemetry(new OpenTelemetry(...))` at app startup.\n- Telemetry is enabled by default once an integration is registered. Remove redundant `isEnabled: true`; use `isEnabled: false` to opt out per call.\n- Move `experimental_telemetry.tracer` into the `OpenTelemetry` constructor.\n- `experimental_telemetry` -> `telemetry`.\n- Telemetry integration callbacks: `onRerankFinish` -> `onRerankEnd`, `onEmbedFinish` -> `onEmbedEnd`. Update tracing-channel subscribers for the same event type names.\n- `experimental_include` -> `include`.\n- `includeRawChunks` -> `include.rawChunks`.\n- Request and response bodies are excluded by default. If code reads `request.body` or `response.body`, opt in with `include.requestBody` and, for `generateText`, `include.responseBody`.\n\n## Streaming, Messages, and Tools\n\n- `StreamTextResult.fullStream` -> `stream`.\n- `streamText` `onChunk` now receives all stream parts, including lifecycle, boundary, finish, abort, and error parts. Guard by `chunk.type` before assuming text\u002Ftool\u002Fraw content.\n- `step.response.messages` is no longer accumulated across previous steps. Use `result.responseMessages` for the full response message history, or flatten `result.steps`.\n- Tool execution callbacks: `experimental_onToolCallStart` -> `onToolExecutionStart`, `experimental_onToolCallFinish` -> `onToolExecutionEnd`.\n- Tool callback `experimental_context` -> `context`.\n- Split shared runtime data from tool-specific data: use top-level `runtimeContext` for orchestration state, declare per-tool `contextSchema`, and pass per-tool values through `toolsContext`.\n- Move `needsApproval` from `tool()` \u002F `dynamicTool()` into per-call or agent `toolApproval`.\n- `experimental_activeTools` -> `activeTools`.\n- `ToolCallOptions` -> `ToolExecutionOptions`.\n- `isToolOrDynamicToolUIPart` -> `isToolUIPart`.\n\n## Content Parts and Reasoning\n\n- Tool result `{ type: 'media' }` is removed; use `{ type: 'file-data' }`.\n- Migrate `toModelOutput` `image-*`, `file-*`, `file-id`, and `image-file-id` variants to canonical `{ type: 'file', mediaType, data: { type: 'data' | 'url' | 'reference', ... } }`.\n- User message `{ type: 'image', image, mediaType? }` is deprecated; use `{ type: 'file', mediaType: 'image' | 'image\u002F*', data }`.\n- Add support for the new `reasoning-file` content type in exhaustive switches, renderers, serializers, and validators.\n- When adopting top-level `reasoning`, remove overlapping provider-specific reasoning settings from `providerOptions` unless provider-specific settings intentionally take precedence.\n\n## Multi-Step Result Shape\n\n- `result.usage` now includes all steps; `result.totalUsage` is deprecated. Use `result.finalStep.usage` for final-step-only usage.\n- Top-level `content`, `toolCalls`, `staticToolCalls`, `dynamicToolCalls`, `toolResults`, `staticToolResults`, `dynamicToolResults`, `files`, `sources`, and `warnings` now include all steps. Use `finalStep` for previous final-step-only behavior.\n- Top-level `reasoning`, `reasoningText`, `request`, `response`, and `providerMetadata` are deprecated for final-step data. Use `result.finalStep.*`; for `streamText`, await `result.finalStep`.\n- Apply the same result-shape rules to `onEnd` events.\n\n## Stream Response Helpers\n\nThe `streamText` result helper methods are deprecated. Replace result methods with top-level stateless helpers:\n\n- `result.toUIMessageStream(...)` -> `toUIMessageStream({ stream: result.stream, ... })`.\n- `result.toUIMessageStreamResponse(...)` -> `toUIMessageStream(...)` plus `createUIMessageStreamResponse({ stream })`.\n- `result.pipeUIMessageStreamToResponse(response, ...)` -> `toUIMessageStream(...)` plus `pipeUIMessageStreamToResponse({ response, stream })`.\n- `result.toTextStreamResponse()` -> `toTextStream({ stream: result.stream })` plus `createTextStreamResponse({ stream })`.\n- `result.pipeTextStreamToResponse(response)` -> `toTextStream({ stream: result.stream })` plus `pipeTextStreamToResponse({ response, stream })`.\n\n## Package-Specific Checks\n\n- MCP: `MCPTransportConfig.redirect` now defaults to `'error'`. Only set `redirect: 'follow'` for trusted MCP servers that rely on redirects.\n- Vue: `@ai-sdk\u002Fvue` `Chat` class is deprecated. Prefer `useChat`, including getter\u002Fref init for reactive chat inputs.\n- Anthropic and `@ai-sdk\u002Fgoogle-vertex\u002Fanthropic`: `providerMetadata.anthropic.cacheCreationInputTokens` was removed. Use `usage.inputTokenDetails.cacheWriteTokens`; raw Anthropic usage remains at `finalStep.providerMetadata?.anthropic?.usage`.\n- Google: rename `GoogleGenerativeAI*` types, classes, and functions to `Google*`, e.g. `createGoogleGenerativeAI` -> `createGoogle`. The `google` entry point is unchanged.\n\n## Validation\n\nRun the project typecheck after edits, then the smallest relevant test suite. Also smoke-test streaming, chat UI, tool execution, telemetry, and multi-step flows if the migration touched them. If type errors remain, search the migration guide for the exact removed or renamed symbol before inventing a workaround.\n",{"data":51,"body":52},{"name":4,"description":6},{"type":53,"children":54},"root",[55,64,79,85,179,184,190,374,380,602,608,735,741,972,978,1216,1222,1347,1353,1540,1546,1558,1673,1679,1819,1825],{"type":56,"tag":57,"props":58,"children":60},"element","h2",{"id":59},"ai-sdk-6-to-7-migration",[61],{"type":62,"value":63},"text","AI SDK 6 to 7 Migration",{"type":56,"tag":65,"props":66,"children":67},"p",{},[68,70,77],{"type":62,"value":69},"Use ",{"type":56,"tag":71,"props":72,"children":74},"code",{"className":73},[],[75],{"type":62,"value":76},"content\u002Fdocs\u002F08-migration-guides\u002F23-migration-guide-7-0.mdx",{"type":62,"value":78}," from the AI SDK repo as the source of truth. This skill is the working checklist; read the guide for exact examples or when behavior is unclear.",{"type":56,"tag":57,"props":80,"children":82},{"id":81},"migration-workflow",[83],{"type":62,"value":84},"Migration Workflow",{"type":56,"tag":86,"props":87,"children":88},"ol",{},[89,95,124,137,174],{"type":56,"tag":90,"props":91,"children":92},"li",{},[93],{"type":62,"value":94},"Ensure the user has a clean backup or committed baseline before editing.",{"type":56,"tag":90,"props":96,"children":97},{},[98,100,106,108,114,116,122],{"type":62,"value":99},"Inspect ",{"type":56,"tag":71,"props":101,"children":103},{"className":102},[],[104],{"type":62,"value":105},"package.json",{"type":62,"value":107}," and lockfiles to identify installed ",{"type":56,"tag":71,"props":109,"children":111},{"className":110},[],[112],{"type":62,"value":113},"ai",{"type":62,"value":115},", ",{"type":56,"tag":71,"props":117,"children":119},{"className":118},[],[120],{"type":62,"value":121},"@ai-sdk\u002F*",{"type":62,"value":123},", provider, UI, MCP, and telemetry packages.",{"type":56,"tag":90,"props":125,"children":126},{},[127,129,135],{"type":62,"value":128},"Upgrade AI SDK packages to latest versions, and add ",{"type":56,"tag":71,"props":130,"children":132},{"className":131},[],[133],{"type":62,"value":134},"@ai-sdk\u002Fotel",{"type":62,"value":136}," only if the project uses OpenTelemetry spans.",{"type":56,"tag":90,"props":138,"children":139},{},[140,142,148,150,156,158,164,166,172],{"type":62,"value":141},"Update runtime and module assumptions: Node.js must be ",{"type":56,"tag":71,"props":143,"children":145},{"className":144},[],[146],{"type":62,"value":147},">=22",{"type":62,"value":149},", and AI SDK packages are ESM-only. Replace ",{"type":56,"tag":71,"props":151,"children":153},{"className":152},[],[154],{"type":62,"value":155},"require()",{"type":62,"value":157}," imports with ESM imports and add ",{"type":56,"tag":71,"props":159,"children":161},{"className":160},[],[162],{"type":62,"value":163},"\"type\": \"module\"",{"type":62,"value":165}," or use ",{"type":56,"tag":71,"props":167,"children":169},{"className":168},[],[170],{"type":62,"value":171},".mjs",{"type":62,"value":173}," where needed.",{"type":56,"tag":90,"props":175,"children":176},{},[177],{"type":62,"value":178},"Search for the v6 patterns below, migrate only the code that exists, then run typecheck and targeted tests.",{"type":56,"tag":65,"props":180,"children":181},{},[182],{"type":62,"value":183},"Prefer behavior-preserving changes. When v7 changes semantics, decide whether the app wants the new all-steps behavior or the previous final-step-only behavior.",{"type":56,"tag":57,"props":185,"children":187},{"id":186},"core-api-changes",[188],{"type":62,"value":189},"Core API Changes",{"type":56,"tag":191,"props":192,"children":193},"ul",{},[194,213,245,276,307,326,357],{"type":56,"tag":90,"props":195,"children":196},{},[197,203,205,211],{"type":56,"tag":71,"props":198,"children":200},{"className":199},[],[201],{"type":62,"value":202},"experimental_customProvider",{"type":62,"value":204}," -> ",{"type":56,"tag":71,"props":206,"children":208},{"className":207},[],[209],{"type":62,"value":210},"customProvider",{"type":62,"value":212},".",{"type":56,"tag":90,"props":214,"children":215},{},[216,222,223,229,231,237,238,244],{"type":56,"tag":71,"props":217,"children":219},{"className":218},[],[220],{"type":62,"value":221},"experimental_generateImage",{"type":62,"value":204},{"type":56,"tag":71,"props":224,"children":226},{"className":225},[],[227],{"type":62,"value":228},"generateImage",{"type":62,"value":230},"; ",{"type":56,"tag":71,"props":232,"children":234},{"className":233},[],[235],{"type":62,"value":236},"Experimental_GenerateImageResult",{"type":62,"value":204},{"type":56,"tag":71,"props":239,"children":241},{"className":240},[],[242],{"type":62,"value":243},"GenerateImageResult",{"type":62,"value":212},{"type":56,"tag":90,"props":246,"children":247},{},[248,254,255,261,262,268,269,275],{"type":56,"tag":71,"props":249,"children":251},{"className":250},[],[252],{"type":62,"value":253},"experimental_transcribe",{"type":62,"value":204},{"type":56,"tag":71,"props":256,"children":258},{"className":257},[],[259],{"type":62,"value":260},"transcribe",{"type":62,"value":230},{"type":56,"tag":71,"props":263,"children":265},{"className":264},[],[266],{"type":62,"value":267},"Experimental_TranscriptionResult",{"type":62,"value":204},{"type":56,"tag":71,"props":270,"children":272},{"className":271},[],[273],{"type":62,"value":274},"TranscriptionResult",{"type":62,"value":212},{"type":56,"tag":90,"props":277,"children":278},{},[279,285,286,292,293,299,300,306],{"type":56,"tag":71,"props":280,"children":282},{"className":281},[],[283],{"type":62,"value":284},"experimental_generateSpeech",{"type":62,"value":204},{"type":56,"tag":71,"props":287,"children":289},{"className":288},[],[290],{"type":62,"value":291},"generateSpeech",{"type":62,"value":230},{"type":56,"tag":71,"props":294,"children":296},{"className":295},[],[297],{"type":62,"value":298},"Experimental_SpeechResult",{"type":62,"value":204},{"type":56,"tag":71,"props":301,"children":303},{"className":302},[],[304],{"type":62,"value":305},"SpeechResult",{"type":62,"value":212},{"type":56,"tag":90,"props":308,"children":309},{},[310,316,318,324],{"type":56,"tag":71,"props":311,"children":313},{"className":312},[],[314],{"type":62,"value":315},"experimental_output",{"type":62,"value":317}," option\u002Fresult -> ",{"type":56,"tag":71,"props":319,"children":321},{"className":320},[],[322],{"type":62,"value":323},"output",{"type":62,"value":325}," option\u002Fresult.",{"type":56,"tag":90,"props":327,"children":328},{},[329,335,336,342,343,349,350,356],{"type":56,"tag":71,"props":330,"children":332},{"className":331},[],[333],{"type":62,"value":334},"CallSettings",{"type":62,"value":204},{"type":56,"tag":71,"props":337,"children":339},{"className":338},[],[340],{"type":62,"value":341},"LanguageModelCallOptions & Omit\u003CRequestOptions, 'timeout'>",{"type":62,"value":230},{"type":56,"tag":71,"props":344,"children":346},{"className":345},[],[347],{"type":62,"value":348},"prepareCallSettings",{"type":62,"value":204},{"type":56,"tag":71,"props":351,"children":353},{"className":352},[],[354],{"type":62,"value":355},"prepareLanguageModelCallOptions",{"type":62,"value":212},{"type":56,"tag":90,"props":358,"children":359},{},[360,366,367,373],{"type":56,"tag":71,"props":361,"children":363},{"className":362},[],[364],{"type":62,"value":365},"stepCountIs",{"type":62,"value":204},{"type":56,"tag":71,"props":368,"children":370},{"className":369},[],[371],{"type":62,"value":372},"isStepCount",{"type":62,"value":212},{"type":56,"tag":57,"props":375,"children":377},{"id":376},"prompts-and-steps",[378],{"type":62,"value":379},"Prompts and Steps",{"type":56,"tag":191,"props":381,"children":382},{},[383,440,484,503,527,554],{"type":56,"tag":90,"props":384,"children":385},{},[386,388,394,396,402,404,410,411,417,418,424,425,431,433,439],{"type":62,"value":387},"Rename top-level ",{"type":56,"tag":71,"props":389,"children":391},{"className":390},[],[392],{"type":62,"value":393},"system",{"type":62,"value":395}," to ",{"type":56,"tag":71,"props":397,"children":399},{"className":398},[],[400],{"type":62,"value":401},"instructions",{"type":62,"value":403}," for ",{"type":56,"tag":71,"props":405,"children":407},{"className":406},[],[408],{"type":62,"value":409},"generateText",{"type":62,"value":115},{"type":56,"tag":71,"props":412,"children":414},{"className":413},[],[415],{"type":62,"value":416},"streamText",{"type":62,"value":115},{"type":56,"tag":71,"props":419,"children":421},{"className":420},[],[422],{"type":62,"value":423},"generateObject",{"type":62,"value":115},{"type":56,"tag":71,"props":426,"children":428},{"className":427},[],[429],{"type":62,"value":430},"streamObject",{"type":62,"value":432},", and ",{"type":56,"tag":71,"props":434,"children":436},{"className":435},[],[437],{"type":62,"value":438},"streamUI",{"type":62,"value":212},{"type":56,"tag":90,"props":441,"children":442},{},[443,445,451,453,459,461,467,469,474,476,482],{"type":62,"value":444},"Move ",{"type":56,"tag":71,"props":446,"children":448},{"className":447},[],[449],{"type":62,"value":450},"{ role: 'system' }",{"type":62,"value":452}," messages from ",{"type":56,"tag":71,"props":454,"children":456},{"className":455},[],[457],{"type":62,"value":458},"prompt",{"type":62,"value":460}," or ",{"type":56,"tag":71,"props":462,"children":464},{"className":463},[],[465],{"type":62,"value":466},"messages",{"type":62,"value":468}," into top-level ",{"type":56,"tag":71,"props":470,"children":472},{"className":471},[],[473],{"type":62,"value":401},{"type":62,"value":475},". Only use ",{"type":56,"tag":71,"props":477,"children":479},{"className":478},[],[480],{"type":62,"value":481},"allowSystemInMessages: true",{"type":62,"value":483}," for trusted persisted messages.",{"type":56,"tag":90,"props":485,"children":486},{},[487,489,495,496,502],{"type":62,"value":488},"Rename ",{"type":56,"tag":71,"props":490,"children":492},{"className":491},[],[493],{"type":62,"value":494},"experimental_prepareStep",{"type":62,"value":395},{"type":56,"tag":71,"props":497,"children":499},{"className":498},[],[500],{"type":62,"value":501},"prepareStep",{"type":62,"value":212},{"type":56,"tag":90,"props":504,"children":505},{},[506,508,513,515,520,521,526],{"type":62,"value":507},"In ",{"type":56,"tag":71,"props":509,"children":511},{"className":510},[],[512],{"type":62,"value":501},{"type":62,"value":514},", rename returned ",{"type":56,"tag":71,"props":516,"children":518},{"className":517},[],[519],{"type":62,"value":393},{"type":62,"value":395},{"type":56,"tag":71,"props":522,"children":524},{"className":523},[],[525],{"type":62,"value":401},{"type":62,"value":212},{"type":56,"tag":90,"props":528,"children":529},{},[530,531,537,539,545,547,553],{"type":62,"value":507},{"type":56,"tag":71,"props":532,"children":534},{"className":533},[],[535],{"type":62,"value":536},"experimental_repairToolCall",{"type":62,"value":538},", use ",{"type":56,"tag":71,"props":540,"children":542},{"className":541},[],[543],{"type":62,"value":544},"{ instructions }",{"type":62,"value":546}," instead of ",{"type":56,"tag":71,"props":548,"children":550},{"className":549},[],[551],{"type":62,"value":552},"{ system }",{"type":62,"value":212},{"type":56,"tag":90,"props":555,"children":556},{},[557,559,564,566,571,573,578,580,586,587,593,594,600],{"type":62,"value":558},"Audit ",{"type":56,"tag":71,"props":560,"children":562},{"className":561},[],[563],{"type":62,"value":501},{"type":62,"value":565}," behavior: returned ",{"type":56,"tag":71,"props":567,"children":569},{"className":568},[],[570],{"type":62,"value":401},{"type":62,"value":572}," and ",{"type":56,"tag":71,"props":574,"children":576},{"className":575},[],[577],{"type":62,"value":466},{"type":62,"value":579}," now carry forward into later steps. If code depended on one-step-only overrides, rebuild from ",{"type":56,"tag":71,"props":581,"children":583},{"className":582},[],[584],{"type":62,"value":585},"initialInstructions",{"type":62,"value":115},{"type":56,"tag":71,"props":588,"children":590},{"className":589},[],[591],{"type":62,"value":592},"initialMessages",{"type":62,"value":432},{"type":56,"tag":71,"props":595,"children":597},{"className":596},[],[598],{"type":62,"value":599},"responseMessages",{"type":62,"value":601}," explicitly.",{"type":56,"tag":57,"props":603,"children":605},{"id":604},"lifecycle-callbacks",[606],{"type":62,"value":607},"Lifecycle Callbacks",{"type":56,"tag":191,"props":609,"children":610},{},[611,628,645,662,679,718],{"type":56,"tag":90,"props":612,"children":613},{},[614,620,621,627],{"type":56,"tag":71,"props":615,"children":617},{"className":616},[],[618],{"type":62,"value":619},"experimental_onStart",{"type":62,"value":204},{"type":56,"tag":71,"props":622,"children":624},{"className":623},[],[625],{"type":62,"value":626},"onStart",{"type":62,"value":212},{"type":56,"tag":90,"props":629,"children":630},{},[631,637,638,644],{"type":56,"tag":71,"props":632,"children":634},{"className":633},[],[635],{"type":62,"value":636},"experimental_onStepStart",{"type":62,"value":204},{"type":56,"tag":71,"props":639,"children":641},{"className":640},[],[642],{"type":62,"value":643},"onStepStart",{"type":62,"value":212},{"type":56,"tag":90,"props":646,"children":647},{},[648,654,655,661],{"type":56,"tag":71,"props":649,"children":651},{"className":650},[],[652],{"type":62,"value":653},"onFinish",{"type":62,"value":204},{"type":56,"tag":71,"props":656,"children":658},{"className":657},[],[659],{"type":62,"value":660},"onEnd",{"type":62,"value":212},{"type":56,"tag":90,"props":663,"children":664},{},[665,671,672,678],{"type":56,"tag":71,"props":666,"children":668},{"className":667},[],[669],{"type":62,"value":670},"onStepFinish",{"type":62,"value":204},{"type":56,"tag":71,"props":673,"children":675},{"className":674},[],[676],{"type":62,"value":677},"onStepEnd",{"type":62,"value":212},{"type":56,"tag":90,"props":680,"children":681},{},[682,684,690,691,697,698,704,705,711,712,717],{"type":62,"value":683},"For ",{"type":56,"tag":71,"props":685,"children":687},{"className":686},[],[688],{"type":62,"value":689},"embed",{"type":62,"value":115},{"type":56,"tag":71,"props":692,"children":694},{"className":693},[],[695],{"type":62,"value":696},"embedMany",{"type":62,"value":432},{"type":56,"tag":71,"props":699,"children":701},{"className":700},[],[702],{"type":62,"value":703},"rerank",{"type":62,"value":115},{"type":56,"tag":71,"props":706,"children":708},{"className":707},[],[709],{"type":62,"value":710},"experimental_onFinish",{"type":62,"value":204},{"type":56,"tag":71,"props":713,"children":715},{"className":714},[],[716],{"type":62,"value":660},{"type":62,"value":212},{"type":56,"tag":90,"props":719,"children":720},{},[721,723,728,729,734],{"type":62,"value":722},"Callback event fields use ",{"type":56,"tag":71,"props":724,"children":726},{"className":725},[],[727],{"type":62,"value":401},{"type":62,"value":546},{"type":56,"tag":71,"props":730,"children":732},{"className":731},[],[733],{"type":62,"value":393},{"type":62,"value":212},{"type":56,"tag":57,"props":736,"children":738},{"id":737},"usage-telemetry-and-include-options",[739],{"type":62,"value":740},"Usage, Telemetry, and Include Options",{"type":56,"tag":191,"props":742,"children":743},{},[744,761,778,805,826,846,863,897,914,931],{"type":56,"tag":90,"props":745,"children":746},{},[747,753,754,760],{"type":56,"tag":71,"props":748,"children":750},{"className":749},[],[751],{"type":62,"value":752},"usage.cachedInputTokens",{"type":62,"value":204},{"type":56,"tag":71,"props":755,"children":757},{"className":756},[],[758],{"type":62,"value":759},"usage.inputTokenDetails.cacheReadTokens",{"type":62,"value":212},{"type":56,"tag":90,"props":762,"children":763},{},[764,770,771,777],{"type":56,"tag":71,"props":765,"children":767},{"className":766},[],[768],{"type":62,"value":769},"usage.reasoningTokens",{"type":62,"value":204},{"type":56,"tag":71,"props":772,"children":774},{"className":773},[],[775],{"type":62,"value":776},"usage.outputTokenDetails.reasoningTokens",{"type":62,"value":212},{"type":56,"tag":90,"props":779,"children":780},{},[781,783,788,790,795,797,803],{"type":62,"value":782},"OpenTelemetry moved out of ",{"type":56,"tag":71,"props":784,"children":786},{"className":785},[],[787],{"type":62,"value":113},{"type":62,"value":789},"; install ",{"type":56,"tag":71,"props":791,"children":793},{"className":792},[],[794],{"type":62,"value":134},{"type":62,"value":796}," and call ",{"type":56,"tag":71,"props":798,"children":800},{"className":799},[],[801],{"type":62,"value":802},"registerTelemetry(new OpenTelemetry(...))",{"type":62,"value":804}," at app startup.",{"type":56,"tag":90,"props":806,"children":807},{},[808,810,816,818,824],{"type":62,"value":809},"Telemetry is enabled by default once an integration is registered. Remove redundant ",{"type":56,"tag":71,"props":811,"children":813},{"className":812},[],[814],{"type":62,"value":815},"isEnabled: true",{"type":62,"value":817},"; use ",{"type":56,"tag":71,"props":819,"children":821},{"className":820},[],[822],{"type":62,"value":823},"isEnabled: false",{"type":62,"value":825}," to opt out per call.",{"type":56,"tag":90,"props":827,"children":828},{},[829,830,836,838,844],{"type":62,"value":444},{"type":56,"tag":71,"props":831,"children":833},{"className":832},[],[834],{"type":62,"value":835},"experimental_telemetry.tracer",{"type":62,"value":837}," into the ",{"type":56,"tag":71,"props":839,"children":841},{"className":840},[],[842],{"type":62,"value":843},"OpenTelemetry",{"type":62,"value":845}," constructor.",{"type":56,"tag":90,"props":847,"children":848},{},[849,855,856,862],{"type":56,"tag":71,"props":850,"children":852},{"className":851},[],[853],{"type":62,"value":854},"experimental_telemetry",{"type":62,"value":204},{"type":56,"tag":71,"props":857,"children":859},{"className":858},[],[860],{"type":62,"value":861},"telemetry",{"type":62,"value":212},{"type":56,"tag":90,"props":864,"children":865},{},[866,868,874,875,881,882,888,889,895],{"type":62,"value":867},"Telemetry integration callbacks: ",{"type":56,"tag":71,"props":869,"children":871},{"className":870},[],[872],{"type":62,"value":873},"onRerankFinish",{"type":62,"value":204},{"type":56,"tag":71,"props":876,"children":878},{"className":877},[],[879],{"type":62,"value":880},"onRerankEnd",{"type":62,"value":115},{"type":56,"tag":71,"props":883,"children":885},{"className":884},[],[886],{"type":62,"value":887},"onEmbedFinish",{"type":62,"value":204},{"type":56,"tag":71,"props":890,"children":892},{"className":891},[],[893],{"type":62,"value":894},"onEmbedEnd",{"type":62,"value":896},". Update tracing-channel subscribers for the same event type names.",{"type":56,"tag":90,"props":898,"children":899},{},[900,906,907,913],{"type":56,"tag":71,"props":901,"children":903},{"className":902},[],[904],{"type":62,"value":905},"experimental_include",{"type":62,"value":204},{"type":56,"tag":71,"props":908,"children":910},{"className":909},[],[911],{"type":62,"value":912},"include",{"type":62,"value":212},{"type":56,"tag":90,"props":915,"children":916},{},[917,923,924,930],{"type":56,"tag":71,"props":918,"children":920},{"className":919},[],[921],{"type":62,"value":922},"includeRawChunks",{"type":62,"value":204},{"type":56,"tag":71,"props":925,"children":927},{"className":926},[],[928],{"type":62,"value":929},"include.rawChunks",{"type":62,"value":212},{"type":56,"tag":90,"props":932,"children":933},{},[934,936,942,943,949,951,957,959,964,965,971],{"type":62,"value":935},"Request and response bodies are excluded by default. If code reads ",{"type":56,"tag":71,"props":937,"children":939},{"className":938},[],[940],{"type":62,"value":941},"request.body",{"type":62,"value":460},{"type":56,"tag":71,"props":944,"children":946},{"className":945},[],[947],{"type":62,"value":948},"response.body",{"type":62,"value":950},", opt in with ",{"type":56,"tag":71,"props":952,"children":954},{"className":953},[],[955],{"type":62,"value":956},"include.requestBody",{"type":62,"value":958}," and, for ",{"type":56,"tag":71,"props":960,"children":962},{"className":961},[],[963],{"type":62,"value":409},{"type":62,"value":115},{"type":56,"tag":71,"props":966,"children":968},{"className":967},[],[969],{"type":62,"value":970},"include.responseBody",{"type":62,"value":212},{"type":56,"tag":57,"props":973,"children":975},{"id":974},"streaming-messages-and-tools",[976],{"type":62,"value":977},"Streaming, Messages, and Tools",{"type":56,"tag":191,"props":979,"children":980},{},[981,998,1024,1050,1083,1102,1130,1165,1182,1199],{"type":56,"tag":90,"props":982,"children":983},{},[984,990,991,997],{"type":56,"tag":71,"props":985,"children":987},{"className":986},[],[988],{"type":62,"value":989},"StreamTextResult.fullStream",{"type":62,"value":204},{"type":56,"tag":71,"props":992,"children":994},{"className":993},[],[995],{"type":62,"value":996},"stream",{"type":62,"value":212},{"type":56,"tag":90,"props":999,"children":1000},{},[1001,1006,1008,1014,1016,1022],{"type":56,"tag":71,"props":1002,"children":1004},{"className":1003},[],[1005],{"type":62,"value":416},{"type":62,"value":1007}," ",{"type":56,"tag":71,"props":1009,"children":1011},{"className":1010},[],[1012],{"type":62,"value":1013},"onChunk",{"type":62,"value":1015}," now receives all stream parts, including lifecycle, boundary, finish, abort, and error parts. Guard by ",{"type":56,"tag":71,"props":1017,"children":1019},{"className":1018},[],[1020],{"type":62,"value":1021},"chunk.type",{"type":62,"value":1023}," before assuming text\u002Ftool\u002Fraw content.",{"type":56,"tag":90,"props":1025,"children":1026},{},[1027,1033,1035,1041,1043,1049],{"type":56,"tag":71,"props":1028,"children":1030},{"className":1029},[],[1031],{"type":62,"value":1032},"step.response.messages",{"type":62,"value":1034}," is no longer accumulated across previous steps. Use ",{"type":56,"tag":71,"props":1036,"children":1038},{"className":1037},[],[1039],{"type":62,"value":1040},"result.responseMessages",{"type":62,"value":1042}," for the full response message history, or flatten ",{"type":56,"tag":71,"props":1044,"children":1046},{"className":1045},[],[1047],{"type":62,"value":1048},"result.steps",{"type":62,"value":212},{"type":56,"tag":90,"props":1051,"children":1052},{},[1053,1055,1061,1062,1068,1069,1075,1076,1082],{"type":62,"value":1054},"Tool execution callbacks: ",{"type":56,"tag":71,"props":1056,"children":1058},{"className":1057},[],[1059],{"type":62,"value":1060},"experimental_onToolCallStart",{"type":62,"value":204},{"type":56,"tag":71,"props":1063,"children":1065},{"className":1064},[],[1066],{"type":62,"value":1067},"onToolExecutionStart",{"type":62,"value":115},{"type":56,"tag":71,"props":1070,"children":1072},{"className":1071},[],[1073],{"type":62,"value":1074},"experimental_onToolCallFinish",{"type":62,"value":204},{"type":56,"tag":71,"props":1077,"children":1079},{"className":1078},[],[1080],{"type":62,"value":1081},"onToolExecutionEnd",{"type":62,"value":212},{"type":56,"tag":90,"props":1084,"children":1085},{},[1086,1088,1094,1095,1101],{"type":62,"value":1087},"Tool callback ",{"type":56,"tag":71,"props":1089,"children":1091},{"className":1090},[],[1092],{"type":62,"value":1093},"experimental_context",{"type":62,"value":204},{"type":56,"tag":71,"props":1096,"children":1098},{"className":1097},[],[1099],{"type":62,"value":1100},"context",{"type":62,"value":212},{"type":56,"tag":90,"props":1103,"children":1104},{},[1105,1107,1113,1115,1121,1123,1129],{"type":62,"value":1106},"Split shared runtime data from tool-specific data: use top-level ",{"type":56,"tag":71,"props":1108,"children":1110},{"className":1109},[],[1111],{"type":62,"value":1112},"runtimeContext",{"type":62,"value":1114}," for orchestration state, declare per-tool ",{"type":56,"tag":71,"props":1116,"children":1118},{"className":1117},[],[1119],{"type":62,"value":1120},"contextSchema",{"type":62,"value":1122},", and pass per-tool values through ",{"type":56,"tag":71,"props":1124,"children":1126},{"className":1125},[],[1127],{"type":62,"value":1128},"toolsContext",{"type":62,"value":212},{"type":56,"tag":90,"props":1131,"children":1132},{},[1133,1134,1140,1142,1148,1150,1156,1158,1164],{"type":62,"value":444},{"type":56,"tag":71,"props":1135,"children":1137},{"className":1136},[],[1138],{"type":62,"value":1139},"needsApproval",{"type":62,"value":1141}," from ",{"type":56,"tag":71,"props":1143,"children":1145},{"className":1144},[],[1146],{"type":62,"value":1147},"tool()",{"type":62,"value":1149}," \u002F ",{"type":56,"tag":71,"props":1151,"children":1153},{"className":1152},[],[1154],{"type":62,"value":1155},"dynamicTool()",{"type":62,"value":1157}," into per-call or agent ",{"type":56,"tag":71,"props":1159,"children":1161},{"className":1160},[],[1162],{"type":62,"value":1163},"toolApproval",{"type":62,"value":212},{"type":56,"tag":90,"props":1166,"children":1167},{},[1168,1174,1175,1181],{"type":56,"tag":71,"props":1169,"children":1171},{"className":1170},[],[1172],{"type":62,"value":1173},"experimental_activeTools",{"type":62,"value":204},{"type":56,"tag":71,"props":1176,"children":1178},{"className":1177},[],[1179],{"type":62,"value":1180},"activeTools",{"type":62,"value":212},{"type":56,"tag":90,"props":1183,"children":1184},{},[1185,1191,1192,1198],{"type":56,"tag":71,"props":1186,"children":1188},{"className":1187},[],[1189],{"type":62,"value":1190},"ToolCallOptions",{"type":62,"value":204},{"type":56,"tag":71,"props":1193,"children":1195},{"className":1194},[],[1196],{"type":62,"value":1197},"ToolExecutionOptions",{"type":62,"value":212},{"type":56,"tag":90,"props":1200,"children":1201},{},[1202,1208,1209,1215],{"type":56,"tag":71,"props":1203,"children":1205},{"className":1204},[],[1206],{"type":62,"value":1207},"isToolOrDynamicToolUIPart",{"type":62,"value":204},{"type":56,"tag":71,"props":1210,"children":1212},{"className":1211},[],[1213],{"type":62,"value":1214},"isToolUIPart",{"type":62,"value":212},{"type":56,"tag":57,"props":1217,"children":1219},{"id":1218},"content-parts-and-reasoning",[1220],{"type":62,"value":1221},"Content Parts and Reasoning",{"type":56,"tag":191,"props":1223,"children":1224},{},[1225,1245,1293,1313,1326],{"type":56,"tag":90,"props":1226,"children":1227},{},[1228,1230,1236,1238,1244],{"type":62,"value":1229},"Tool result ",{"type":56,"tag":71,"props":1231,"children":1233},{"className":1232},[],[1234],{"type":62,"value":1235},"{ type: 'media' }",{"type":62,"value":1237}," is removed; use ",{"type":56,"tag":71,"props":1239,"children":1241},{"className":1240},[],[1242],{"type":62,"value":1243},"{ type: 'file-data' }",{"type":62,"value":212},{"type":56,"tag":90,"props":1246,"children":1247},{},[1248,1250,1256,1257,1263,1264,1270,1271,1277,1278,1284,1286,1292],{"type":62,"value":1249},"Migrate ",{"type":56,"tag":71,"props":1251,"children":1253},{"className":1252},[],[1254],{"type":62,"value":1255},"toModelOutput",{"type":62,"value":1007},{"type":56,"tag":71,"props":1258,"children":1260},{"className":1259},[],[1261],{"type":62,"value":1262},"image-*",{"type":62,"value":115},{"type":56,"tag":71,"props":1265,"children":1267},{"className":1266},[],[1268],{"type":62,"value":1269},"file-*",{"type":62,"value":115},{"type":56,"tag":71,"props":1272,"children":1274},{"className":1273},[],[1275],{"type":62,"value":1276},"file-id",{"type":62,"value":432},{"type":56,"tag":71,"props":1279,"children":1281},{"className":1280},[],[1282],{"type":62,"value":1283},"image-file-id",{"type":62,"value":1285}," variants to canonical ",{"type":56,"tag":71,"props":1287,"children":1289},{"className":1288},[],[1290],{"type":62,"value":1291},"{ type: 'file', mediaType, data: { type: 'data' | 'url' | 'reference', ... } }",{"type":62,"value":212},{"type":56,"tag":90,"props":1294,"children":1295},{},[1296,1298,1304,1306,1312],{"type":62,"value":1297},"User message ",{"type":56,"tag":71,"props":1299,"children":1301},{"className":1300},[],[1302],{"type":62,"value":1303},"{ type: 'image', image, mediaType? }",{"type":62,"value":1305}," is deprecated; use ",{"type":56,"tag":71,"props":1307,"children":1309},{"className":1308},[],[1310],{"type":62,"value":1311},"{ type: 'file', mediaType: 'image' | 'image\u002F*', data }",{"type":62,"value":212},{"type":56,"tag":90,"props":1314,"children":1315},{},[1316,1318,1324],{"type":62,"value":1317},"Add support for the new ",{"type":56,"tag":71,"props":1319,"children":1321},{"className":1320},[],[1322],{"type":62,"value":1323},"reasoning-file",{"type":62,"value":1325}," content type in exhaustive switches, renderers, serializers, and validators.",{"type":56,"tag":90,"props":1327,"children":1328},{},[1329,1331,1337,1339,1345],{"type":62,"value":1330},"When adopting top-level ",{"type":56,"tag":71,"props":1332,"children":1334},{"className":1333},[],[1335],{"type":62,"value":1336},"reasoning",{"type":62,"value":1338},", remove overlapping provider-specific reasoning settings from ",{"type":56,"tag":71,"props":1340,"children":1342},{"className":1341},[],[1343],{"type":62,"value":1344},"providerOptions",{"type":62,"value":1346}," unless provider-specific settings intentionally take precedence.",{"type":56,"tag":57,"props":1348,"children":1350},{"id":1349},"multi-step-result-shape",[1351],{"type":62,"value":1352},"Multi-Step Result Shape",{"type":56,"tag":191,"props":1354,"children":1355},{},[1356,1383,1467,1528],{"type":56,"tag":90,"props":1357,"children":1358},{},[1359,1365,1367,1373,1375,1381],{"type":56,"tag":71,"props":1360,"children":1362},{"className":1361},[],[1363],{"type":62,"value":1364},"result.usage",{"type":62,"value":1366}," now includes all steps; ",{"type":56,"tag":71,"props":1368,"children":1370},{"className":1369},[],[1371],{"type":62,"value":1372},"result.totalUsage",{"type":62,"value":1374}," is deprecated. Use ",{"type":56,"tag":71,"props":1376,"children":1378},{"className":1377},[],[1379],{"type":62,"value":1380},"result.finalStep.usage",{"type":62,"value":1382}," for final-step-only usage.",{"type":56,"tag":90,"props":1384,"children":1385},{},[1386,1388,1394,1395,1401,1402,1408,1409,1415,1416,1422,1423,1429,1430,1436,1437,1443,1444,1450,1451,1457,1459,1465],{"type":62,"value":1387},"Top-level ",{"type":56,"tag":71,"props":1389,"children":1391},{"className":1390},[],[1392],{"type":62,"value":1393},"content",{"type":62,"value":115},{"type":56,"tag":71,"props":1396,"children":1398},{"className":1397},[],[1399],{"type":62,"value":1400},"toolCalls",{"type":62,"value":115},{"type":56,"tag":71,"props":1403,"children":1405},{"className":1404},[],[1406],{"type":62,"value":1407},"staticToolCalls",{"type":62,"value":115},{"type":56,"tag":71,"props":1410,"children":1412},{"className":1411},[],[1413],{"type":62,"value":1414},"dynamicToolCalls",{"type":62,"value":115},{"type":56,"tag":71,"props":1417,"children":1419},{"className":1418},[],[1420],{"type":62,"value":1421},"toolResults",{"type":62,"value":115},{"type":56,"tag":71,"props":1424,"children":1426},{"className":1425},[],[1427],{"type":62,"value":1428},"staticToolResults",{"type":62,"value":115},{"type":56,"tag":71,"props":1431,"children":1433},{"className":1432},[],[1434],{"type":62,"value":1435},"dynamicToolResults",{"type":62,"value":115},{"type":56,"tag":71,"props":1438,"children":1440},{"className":1439},[],[1441],{"type":62,"value":1442},"files",{"type":62,"value":115},{"type":56,"tag":71,"props":1445,"children":1447},{"className":1446},[],[1448],{"type":62,"value":1449},"sources",{"type":62,"value":432},{"type":56,"tag":71,"props":1452,"children":1454},{"className":1453},[],[1455],{"type":62,"value":1456},"warnings",{"type":62,"value":1458}," now include all steps. Use ",{"type":56,"tag":71,"props":1460,"children":1462},{"className":1461},[],[1463],{"type":62,"value":1464},"finalStep",{"type":62,"value":1466}," for previous final-step-only behavior.",{"type":56,"tag":90,"props":1468,"children":1469},{},[1470,1471,1476,1477,1483,1484,1490,1491,1497,1498,1504,1506,1512,1514,1519,1521,1527],{"type":62,"value":1387},{"type":56,"tag":71,"props":1472,"children":1474},{"className":1473},[],[1475],{"type":62,"value":1336},{"type":62,"value":115},{"type":56,"tag":71,"props":1478,"children":1480},{"className":1479},[],[1481],{"type":62,"value":1482},"reasoningText",{"type":62,"value":115},{"type":56,"tag":71,"props":1485,"children":1487},{"className":1486},[],[1488],{"type":62,"value":1489},"request",{"type":62,"value":115},{"type":56,"tag":71,"props":1492,"children":1494},{"className":1493},[],[1495],{"type":62,"value":1496},"response",{"type":62,"value":432},{"type":56,"tag":71,"props":1499,"children":1501},{"className":1500},[],[1502],{"type":62,"value":1503},"providerMetadata",{"type":62,"value":1505}," are deprecated for final-step data. Use ",{"type":56,"tag":71,"props":1507,"children":1509},{"className":1508},[],[1510],{"type":62,"value":1511},"result.finalStep.*",{"type":62,"value":1513},"; for ",{"type":56,"tag":71,"props":1515,"children":1517},{"className":1516},[],[1518],{"type":62,"value":416},{"type":62,"value":1520},", await ",{"type":56,"tag":71,"props":1522,"children":1524},{"className":1523},[],[1525],{"type":62,"value":1526},"result.finalStep",{"type":62,"value":212},{"type":56,"tag":90,"props":1529,"children":1530},{},[1531,1533,1538],{"type":62,"value":1532},"Apply the same result-shape rules to ",{"type":56,"tag":71,"props":1534,"children":1536},{"className":1535},[],[1537],{"type":62,"value":660},{"type":62,"value":1539}," events.",{"type":56,"tag":57,"props":1541,"children":1543},{"id":1542},"stream-response-helpers",[1544],{"type":62,"value":1545},"Stream Response Helpers",{"type":56,"tag":65,"props":1547,"children":1548},{},[1549,1551,1556],{"type":62,"value":1550},"The ",{"type":56,"tag":71,"props":1552,"children":1554},{"className":1553},[],[1555],{"type":62,"value":416},{"type":62,"value":1557}," result helper methods are deprecated. Replace result methods with top-level stateless helpers:",{"type":56,"tag":191,"props":1559,"children":1560},{},[1561,1578,1603,1626,1650],{"type":56,"tag":90,"props":1562,"children":1563},{},[1564,1570,1571,1577],{"type":56,"tag":71,"props":1565,"children":1567},{"className":1566},[],[1568],{"type":62,"value":1569},"result.toUIMessageStream(...)",{"type":62,"value":204},{"type":56,"tag":71,"props":1572,"children":1574},{"className":1573},[],[1575],{"type":62,"value":1576},"toUIMessageStream({ stream: result.stream, ... })",{"type":62,"value":212},{"type":56,"tag":90,"props":1579,"children":1580},{},[1581,1587,1588,1594,1596,1602],{"type":56,"tag":71,"props":1582,"children":1584},{"className":1583},[],[1585],{"type":62,"value":1586},"result.toUIMessageStreamResponse(...)",{"type":62,"value":204},{"type":56,"tag":71,"props":1589,"children":1591},{"className":1590},[],[1592],{"type":62,"value":1593},"toUIMessageStream(...)",{"type":62,"value":1595}," plus ",{"type":56,"tag":71,"props":1597,"children":1599},{"className":1598},[],[1600],{"type":62,"value":1601},"createUIMessageStreamResponse({ stream })",{"type":62,"value":212},{"type":56,"tag":90,"props":1604,"children":1605},{},[1606,1612,1613,1618,1619,1625],{"type":56,"tag":71,"props":1607,"children":1609},{"className":1608},[],[1610],{"type":62,"value":1611},"result.pipeUIMessageStreamToResponse(response, ...)",{"type":62,"value":204},{"type":56,"tag":71,"props":1614,"children":1616},{"className":1615},[],[1617],{"type":62,"value":1593},{"type":62,"value":1595},{"type":56,"tag":71,"props":1620,"children":1622},{"className":1621},[],[1623],{"type":62,"value":1624},"pipeUIMessageStreamToResponse({ response, stream })",{"type":62,"value":212},{"type":56,"tag":90,"props":1627,"children":1628},{},[1629,1635,1636,1642,1643,1649],{"type":56,"tag":71,"props":1630,"children":1632},{"className":1631},[],[1633],{"type":62,"value":1634},"result.toTextStreamResponse()",{"type":62,"value":204},{"type":56,"tag":71,"props":1637,"children":1639},{"className":1638},[],[1640],{"type":62,"value":1641},"toTextStream({ stream: result.stream })",{"type":62,"value":1595},{"type":56,"tag":71,"props":1644,"children":1646},{"className":1645},[],[1647],{"type":62,"value":1648},"createTextStreamResponse({ stream })",{"type":62,"value":212},{"type":56,"tag":90,"props":1651,"children":1652},{},[1653,1659,1660,1665,1666,1672],{"type":56,"tag":71,"props":1654,"children":1656},{"className":1655},[],[1657],{"type":62,"value":1658},"result.pipeTextStreamToResponse(response)",{"type":62,"value":204},{"type":56,"tag":71,"props":1661,"children":1663},{"className":1662},[],[1664],{"type":62,"value":1641},{"type":62,"value":1595},{"type":56,"tag":71,"props":1667,"children":1669},{"className":1668},[],[1670],{"type":62,"value":1671},"pipeTextStreamToResponse({ response, stream })",{"type":62,"value":212},{"type":56,"tag":57,"props":1674,"children":1676},{"id":1675},"package-specific-checks",[1677],{"type":62,"value":1678},"Package-Specific Checks",{"type":56,"tag":191,"props":1680,"children":1681},{},[1682,1711,1739,1775],{"type":56,"tag":90,"props":1683,"children":1684},{},[1685,1687,1693,1695,1701,1703,1709],{"type":62,"value":1686},"MCP: ",{"type":56,"tag":71,"props":1688,"children":1690},{"className":1689},[],[1691],{"type":62,"value":1692},"MCPTransportConfig.redirect",{"type":62,"value":1694}," now defaults to ",{"type":56,"tag":71,"props":1696,"children":1698},{"className":1697},[],[1699],{"type":62,"value":1700},"'error'",{"type":62,"value":1702},". Only set ",{"type":56,"tag":71,"props":1704,"children":1706},{"className":1705},[],[1707],{"type":62,"value":1708},"redirect: 'follow'",{"type":62,"value":1710}," for trusted MCP servers that rely on redirects.",{"type":56,"tag":90,"props":1712,"children":1713},{},[1714,1716,1722,1723,1729,1731,1737],{"type":62,"value":1715},"Vue: ",{"type":56,"tag":71,"props":1717,"children":1719},{"className":1718},[],[1720],{"type":62,"value":1721},"@ai-sdk\u002Fvue",{"type":62,"value":1007},{"type":56,"tag":71,"props":1724,"children":1726},{"className":1725},[],[1727],{"type":62,"value":1728},"Chat",{"type":62,"value":1730}," class is deprecated. Prefer ",{"type":56,"tag":71,"props":1732,"children":1734},{"className":1733},[],[1735],{"type":62,"value":1736},"useChat",{"type":62,"value":1738},", including getter\u002Fref init for reactive chat inputs.",{"type":56,"tag":90,"props":1740,"children":1741},{},[1742,1744,1750,1752,1758,1760,1766,1768,1774],{"type":62,"value":1743},"Anthropic and ",{"type":56,"tag":71,"props":1745,"children":1747},{"className":1746},[],[1748],{"type":62,"value":1749},"@ai-sdk\u002Fgoogle-vertex\u002Fanthropic",{"type":62,"value":1751},": ",{"type":56,"tag":71,"props":1753,"children":1755},{"className":1754},[],[1756],{"type":62,"value":1757},"providerMetadata.anthropic.cacheCreationInputTokens",{"type":62,"value":1759}," was removed. Use ",{"type":56,"tag":71,"props":1761,"children":1763},{"className":1762},[],[1764],{"type":62,"value":1765},"usage.inputTokenDetails.cacheWriteTokens",{"type":62,"value":1767},"; raw Anthropic usage remains at ",{"type":56,"tag":71,"props":1769,"children":1771},{"className":1770},[],[1772],{"type":62,"value":1773},"finalStep.providerMetadata?.anthropic?.usage",{"type":62,"value":212},{"type":56,"tag":90,"props":1776,"children":1777},{},[1778,1780,1786,1788,1794,1796,1802,1803,1809,1811,1817],{"type":62,"value":1779},"Google: rename ",{"type":56,"tag":71,"props":1781,"children":1783},{"className":1782},[],[1784],{"type":62,"value":1785},"GoogleGenerativeAI*",{"type":62,"value":1787}," types, classes, and functions to ",{"type":56,"tag":71,"props":1789,"children":1791},{"className":1790},[],[1792],{"type":62,"value":1793},"Google*",{"type":62,"value":1795},", e.g. ",{"type":56,"tag":71,"props":1797,"children":1799},{"className":1798},[],[1800],{"type":62,"value":1801},"createGoogleGenerativeAI",{"type":62,"value":204},{"type":56,"tag":71,"props":1804,"children":1806},{"className":1805},[],[1807],{"type":62,"value":1808},"createGoogle",{"type":62,"value":1810},". The ",{"type":56,"tag":71,"props":1812,"children":1814},{"className":1813},[],[1815],{"type":62,"value":1816},"google",{"type":62,"value":1818}," entry point is unchanged.",{"type":56,"tag":57,"props":1820,"children":1822},{"id":1821},"validation",[1823],{"type":62,"value":1824},"Validation",{"type":56,"tag":65,"props":1826,"children":1827},{},[1828],{"type":62,"value":1829},"Run the project typecheck after edits, then the smallest relevant test suite. Also smoke-test streaming, chat UI, tool execution, telemetry, and multi-step flows if the migration touched them. If type errors remain, search the migration guide for the exact removed or renamed symbol before inventing a workaround.",{"items":1831,"total":1922},[1832,1844,1862,1874,1891,1902,1912],{"slug":1833,"name":1833,"fn":1834,"description":1835,"org":1836,"tags":1837,"stars":26,"repoUrl":27,"updatedAt":1843},"add-function-examples","add AI function examples for testing","Guide for adding new AI function examples, for testing specific features against the actual provider APIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1838,1839,1842],{"name":21,"slug":22,"type":13},{"name":1840,"slug":1841,"type":13},"Testing","testing",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:51.318866",{"slug":1845,"name":1845,"fn":1846,"description":1847,"org":1848,"tags":1849,"stars":26,"repoUrl":27,"updatedAt":1861},"add-harness-package","add AI SDK harness packages","Guide for adding new AI SDK harness packages. Use when creating a new @ai-sdk\u002Fharness-\u003Cname> package that adapts a coding-agent runtime to HarnessV1.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1850,1853,1854,1857,1860],{"name":1851,"slug":1852,"type":13},"Agents","agents",{"name":21,"slug":22,"type":13},{"name":1855,"slug":1856,"type":13},"Harness","harness",{"name":1858,"slug":1859,"type":13},"SDK","sdk",{"name":9,"slug":8,"type":13},"2026-06-18T08:29:19.858737",{"slug":1863,"name":1863,"fn":1864,"description":1865,"org":1866,"tags":1867,"stars":26,"repoUrl":27,"updatedAt":1873},"add-provider-package","add new provider packages to AI SDK","Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk\u002F\u003Cprovider> package to integrate an AI service into the SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1868,1869,1872],{"name":21,"slug":22,"type":13},{"name":1870,"slug":1871,"type":13},"API Development","api-development",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:47.45549",{"slug":1875,"name":1875,"fn":1876,"description":1877,"org":1878,"tags":1879,"stars":26,"repoUrl":27,"updatedAt":1890},"adr-skill","create and maintain architecture decision records","Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept\u002Freject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1880,1883,1886,1889],{"name":1881,"slug":1882,"type":13},"ADR","adr",{"name":1884,"slug":1885,"type":13},"Architecture","architecture",{"name":1887,"slug":1888,"type":13},"Documentation","documentation",{"name":24,"slug":25,"type":13},"2026-04-06T18:55:50.043694",{"slug":22,"name":22,"fn":1892,"description":1893,"org":1894,"tags":1895,"stars":26,"repoUrl":27,"updatedAt":1901},"build AI features with Vercel AI SDK","Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: \"AI SDK\", \"Vercel AI SDK\", \"generateText\", \"streamText\", \"add AI to my app\", \"build an agent\", \"tool calling\", \"structured output\", \"useChat\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1896,1897,1898,1900],{"name":1851,"slug":1852,"type":13},{"name":21,"slug":22,"type":13},{"name":1899,"slug":39,"type":13},"LLM",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:48.739463",{"slug":1903,"name":1903,"fn":1904,"description":1905,"org":1906,"tags":1907,"stars":26,"repoUrl":27,"updatedAt":1911},"capture-api-response-test-fixture","capture API response test fixtures","Capture API response test fixture.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1908,1909,1910],{"name":1870,"slug":1871,"type":13},{"name":1840,"slug":1841,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:56.374433",{"slug":1913,"name":1913,"fn":1914,"description":1915,"org":1916,"tags":1917,"stars":26,"repoUrl":27,"updatedAt":1921},"develop-ai-functions-example","develop AI SDK function examples","Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples\u002Fai-functions\u002Fsrc to validate provider support, demonstrate features, or create test fixtures.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1918,1919,1920],{"name":21,"slug":22,"type":13},{"name":1840,"slug":1841,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:55.088956",12,{"items":1924,"total":2050},[1925,1945,1959,1978,1989,2004,2010,2018,2024,2031,2038,2044],{"slug":1926,"name":1926,"fn":1927,"description":1928,"org":1929,"tags":1930,"stars":1942,"repoUrl":1943,"updatedAt":1944},"next-cache-components-adoption","enable and migrate to Next.js Cache Components","Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the `cacheComponents` flag, work through a flood of blocking-prerender \u002F instant validation errors, run the `cache-components-instant-false` codemod, or decide between opting routes out with `export const instant = false` and fixing them in place.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1931,1934,1937,1938,1941],{"name":1932,"slug":1933,"type":13},"Caching","caching",{"name":1935,"slug":1936,"type":13},"Frontend","frontend",{"name":18,"slug":19,"type":13},{"name":1939,"slug":1940,"type":13},"Next.js","next-js",{"name":9,"slug":8,"type":13},141208,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js","2026-07-24T05:38:30.118542",{"slug":1946,"name":1946,"fn":1947,"description":1948,"org":1949,"tags":1950,"stars":1942,"repoUrl":1943,"updatedAt":1958},"next-cache-components-optimizer","optimize Next.js cache components","Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components \u002F PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next\u002Fplaywright instant() e2e and work it to green, one verified route at a time; the shipped test then guards against regression. Use when asked to make a route's navigation instant (its static shell commits immediately), fix a route whose static shell isn't prerendered\u002Fserved\u002Fprefetched, grow a route's static shell or fix its slow first paint, diagnose which Suspense boundary keeps a route out of its static shell, or write the instant() e2e guard for one. Requires Next.js 16.3+ with cacheComponents; directs an upgrade if older.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1951,1952,1953,1954,1957],{"name":1932,"slug":1933,"type":13},{"name":1935,"slug":1936,"type":13},{"name":1939,"slug":1940,"type":13},{"name":1955,"slug":1956,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-07-30T05:31:10.674078",{"slug":1960,"name":1960,"fn":1961,"description":1962,"org":1963,"tags":1964,"stars":1942,"repoUrl":1943,"updatedAt":1977},"next-dev-loop","verify Next.js runtime behavior","Verify Next.js runtime behavior after editing app code. Use this skill to confirm a change actually works in a running app — not just that it compiles or type-checks. Combines \u002F_next\u002Fmcp (Next.js's view) with agent-browser (the browser's view). Requires a running `next dev`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1965,1968,1969,1972,1973,1974],{"name":1966,"slug":1967,"type":13},"Debugging","debugging",{"name":1935,"slug":1936,"type":13},{"name":1970,"slug":1971,"type":13},"Local Development","local-development",{"name":1939,"slug":1940,"type":13},{"name":9,"slug":8,"type":13},{"name":1975,"slug":1976,"type":13},"Web Development","web-development","2026-05-22T06:45:28.627735",{"slug":1979,"name":1979,"fn":1980,"description":1981,"org":1982,"tags":1983,"stars":1942,"repoUrl":1943,"updatedAt":1988},"next-partial-prefetching-adoption","adopt Partial Prefetching in Next.js apps","Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the `partialPrefetching` flag, opt routes in with `export const prefetch = 'partial'`, audit `\u003CLink prefetch={true}>` calls, or resolve the link-prefetch-partial and instant-shell-url-data insights.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1984,1985,1986,1987],{"name":1935,"slug":1936,"type":13},{"name":1939,"slug":1940,"type":13},{"name":1955,"slug":1956,"type":13},{"name":9,"slug":8,"type":13},"2026-07-30T05:31:11.591864",{"slug":1990,"name":1990,"fn":1991,"description":1992,"org":1993,"tags":1994,"stars":2001,"repoUrl":2002,"updatedAt":2003},"turborepo","manage monorepos with Turborepo","Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines,\ndependsOn, caching, remote cache, the \"turbo\" CLI, --filter, --affected, CI optimization, environment\nvariables, internal packages, monorepo structure\u002Fbest practices, and boundaries.\n\nUse when user: configures tasks\u002Fworkflows\u002Fpipelines, creates packages, sets up\nmonorepo, shares code between apps, runs changed\u002Faffected packages, debugs cache,\nor has apps\u002Fpackages directories.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1995,1998,1999],{"name":1996,"slug":1997,"type":13},"CI\u002FCD","ci-cd",{"name":1955,"slug":1956,"type":13},{"name":2000,"slug":1990,"type":13},"Turborepo",30809,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fturborepo","2026-07-30T05:32:14.920116",{"slug":1833,"name":1833,"fn":1834,"description":1835,"org":2005,"tags":2006,"stars":26,"repoUrl":27,"updatedAt":1843},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2007,2008,2009],{"name":21,"slug":22,"type":13},{"name":1840,"slug":1841,"type":13},{"name":9,"slug":8,"type":13},{"slug":1845,"name":1845,"fn":1846,"description":1847,"org":2011,"tags":2012,"stars":26,"repoUrl":27,"updatedAt":1861},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2013,2014,2015,2016,2017],{"name":1851,"slug":1852,"type":13},{"name":21,"slug":22,"type":13},{"name":1855,"slug":1856,"type":13},{"name":1858,"slug":1859,"type":13},{"name":9,"slug":8,"type":13},{"slug":1863,"name":1863,"fn":1864,"description":1865,"org":2019,"tags":2020,"stars":26,"repoUrl":27,"updatedAt":1873},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2021,2022,2023],{"name":21,"slug":22,"type":13},{"name":1870,"slug":1871,"type":13},{"name":9,"slug":8,"type":13},{"slug":1875,"name":1875,"fn":1876,"description":1877,"org":2025,"tags":2026,"stars":26,"repoUrl":27,"updatedAt":1890},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2027,2028,2029,2030],{"name":1881,"slug":1882,"type":13},{"name":1884,"slug":1885,"type":13},{"name":1887,"slug":1888,"type":13},{"name":24,"slug":25,"type":13},{"slug":22,"name":22,"fn":1892,"description":1893,"org":2032,"tags":2033,"stars":26,"repoUrl":27,"updatedAt":1901},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2034,2035,2036,2037],{"name":1851,"slug":1852,"type":13},{"name":21,"slug":22,"type":13},{"name":1899,"slug":39,"type":13},{"name":9,"slug":8,"type":13},{"slug":1903,"name":1903,"fn":1904,"description":1905,"org":2039,"tags":2040,"stars":26,"repoUrl":27,"updatedAt":1911},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2041,2042,2043],{"name":1870,"slug":1871,"type":13},{"name":1840,"slug":1841,"type":13},{"name":9,"slug":8,"type":13},{"slug":1913,"name":1913,"fn":1914,"description":1915,"org":2045,"tags":2046,"stars":26,"repoUrl":27,"updatedAt":1921},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2047,2048,2049],{"name":21,"slug":22,"type":13},{"name":1840,"slug":1841,"type":13},{"name":9,"slug":8,"type":13},68]