Vercel has updated its AI SDK, with @ai-sdk/vue@4.0.84, @ai-sdk/zai@3.0.2, @ai-sdk/workflow@2.0.14, and @ai-sdk/workflow-harness@1.0.93 releases. These updates include enhancements to streaming capabilities, tool handling, and specific provider integrations.
Key Points
- Parsed structured output is now exposed in
streamTextend callbacks. - The ToolLoopAgent settings and
prepareCallnow allow tool approval secrets. - Stateful and empty-match regular expressions are handled in
smoothStream. - Amazon Bedrock integration now supports accepting citation deltas in streaming responses.
- A model family setting for embeddings has been added to Amazon Bedrock to support ARN.
- Assistant messages are omitted when only cache points remain after unsigned reasoning is filtered.
Context
According to Vercel, these updates are part of the ai@7.0.84 patch changes. The changesets were released via a GitHub action, with packages published to npm automatically upon merging. The updates also affect dependencies such as @ai-sdk/gateway@4.0.68, @ai-sdk/provider-utils@5.0.33, @ai-sdk/alibaba@2.0.38, and @ai-sdk/amazon-bedrock@5.0.67.
Why It Matters
These updates refine the Vercel AI SDK's capabilities for developers, particularly in handling structured outputs, tool integrations, and streaming responses from models like those on Amazon Bedrock. The changes aim to improve the reliability and functionality of AI-powered applications built with the SDK.
What To Do
- Review the updated documentation for
streamTextend callbacks to utilize the new structured output exposure. - Developers using ToolLoopAgent should note the allowance for tool approval secrets in settings and
prepareCall. - Test applications that rely on streaming with Amazon Bedrock to leverage citation deltas and the new embedding model family setting.
- Check for updated dependency versions for @ai-sdk/gateway, @ai-sdk/provider-utils, and @ai-sdk/alibaba.
