DevelopersNov 24, 2026, 2:46 AM EST
Vercel AI SDK adds tool loop stop reasons and per-call warnings
Vercel released AI SDK version 7.0.181 with new controls for tracking warnings and understanding why a run stopped calling tools. The SDK now exposes a `stoppedBy` field in `generateText` and `streamText` results, in `onEnd`, and in the finish part. Developers can also supply an `onWarning` callback for individual calls, and step warnings now include issues from prompt conversion. When a steering message arrives after a run has ended, the SDK reports why the run ended.
Why it matters
Applications that make multiple tool calls can use the reported stop reason to explain an ended run and the warning callback to track issues on individual requests.
Sources
- PrimaryVercel AI SDKSource date ·
Written by AIToolMaps from the source above and checked against it sentence by sentence.