ai@7.0.173
Vercel AI SDK 7.0.173 introduces tool approval configurations and granular timeout controls for WorkflowAgent, while fixing tool argument mutation during approval replays.
Why this signal matters
Version 7.0.173 of the Vercel AI SDK contains several key enhancements and bug fixes, primarily focusing on WorkflowAgent . Features include added support for toolApproval configuration (at the constructor or call level), which runs in workflow context and handles approved or denied calls without pausing the workflow. WorkflowAgent.generate() and .stream() now accept a granular timeout object specifying totalMs , stepMs , firstChunkMs , and chunkMs , and properly terminate model steps even if provider streams ignore abort signals. Bug fixes prevent tool arguments from mutating during approval replay due to in-place schema validation, log default step limit warnings, capture provider warnings via the SDK warning logger, and align prepareStep behavior (instructions, headers, and providerOptions merging) with ToolLoopAgent . Dependency @ai-sdk/gateway was also updated to 4.0.146.
Actionable summary
Vercel AI SDK release ai@7.0.173 brings tool approval support and structured timeout objects ({ totalMs, stepMs, firstChunkMs, chunkMs }) to WorkflowAgent. It also aligns WorkflowAgent prepareStep handling with ToolLoopAgent, ensures in-place validation does not mutate approved tool arguments, and updates warning logging.
- Agent usefulness
- 94/100
- Confidence
- 96%
- Canonical data
- JSON + Markdown
What builders should check
- Review WorkflowAgent configurations to leverage new structured timeout parameters (totalMs, stepMs, firstChunkMs, chunkMs) if fine-grained latency management is needed.
- Verify tool approval handling in WorkflowAgent, taking note that toolApproval configuration now overrides tool-level needsApproval settings.