Agent 基础设施官方发布自动监测

ai@5.0.290

Vercel AI SDK 5.0.290 fixes a memory/CPU exhaustion vector during UI message validation and aligns tool call error text with message history.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

Version 5.0.290 of the Vercel AI SDK addresses two key issues. First, it resolves excessive CPU and memory consumption during UI message validation (validateUIMessages and safeValidateUIMessages) caused by testing every part schema against every invalid part; validation now validates against type-specific schemas only, halts on the first invalid entry, and consolidates invalid JSON in provider metadata into a single issue. Second, failed tool call error text is kept consistent with model message history by default, adding the redactToolErrors: true option to mask it using onError.

Agent 解析

可执行摘要

ai@5.0.290 introduces performance and behavior fixes: prevents resource exhaustion in validateUIMessages by failing fast on invalid parts and checking only type-specific schemas, and maintains tool call error text consistency with an opt-in redactToolErrors flag.

Agent 实用度
77/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Upgrade to ai@5.0.290 to prevent potential memory/CPU exhaustion from malformed UI messages.
  • Evaluate if redactToolErrors: true is required if sensitive tool call error information should be hidden from message history.
分类

标签与路由

vercelai-sdktypescript
相关信号

继续阅读