Vercel has released updates to its AI SDK, including changes to how tool approval statuses are handled and how certain Anthropic options are managed within Amazon Bedrock. These updates are part of the ai@7.0.82 patch changes.
Key Points
- Manual tool approval statuses can now include a reason, which is preserved across core, model, and UI approval requests.
- OPA
requires-approvaldecisions now surface their reason to human approvers. - UI request chunks serialize the optional reason.
- UI messages retain the reason as
approval.requestReasonseparately from an approver's response reason. - The Anthropic option for disabling parallel tool use is now forwarded through Amazon Bedrock.
- This forwarding occurs without sending conflicting tool choice fields.
Context
According to Vercel's AI SDK changelog, these updates affect several packages, including @ai-sdk/workflow@2.0.12, @ai-sdk/workflow-harness@1.0.90, @ai-sdk/vue@4.0.82, and @ai-sdk/voyage@2.0.32. The changes aim to enhance the clarity and functionality of tool approval processes and improve compatibility with Anthropic models via Amazon Bedrock.
Why It Matters
These updates provide developers with more detailed control and transparency over tool approval workflows, which can be critical for applications requiring human oversight or compliance. The improved handling of Anthropic's parallel tool use option through Amazon Bedrock can simplify integration and prevent potential conflicts for developers utilizing these specific model capabilities.
What To Do
- Review the updated documentation for manual tool approval statuses to understand how to implement and utilize the new reason field.
- Test applications that use Anthropic models via Amazon Bedrock to ensure the parallel tool use option is functioning as expected.
- Note the specific package versions (
ai@7.0.82,@ai-sdk/workflow@2.0.12,@ai-sdk/amazon-bedrock@5.0.65,@ai-sdk/openai@4.0.49) to ensure compatibility in your projects. - Compare the new approval reason serialization in UI request chunks and messages with existing implementations.
