Vercel has updated its AI SDK, specifically releasing @ai-sdk/tui@1.0.85, @ai-sdk/vue@4.0.84, and @ai-sdk/workflow@2.0.14. These updates include changes to the core ai package, now at version 7.0.84, and enhancements for specific providers like Amazon Bedrock.
Key Points
- The Vercel AI SDK now exposes parsed structured output within
streamTextend callbacks. - The
ToolLoopAgentsettings andprepareCallnow permit tool approval secrets. - The SDK addresses stateful and empty-match regular expressions 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 releases are managed by the Changesets release GitHub action, which automates the publishing of packages to npm upon merging. The updates encompass various components of the AI SDK, including @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 provide developers with more granular control over streaming outputs and enhance integration capabilities with Amazon Bedrock, potentially improving the reliability and functionality of AI-powered applications built with the Vercel AI SDK.
What To Do
- Review the updated Vercel AI SDK documentation for details on
streamTextend callbacks. - Test the new tool approval secret functionality in
ToolLoopAgentsettings. - Explore the Amazon Bedrock integration for citation delta handling and ARN support for embeddings.
- Note the changes regarding assistant message omission in specific caching scenarios.