# ai@7.0.146

Category: agent-infrastructure
Published: 2026-10-20T04:12:45Z
Source: [Vercel AI SDK releases](https://github.com/vercel/ai/releases/tag/ai%407.0.146)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-10-20T04:17:49.773Z
Tags: vercel, ai-sdk, typescript

## Human Summary
Vercel AI SDK 7.0.146 adds maxOutputTokens and reasoning options to experimental decision calls, while resolving type errors for optional tools and cleaning up orphaned reasoning when pruning tool calls.

## Agent Summary
ai@7.0.146 forwards maxOutputTokens and reasoning to language-model-backed decisions, drops orphaned reasoning parts during tool pruning, and removes incorrect undefined members from optional tool event types.

## Body
The ai@7.0.146 patch release introduces several updates to tool calling and experimental decisions. Specifically, maxOutputTokens and reasoning options are now supported in experimental decision calls and forwarded to language-model-backed decisions (language-model adapters default reasoning to disabled when omitted, and native providers warn if unsupported). In addition, orphaned reasoning parts (including consecutive summary and reasoning-file parts) are now properly removed when pruning tool calls. Finally, a typing fix ensures optional tools do not inject an erroneous undefined member into tool call, result, error, denied output, or execution event types. Corresponding updates were applied to @ai-sdk/gateway, @ai-sdk/provider, and @ai-sdk/provider-utils.

## Recommended actions
- Upgrade the ai package to 7.0.146 along with related @ai-sdk dependencies if using experimental decision calls or optional tool types.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.