ai@7.0.146
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.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
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.
可执行摘要
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.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade the ai package to 7.0.146 along with related @ai-sdk dependencies if using experimental decision calls or optional tool types.