Skip to content

Commit 1b89b14

Browse files
Version Packages (#10483)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release-v5.0, this PR will be updated. # Releases ## @ai-sdk/[email protected] ### 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. ## @ai-sdk/[email protected] ### Patch Changes - 3438163: add `gemini-3-pro-preview` and `gemini-3-pro-image-preview` model IDs ## @ai-sdk/[email protected] ### Patch Changes - 3438163: add `gemini-3-pro-preview` and `gemini-3-pro-image-preview` model IDs - 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. - Updated dependencies [3438163] - @ai-sdk/[email protected] Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
1 parent 3438163 commit 1b89b14

File tree

8 files changed

+63
-34
lines changed

8 files changed

+63
-34
lines changed

.changeset/sixty-laws-ring.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/stale-turtles-clap.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/amazon-bedrock/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# @ai-sdk/amazon-bedrock
22

3+
## 3.0.57
4+
5+
### Patch Changes
6+
7+
- 708df55: feat(provider/amazon-bedrock,provider/google-vertex-anthropic): add support for tool calling with structured output
8+
9+
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.
10+
11+
**Amazon Bedrock Changes:**
12+
13+
- Removed incorrect warning that prevented using tools with JSON response format
14+
- Updated tool choice to use `{ type: 'required' }` instead of specific tool selection when using structured outputs
15+
- Added `isJsonResponseFromTool` parameter to finish reason mapping
16+
- JSON tool responses are correctly converted to text content and finish reason is mapped from `tool_use` to `stop`
17+
- Added comprehensive test coverage for combining tools with structured outputs
18+
- Added example files demonstrating the feature
19+
20+
**Google Vertex Anthropic Changes:**
21+
22+
- Inherits support from underlying Anthropic provider implementation
23+
- Added test coverage to verify the feature works correctly
24+
- Added example files demonstrating the feature
25+
26+
This brings Anthropic provider's structured output capabilities to the Amazon Bedrock and Google Vertex Anthropic providers.
27+
328
## 3.0.56
429

530
### Patch Changes

packages/amazon-bedrock/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ai-sdk/amazon-bedrock",
3-
"version": "3.0.56",
3+
"version": "3.0.57",
44
"license": "Apache-2.0",
55
"sideEffects": false,
66
"main": "./dist/index.js",

packages/google-vertex/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# @ai-sdk/google-vertex
22

3+
## 3.0.73
4+
5+
### Patch Changes
6+
7+
- 3438163: add `gemini-3-pro-preview` and `gemini-3-pro-image-preview` model IDs
8+
- 708df55: feat(provider/amazon-bedrock,provider/google-vertex-anthropic): add support for tool calling with structured output
9+
10+
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.
11+
12+
**Amazon Bedrock Changes:**
13+
14+
- Removed incorrect warning that prevented using tools with JSON response format
15+
- Updated tool choice to use `{ type: 'required' }` instead of specific tool selection when using structured outputs
16+
- Added `isJsonResponseFromTool` parameter to finish reason mapping
17+
- JSON tool responses are correctly converted to text content and finish reason is mapped from `tool_use` to `stop`
18+
- Added comprehensive test coverage for combining tools with structured outputs
19+
- Added example files demonstrating the feature
20+
21+
**Google Vertex Anthropic Changes:**
22+
23+
- Inherits support from underlying Anthropic provider implementation
24+
- Added test coverage to verify the feature works correctly
25+
- Added example files demonstrating the feature
26+
27+
This brings Anthropic provider's structured output capabilities to the Amazon Bedrock and Google Vertex Anthropic providers.
28+
29+
- Updated dependencies [3438163]
30+
- @ai-sdk/google@2.0.41
31+
332
## 3.0.72
433

534
### Patch Changes

packages/google-vertex/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ai-sdk/google-vertex",
3-
"version": "3.0.72",
3+
"version": "3.0.73",
44
"license": "Apache-2.0",
55
"sideEffects": false,
66
"main": "./dist/index.js",

packages/google/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @ai-sdk/google
22

3+
## 2.0.41
4+
5+
### Patch Changes
6+
7+
- 3438163: add `gemini-3-pro-preview` and `gemini-3-pro-image-preview` model IDs
8+
39
## 2.0.40
410

511
### Patch Changes

packages/google/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ai-sdk/google",
3-
"version": "2.0.40",
3+
"version": "2.0.41",
44
"license": "Apache-2.0",
55
"sideEffects": false,
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)