Vercel has released updates to its AI SDK, with the core ai package reaching version 7.0.84. These updates include new functionalities for handling structured output in streaming text, improved tool management, and specific enhancements for Amazon Bedrock integrations.
Key Points
- The
ai@7.0.84package now exposes parsed structured output withinstreamTextend callbacks. ToolLoopAgentsettings andprepareCallnow support tool approval secrets.- The SDK addresses stateful and empty-match regular expressions in
smoothStream. - Amazon Bedrock integration (
@ai-sdk/amazon-bedrock@5.0.67) can now omit assistant messages when only cache points remain after unsigned reasoning is filtered. - A model family setting for embeddings has been added to Amazon Bedrock to support ARN.
- Amazon Bedrock streaming responses now accept citation deltas.
- Dependencies such as
@ai-sdk/gateway@4.0.68and@ai-sdk/provider-utils@5.0.33have been updated.
Context
According to the Vercel AI SDK changelog, these updates are part of ongoing maintenance and feature additions across various SDK components. The changes aim to refine how developers interact with AI models, particularly concerning structured data handling, tool security, and cloud provider integrations.
Why It Matters
These updates provide developers with more granular control over streaming outputs and tool interactions, potentially improving the reliability and security of AI-powered applications. Enhanced Amazon Bedrock support also broadens the capabilities for developers utilizing that platform, particularly for embeddings and streaming responses.
What To Do
- Review the updated
streamTextend callbacks for handling parsed structured output in your applications. - If using
ToolLoopAgent, integrate tool approval secrets into your settings andprepareCallconfigurations. - For Amazon Bedrock users, explore the new model family setting for embeddings and note the acceptance of citation deltas in streaming responses.
- Check the changelog for specific dependency updates, including
@ai-sdk/gateway@4.0.68and@ai-sdk/provider-utils@5.0.33.