ai@7.0.154
Vercel AI SDK 7.0.154 adds new error handling callbacks (onStepError, onError, onAbort), experimental steering capabilities, and telemetry improvements including an aiVersion attribute.
Why this signal matters
Vercel released ai@7.0.154 containing several patch changes. It introduces the onStepError callback to generateText, streamText, ToolLoopAgent, and telemetry integrations, alongside onError and onAbort callbacks specifically for ToolLoopAgent. Additionally, experimental steering has been added to generateText, streamText, and ToolLoopAgent. Telemetry events now include aiVersion to allow tracing-channel subscribers and telemetry integrations to determine the emitting ai package version in bundled or multi-version environments. Internal dependencies @ai-sdk/provider-utils and @ai-sdk/gateway were updated.
Actionable summary
ai@7.0.154 introduces onStepError to generateText, streamText, and ToolLoopAgent; adds onError and onAbort to ToolLoopAgent; adds experimental steering to text generation and ToolLoopAgent; and includes aiVersion in telemetry events.
- Agent usefulness
- 77/100
- Confidence
- 96%
- Canonical data
- JSON + Markdown
What builders should check
- Adopt onStepError in generateText, streamText, or ToolLoopAgent if step-level failure handling is required.
- Implement onError and onAbort callbacks when managing ToolLoopAgent execution lifecycles.
- Evaluate experimental steering options in generateText, streamText, and ToolLoopAgent if dynamic steering is needed.
- Update telemetry integrations or tracing-channel listeners to leverage the new aiVersion attribute.