Vercel AI SDK 7.0.178 Improves Tool Call Distinction, Telemetry, and Security
Vercel's AI SDK version 7.0.178 introduces several updates, including improved messages array handling for tool calls, better handling of preliminary tool results, enhanced observability with experimental_extract, and a security fix for tool approval signatures.
What changed?
- generateText and streamText now generate a unique messages array for each step, allowing tool approval functions to distinguish tool calls from different model responses.
- streamText now forwards the preliminary flag on provider-executed tool results, so preliminary results (like OpenAI image generation previews) are not treated as final tool results.
- Telemetry, runtime context, and lifecycle callbacks are added to experimental_extract.
- Download errors sent to telemetry have file URLs redacted.
- The ai, ai/internal, and ai/test entrypoints are now built together for type compatibility.
- When experimental_toolApprovalSecret is configured, approval requests for automatically denied tool calls are no longer signed, preventing potential replay by clients.
Why does it matter to an everyday developer?
These updates impact developers integrating tools with the Vercel AI SDK in several ways. Unique messages arrays per step prevent ambiguity in tool approval flows, improving reliability when tools or human intervention are part of the model workflow. The accurate preliminary flag handling means interfaces can now better handle preview-to-final transitions such as for AI-generated images. Enhanced telemetry and redacted file URLs assist in debugging and privacy compliance. The security update prevents previously possible replay attacks for automatically denied tool calls when using experimental_toolApprovalSecret.

