ai@7.0.181
Vercel AI SDK 7.0.181 adds stoppedBy metadata to clarify tool loop termination, introduces a per-call onWarning hook, and refines telemetry and steering message behavior.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Version 7.0.181 of the Vercel AI SDK includes several patch updates focused on execution observability and message handling. Key changes include: - Adding a per-call onWarning callback, alongside inclusion of prompt conversion warnings within step warnings. - Introducing stoppedBy in generateText and streamText results, onEnd , and finish parts to indicate why tool execution loops terminated. - Updating steering message handling to report why a run ended for messages sent post-run, and counting steering messages as delivered when prepareStep converts their text into parts or appends provider options. - Stripping provider options from text and file parts within extraction telemetry while maintaining arbitrary JSON state and provider options sent downstream. - Updating the @ai-sdk/gateway dependency to version 4.0.154.
可执行摘要
ai@7.0.181 introduces a per-call onWarning callback (including prompt conversion warnings), reports stoppedBy across generateText / streamText results and callbacks, fixes steering message delivery counting and end-reason reporting, and strips provider options from text/file parts in extraction telemetry. It also updates @ai-sdk/gateway to 4.0.154.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade ai dependency to version 7.0.181 .
- Optionally inspect stoppedBy in generateText or streamText output to diagnose tool loop termination causes.
- Implement the per-call onWarning callback if step warning tracking or prompt conversion diagnostic logging is needed.