Vercel has released updates for its AI SDK, including versions @ai-sdk/valibot@3.0.33, @ai-sdk/workflow@2.0.14, @ai-sdk/zai@3.0.2, and @ai-sdk/vue@4.0.84. These updates introduce new features and fixes, particularly for Amazon Bedrock integration and the core ai package, which is now at version 7.0.84.
Key Points
- The
ai@7.0.84package now exposes parsed structured output withinstreamTextend callbacks. - Tool approval secrets are now permitted in
ToolLoopAgentsettings andprepareCallwithin theaipackage. - The
aipackage includes a fix for handling stateful and empty-match regular expressions insmoothStream. - Amazon Bedrock integration, via @ai-sdk/amazon-bedrock@5.0.67, now supports accepting citation deltas in streaming responses.
- A model family setting has been added for Amazon Bedrock embeddings to support ARN (Amazon Resource Name).
- Assistant messages are omitted when only cache points remain after unsigned reasoning is filtered in @ai-sdk/amazon-bedrock@5.0.67.
Context
According to the Vercel AI SDK changelog, these releases are managed through a GitHub action that automatically publishes packages to npm upon merging. The updates reflect ongoing development to enhance the SDK's capabilities and integrations with various AI providers.
Why It Matters
These updates provide developers with more robust tools for integrating AI models, particularly those using Amazon Bedrock, by improving streaming capabilities, structured output handling, and tool management. The changes can lead to more reliable and feature-rich AI applications built with the Vercel AI SDK.
What To Do
- Review the updated documentation for
streamTextend callbacks to utilize the newly exposed structured output. - Developers using Amazon Bedrock should explore the new model family setting for embeddings with ARN support.
- Note the enhanced handling of citation deltas in Amazon Bedrock streaming responses for improved information retrieval.
- Check
ToolLoopAgentsettings for the new allowance of tool approval secrets.
