Vercel has updated its AI SDK, with @ai-sdk/workflow-harness@1.0.97 and other packages receiving new features and fixes. The updates address how the SDK handles tool calls and batch processing.
Key Points
- The ai@7.0.88 package prevents
generateTextfrom accepting responses that violate required tool choices. - Tool calling support has been added to batch operations across several SDK components.
- @ai-sdk/amazon-bedrock@5.0.70 received updated dependencies.
- @ai-sdk/openai@4.0.54 also saw dependency updates.
- @ai-sdk/angular@3.0.88 updated its dependencies.
- @ai-sdk/azure@4.0.57 had its dependencies updated.
- @ai-sdk/google@4.0.60 now includes tool calling support for batch operations.
Context
According to the Vercel AI SDK Changelog, these changes are part of a broader release process managed by the Changesets release GitHub action. This mechanism allows for packages to be published to npm automatically upon merging the release PR.
Why It Matters
These updates enhance the reliability and functionality of tool calling within the Vercel AI SDK, particularly for developers integrating AI models with specific function requirements or processing multiple requests simultaneously. The fix for generateText ensures stricter adherence to defined tool choices, which can improve application stability and predictability.
What To Do
- Review the updated ai@7.0.88 package to understand the
generateTextfix. - Explore the new tool calling support for batch operations if using @ai-sdk/google@4.0.60 or other affected packages.
- Note the dependency updates across various @ai-sdk packages.
- Check the Vercel AI SDK documentation for detailed implementation guidance on tool calling and batch features.
