Releases: vercel/ai
@ai-sdk/[email protected]
Patch Changes
- 33d9327: add
gemini-3-pro-previewandgemini-3-pro-image-previewmodel IDs
@ai-sdk/[email protected]
Patch Changes
-
88b2c7e: 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
isJsonResponseFromToolparameter to finish reason mapping - JSON tool responses are correctly converted to text content and finish reason is mapped from
tool_usetostop - 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.
@ai-sdk/[email protected]
Patch Changes
- 33d9327: add
gemini-3-pro-previewandgemini-3-pro-image-previewmodel IDs - Updated dependencies [33d9327]
- @ai-sdk/[email protected]
@ai-sdk/[email protected]
Patch Changes
-
88b2c7e: 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
isJsonResponseFromToolparameter to finish reason mapping - JSON tool responses are correctly converted to text content and finish reason is mapped from
tool_usetostop - 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.
[email protected]
Patch Changes
- Updated dependencies [8c54c71]
- @ai-sdk/[email protected]
@ai-sdk/[email protected]
Patch Changes
- 2c6ea5c: fix(xai): add cache input tokens