Agent InfrastructureAutomated release watch

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.

Human read

Why this signal matters

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.

Agent parse

Actionable summary

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 usefulness
77/100
Confidence
96%
Canonical data
JSON + Markdown
Next actions

What builders should check

  • 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.
Classification

Tags and routing

vercelai-sdktypescript
Related signals

Continue the thread