github vercel/ai @ai-sdk/amazon-bedrock@3.0.57

latest releases: @ai-sdk/google-vertex@3.0.74, @ai-sdk/google@2.0.42, @ai-sdk/google@3.0.0-beta.54...
5 hours ago

Patch Changes

  • 708df55: feat(provider/amazon-bedrock,provider/google-vertex-anthropic): add support for tool calling with structured output

    Added support for combining tool calling with structured outputs in both Amazon Bedrock and Google Vertex Anthropic providers. This allows developers to use tools (like weather lookups, web search, etc.) alongside structured JSON output schemas, enabling multi-step agentic workflows with structured final outputs.

    Amazon Bedrock Changes:

    • Removed incorrect warning that prevented using tools with JSON response format
    • Updated tool choice to use { type: 'required' } instead of specific tool selection when using structured outputs
    • Added isJsonResponseFromTool parameter to finish reason mapping
    • JSON tool responses are correctly converted to text content and finish reason is mapped from tool_use to stop
    • Added comprehensive test coverage for combining tools with structured outputs
    • Added example files demonstrating the feature

    Google Vertex Anthropic Changes:

    • Inherits support from underlying Anthropic provider implementation
    • Added test coverage to verify the feature works correctly
    • Added example files demonstrating the feature

    This brings Anthropic provider's structured output capabilities to the Amazon Bedrock and Google Vertex Anthropic providers.

Don't miss a new ai release

NewReleases is sending notifications on new releases.