@ai-sdk/amazon-bedrock
Version:
The **[Amazon Bedrock provider](https://ai-sdk.dev/providers/ai-sdk-providers/amazon-bedrock)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the Amazon Bedrock [converse API](https://docs.aws.amazon.com/bedrock/latest/APIR
2,096 lines (1,327 loc) • 79.7 kB
Markdown
# @ai-sdk/amazon-bedrock
## 5.0.10
### Patch Changes
- 5c5c0f5: Add experimental streaming transcription support for transcription models, including OpenAI `gpt-realtime-whisper` and xAI WebSocket STT.
- Updated dependencies [5c5c0f5]
- @ai-sdk/provider@4.0.2
- @ai-sdk/provider-utils@5.0.5
- @ai-sdk/anthropic@4.0.7
- @ai-sdk/openai@4.0.7
## 5.0.9
### Patch Changes
- Updated dependencies [c6f5e62]
- Updated dependencies [679c52a]
- @ai-sdk/anthropic@4.0.6
- @ai-sdk/provider-utils@5.0.4
- @ai-sdk/openai@4.0.6
## 5.0.8
### Patch Changes
- 1daf48b: feat(amazon-bedrock): increase limit of embeddings in a request for cohere models
## 5.0.7
### Patch Changes
- Updated dependencies [8c616f0]
- @ai-sdk/provider-utils@5.0.3
- @ai-sdk/anthropic@4.0.5
- @ai-sdk/openai@4.0.5
## 5.0.6
### Patch Changes
- c18018c: feat (provider/anthropic): add `claude-sonnet-5` model id
- Updated dependencies [c18018c]
- @ai-sdk/anthropic@4.0.4
## 5.0.5
### Patch Changes
- 85a80fc: fix (amazon-bedrock): send the correct `bedrockRerankingConfiguration` request key for reranking
## 5.0.4
### Patch Changes
- Updated dependencies [0274f34]
- @ai-sdk/provider@4.0.1
- @ai-sdk/anthropic@4.0.3
- @ai-sdk/openai@4.0.4
- @ai-sdk/provider-utils@5.0.2
## 5.0.3
### Patch Changes
- Updated dependencies [dfffb27]
- Updated dependencies [1ead90c]
- @ai-sdk/anthropic@4.0.2
- @ai-sdk/openai@4.0.3
## 5.0.2
### Patch Changes
- Updated dependencies [6a436e3]
- @ai-sdk/provider-utils@5.0.1
- @ai-sdk/anthropic@4.0.1
- @ai-sdk/openai@4.0.2
## 5.0.1
### Patch Changes
- Updated dependencies [9507724]
- @ai-sdk/openai@4.0.1
## 5.0.0
### Major Changes
- ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
- c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
- 3887c70: feat(provider): add new top-level reasoning parameter to spec and support it in `generateText` and `streamText`
- 8359612: Start v7 pre-release
- 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
### Patch Changes
- cd27bca: added bedrock mantle provider
- d0dbd96: Fix `createAmazonBedrock()` capturing `globalThis.fetch` at initialization time, which caused telemetry instrumentation (e.g. OpenTelemetry, Datadog) and other `globalThis.fetch` patches applied after provider creation to be silently ignored.
- bc8ed78: Omit `strict` from tool specs for Claude Opus 4.7/4.8 on Bedrock, which reject the field on the Messages API
- e02f041: feat(provider/anthropic): add support for `claude-opus-4-8`
- 38fc777: Add AI Gateway hint to provider READMEs
- e748b35: chore: update v3 specs to v4
- b567a6c: dependency updates
- ed60b47: fix(provider/amazon-bedrock): fix Anthropic reasoning behavior related to Opus 4.7
- fae8d44: fix(provider/amazon-bedrock): merge custom reasoning config properties when top-level reasoning parameter is set
- b0c59e8: fix(amazon-bedrock): preserve reasoning text when signature is present
- 68c5081: fix(provider/amazon-bedrock): mark `input` optional on tool-use schema so streaming `contentBlockStart` events parse under Zod >= 4.4.0
- 32603d2: fix (provider/amazon-bedrock): correct mantle subpath exports
- 6732c16: fix(amazon-bedrock): do not use env var AWS_SESSION_TOKEN when keys are explicitly defined
- 1921625: fix(provider/amazon-bedrock): add tool search beta for Anthropic
- 24ac76f: fix(amazon-bedrock): preserve empty text blocks when reasoning content is present
- bcbaae6: fix(bedrock): skip passing unsigned reasoning content
- 9d5a299: fix(amazon-bedrock): support document files in tool results
- 6d8716c: feat(bedrock): add support for service tier for model inference
- 87d1723: chore(anthropic): remove unnecessary messages affix from Anthropic symbols and files
- 9f0e36c: trigger release for all packages after provenance setup
- 9eda693: fix(provider/amazon-bedrock): detect Cohere embedding models behind cross-region inference profile ids
- 4b20a5d: fix(provider/amazon-bedrock): transform bedrock/anthropic error responses to anthropic format
- b555b23: fix(amazon-bedrock): disable native structured output for claude-opus-4-7
- 58a2ad7: fix: more precise default message for tool execution denial
- cdc15f3: feat(bedrock): support native structured output for anthropic models without reasoning
- 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
- 0c4c275: trigger initial canary release
- 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
- 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
- 9c78e5d: fix (provider/amazon-bedrock): preserve cache points on message content parts
- 9fa4e9d: fix(provider/amazon-bedrock): extract Cohere embedding token usage from response header
- 5463d0d: feat(provider): align tool result output content file part types with top-level message file part types
- b8396f0: trigger initial beta release
- 6b4d325: feat(provider/anthropic): add support for `claude-fable-5` and the `fallbacks` API parameter
- f05a40d: fix(vertex): throw warning when strict: true for vertexAnthropic
- 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
- b3976a2: Add workflow serialization support to all provider models.
**`@ai-sdk/provider-utils`:** New `serializeModel()` helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.
**All providers:** `headers` is now optional in provider config types. This is non-breaking — existing code that passes `headers` continues to work. Custom provider implementations that construct model configs manually can now omit `headers`, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.
All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
- 0d8f107: feat(provider/anthropic): add support for Opus 4.7 and relevant API enhancements
- ff5eba1: feat: roll `image-*` tool output types into their equivalent `file-*` types
## 5.0.0-beta.89
### Patch Changes
- Updated dependencies [19c5ee2]
- @ai-sdk/anthropic@4.0.0-beta.69
## 5.0.0-beta.88
### Patch Changes
- Updated dependencies [0416e3e]
- @ai-sdk/provider@4.0.0-beta.20
- @ai-sdk/anthropic@4.0.0-beta.68
- @ai-sdk/openai@4.0.0-beta.77
- @ai-sdk/provider-utils@5.0.0-beta.50
## 5.0.0-beta.87
### Patch Changes
- bc8ed78: Omit `strict` from tool specs for Claude Opus 4.7/4.8 on Bedrock, which reject the field on the Messages API
- Updated dependencies [2c4767d]
- @ai-sdk/openai@4.0.0-beta.76
## 5.0.0-beta.86
### Patch Changes
- Updated dependencies [1772a63]
- @ai-sdk/openai@4.0.0-beta.75
## 5.0.0-beta.85
### Patch Changes
- b8396f0: trigger initial beta release
- Updated dependencies [b8396f0]
- @ai-sdk/anthropic@4.0.0-beta.67
- @ai-sdk/openai@4.0.0-beta.74
- @ai-sdk/provider-utils@5.0.0-beta.49
- @ai-sdk/provider@4.0.0-beta.19
## 5.0.0-canary.84
### Patch Changes
- Updated dependencies [aeda373]
- Updated dependencies [375fdd7]
- Updated dependencies [b4507d5]
- @ai-sdk/provider-utils@5.0.0-canary.48
- @ai-sdk/anthropic@4.0.0-canary.66
- @ai-sdk/openai@4.0.0-canary.73
## 5.0.0-canary.83
### Patch Changes
- Updated dependencies [bae5e2b]
- @ai-sdk/provider-utils@5.0.0-canary.47
- @ai-sdk/anthropic@4.0.0-canary.65
- @ai-sdk/openai@4.0.0-canary.72
## 5.0.0-canary.82
### Patch Changes
- 9eda693: fix(provider/amazon-bedrock): detect Cohere embedding models behind cross-region inference profile ids
## 5.0.0-canary.81
### Patch Changes
- 9fa4e9d: fix(provider/amazon-bedrock): extract Cohere embedding token usage from response header
## 5.0.0-canary.80
### Patch Changes
- Updated dependencies [ae7f932]
- @ai-sdk/openai@4.0.0-canary.71
## 5.0.0-canary.79
### Patch Changes
- 6b4d325: feat(provider/anthropic): add support for `claude-fable-5` and the `fallbacks` API parameter
- Updated dependencies [6a5800e]
- Updated dependencies [6b4d325]
- @ai-sdk/openai@4.0.0-canary.70
- @ai-sdk/anthropic@4.0.0-canary.64
## 5.0.0-canary.78
### Patch Changes
- Updated dependencies [ce769dd]
- @ai-sdk/provider@4.0.0-canary.18
- @ai-sdk/openai@4.0.0-canary.69
- @ai-sdk/anthropic@4.0.0-canary.63
- @ai-sdk/provider-utils@5.0.0-canary.46
## 5.0.0-canary.77
### Patch Changes
- Updated dependencies [94eba1b]
- @ai-sdk/openai@4.0.0-canary.68
## 5.0.0-canary.76
### Patch Changes
- Updated dependencies [ee798eb]
- Updated dependencies [61bcdb5]
- Updated dependencies [daf6637]
- @ai-sdk/provider-utils@5.0.0-canary.45
- @ai-sdk/anthropic@4.0.0-canary.62
- @ai-sdk/openai@4.0.0-canary.67
## 5.0.0-canary.75
### Patch Changes
- 32603d2: fix (provider/amazon-bedrock): correct mantle subpath exports
## 5.0.0-canary.74
### Patch Changes
- Updated dependencies [e776fc7]
- @ai-sdk/openai@4.0.0-canary.66
## 5.0.0-canary.73
### Patch Changes
- e02f041: feat(provider/anthropic): add support for `claude-opus-4-8`
- Updated dependencies [e02f041]
- @ai-sdk/anthropic@4.0.0-canary.61
## 5.0.0-canary.72
### Patch Changes
- Updated dependencies [cd3de8b]
- @ai-sdk/openai@4.0.0-canary.65
## 5.0.0-canary.71
### Patch Changes
- 9d5a299: fix(amazon-bedrock): support document files in tool results
## 5.0.0-canary.70
### Patch Changes
- Updated dependencies [6c93e36]
- Updated dependencies [f617ac2]
- @ai-sdk/provider-utils@5.0.0-canary.44
- @ai-sdk/anthropic@4.0.0-canary.60
- @ai-sdk/openai@4.0.0-canary.64
## 5.0.0-canary.69
### Patch Changes
- Updated dependencies [648705c]
- @ai-sdk/anthropic@4.0.0-canary.59
## 5.0.0-canary.68
### Patch Changes
- Updated dependencies [acdbf84]
- @ai-sdk/anthropic@4.0.0-canary.58
## 5.0.0-canary.67
### Patch Changes
- Updated dependencies [17b5597]
- @ai-sdk/openai@4.0.0-canary.63
## 5.0.0-canary.66
### Patch Changes
- Updated dependencies [bf837fe]
- @ai-sdk/openai@4.0.0-canary.62
## 5.0.0-canary.65
### Patch Changes
- 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
- Updated dependencies [7fc6bd6]
- @ai-sdk/anthropic@4.0.0-canary.57
- @ai-sdk/openai@4.0.0-canary.61
- @ai-sdk/provider-utils@5.0.0-canary.43
- @ai-sdk/provider@4.0.0-canary.17
## 5.0.0-canary.64
### Patch Changes
- b567a6c: dependency updates
- Updated dependencies [a6617c5]
- @ai-sdk/provider-utils@5.0.0-canary.42
- @ai-sdk/anthropic@4.0.0-canary.56
- @ai-sdk/openai@4.0.0-canary.60
## 5.0.0-canary.63
### Patch Changes
- cd27bca: added bedrock mantle provider
- b555b23: fix(amazon-bedrock): disable native structured output for claude-opus-4-7
## 5.0.0-canary.62
### Patch Changes
- Updated dependencies [a464505]
- Updated dependencies [28dfa06]
- Updated dependencies [e93fa91]
- @ai-sdk/anthropic@4.0.0-canary.55
- @ai-sdk/provider-utils@5.0.0-canary.41
## 5.0.0-canary.61
### Patch Changes
- Updated dependencies [a7de9c9]
- @ai-sdk/provider-utils@5.0.0-canary.40
- @ai-sdk/anthropic@4.0.0-canary.54
## 5.0.0-canary.60
### Patch Changes
- Updated dependencies [105f95b]
- @ai-sdk/provider-utils@5.0.0-canary.39
- @ai-sdk/anthropic@4.0.0-canary.53
## 5.0.0-canary.59
### Patch Changes
- Updated dependencies [8018480]
- @ai-sdk/anthropic@4.0.0-canary.52
## 5.0.0-canary.58
### Patch Changes
- bcbaae6: fix(bedrock): skip passing unsigned reasoning content
## 5.0.0-canary.57
### Patch Changes
- Updated dependencies [ca446f8]
- @ai-sdk/provider-utils@5.0.0-canary.38
- @ai-sdk/anthropic@4.0.0-canary.51
## 5.0.0-canary.56
### Patch Changes
- Updated dependencies [d848405]
- @ai-sdk/provider-utils@5.0.0-canary.37
- @ai-sdk/anthropic@4.0.0-canary.50
## 5.0.0-canary.55
### Patch Changes
- Updated dependencies [ca39020]
- @ai-sdk/provider-utils@5.0.0-canary.36
- @ai-sdk/anthropic@4.0.0-canary.49
## 5.0.0-canary.54
### Patch Changes
- 9c78e5d: fix (provider/amazon-bedrock): preserve cache points on message content parts
## 5.0.0-canary.53
### Patch Changes
- Updated dependencies [f634bac]
- @ai-sdk/provider-utils@5.0.0-canary.35
- @ai-sdk/anthropic@4.0.0-canary.48
## 5.0.0-canary.52
### Patch Changes
- Updated dependencies [2610e84]
- Updated dependencies [69254e0]
- Updated dependencies [3015fc3]
- @ai-sdk/anthropic@4.0.0-canary.47
- @ai-sdk/provider-utils@5.0.0-canary.34
## 5.0.0-canary.51
### Patch Changes
- Updated dependencies [e5c4f40]
- @ai-sdk/anthropic@4.0.0-canary.46
## 5.0.0-canary.50
### Patch Changes
- 68c5081: fix(provider/amazon-bedrock): mark `input` optional on tool-use schema so streaming `contentBlockStart` events parse under Zod >= 4.4.0
- Updated dependencies [2427d88]
- @ai-sdk/provider-utils@5.0.0-canary.33
- @ai-sdk/anthropic@4.0.0-canary.45
## 5.0.0-canary.49
### Patch Changes
- 5463d0d: feat(provider): align tool result output content file part types with top-level message file part types
- Updated dependencies [5463d0d]
- @ai-sdk/provider-utils@5.0.0-canary.32
- @ai-sdk/provider@4.0.0-canary.16
- @ai-sdk/anthropic@4.0.0-canary.44
## 5.0.0-canary.48
### Patch Changes
- 0c4c275: trigger initial canary release
- Updated dependencies [0c4c275]
- @ai-sdk/provider-utils@5.0.0-canary.31
- @ai-sdk/anthropic@4.0.0-canary.43
- @ai-sdk/provider@4.0.0-canary.15
## 5.0.0-beta.47
### Patch Changes
- d0dbd96: Fix `createAmazonBedrock()` capturing `globalThis.fetch` at initialization time, which caused telemetry instrumentation (e.g. OpenTelemetry, Datadog) and other `globalThis.fetch` patches applied after provider creation to be silently ignored.
## 5.0.0-beta.46
### Major Changes
- 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
### Patch Changes
- Updated dependencies [08d2129]
- Updated dependencies [04e9009]
- @ai-sdk/provider-utils@5.0.0-beta.30
- @ai-sdk/anthropic@4.0.0-beta.42
## 5.0.0-beta.45
### Patch Changes
- 6732c16: fix(amazon-bedrock): do not use env var AWS_SESSION_TOKEN when keys are explicitly defined
- 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
- 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
- Updated dependencies [9bd6512]
- Updated dependencies [258c093]
- Updated dependencies [b6783da]
- @ai-sdk/provider-utils@5.0.0-beta.29
- @ai-sdk/anthropic@4.0.0-beta.41
- @ai-sdk/provider@4.0.0-beta.14
## 5.0.0-beta.44
### Patch Changes
- Updated dependencies [c012d57]
- @ai-sdk/anthropic@4.0.0-beta.40
## 5.0.0-beta.43
### Patch Changes
- 9f0e36c: trigger release for all packages after provenance setup
- Updated dependencies [9f0e36c]
- @ai-sdk/anthropic@4.0.0-beta.39
- @ai-sdk/provider@4.0.0-beta.13
- @ai-sdk/provider-utils@5.0.0-beta.28
## 5.0.0-beta.42
### Patch Changes
- fae8d44: fix(provider/amazon-bedrock): merge custom reasoning config properties when top-level reasoning parameter is set
- 87d1723: chore(anthropic): remove unnecessary messages affix from Anthropic symbols and files
- 58a2ad7: fix: more precise default message for tool execution denial
- Updated dependencies [785fe16]
- Updated dependencies [67df0a0]
- Updated dependencies [87d1723]
- Updated dependencies [befb78c]
- Updated dependencies [0458559]
- Updated dependencies [58a2ad7]
- Updated dependencies [5852c0a]
- Updated dependencies [fc92055]
- @ai-sdk/provider-utils@5.0.0-beta.27
- @ai-sdk/anthropic@4.0.0-beta.38
## 5.0.0-beta.41
### Patch Changes
- ed60b47: fix(provider/amazon-bedrock): fix Anthropic reasoning behavior related to Opus 4.7
- Updated dependencies [2e98477]
- @ai-sdk/provider-utils@5.0.0-beta.26
- @ai-sdk/anthropic@4.0.0-beta.37
## 5.0.0-beta.40
### Patch Changes
- Updated dependencies [eea8d98]
- @ai-sdk/provider-utils@5.0.0-beta.25
- @ai-sdk/anthropic@4.0.0-beta.36
## 5.0.0-beta.39
### Patch Changes
- Updated dependencies [f807e45]
- @ai-sdk/provider-utils@5.0.0-beta.24
- @ai-sdk/anthropic@4.0.0-beta.35
## 5.0.0-beta.38
### Patch Changes
- Updated dependencies [350ea38]
- @ai-sdk/provider-utils@5.0.0-beta.23
- @ai-sdk/anthropic@4.0.0-beta.34
## 5.0.0-beta.37
### Patch Changes
- Updated dependencies [832f86f]
- @ai-sdk/anthropic@4.0.0-beta.33
## 5.0.0-beta.36
### Patch Changes
- Updated dependencies [ad0b376]
- @ai-sdk/anthropic@4.0.0-beta.32
## 5.0.0-beta.35
### Patch Changes
- Updated dependencies [083947b]
- @ai-sdk/provider-utils@5.0.0-beta.22
- @ai-sdk/anthropic@4.0.0-beta.31
## 5.0.0-beta.34
### Patch Changes
- 0d8f107: feat(provider/anthropic): add support for Opus 4.7 and relevant API enhancements
- Updated dependencies [0d8f107]
- @ai-sdk/anthropic@4.0.0-beta.30
## 5.0.0-beta.33
### Patch Changes
- Updated dependencies [add1126]
- @ai-sdk/provider-utils@5.0.0-beta.21
- @ai-sdk/anthropic@4.0.0-beta.29
## 5.0.0-beta.32
### Patch Changes
- b3976a2: Add workflow serialization support to all provider models.
**`@ai-sdk/provider-utils`:** New `serializeModel()` helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.
**All providers:** `headers` is now optional in provider config types. This is non-breaking — existing code that passes `headers` continues to work. Custom provider implementations that construct model configs manually can now omit `headers`, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.
All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
- ff5eba1: feat: roll `image-*` tool output types into their equivalent `file-*` types
- Updated dependencies [b3976a2]
- Updated dependencies [ff5eba1]
- @ai-sdk/provider-utils@5.0.0-beta.20
- @ai-sdk/anthropic@4.0.0-beta.28
- @ai-sdk/provider@4.0.0-beta.12
## 5.0.0-beta.31
### Major Changes
- ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
### Patch Changes
- Updated dependencies [ef992f8]
- @ai-sdk/anthropic@4.0.0-beta.27
- @ai-sdk/provider@4.0.0-beta.11
- @ai-sdk/provider-utils@5.0.0-beta.19
## 5.0.0-beta.30
### Patch Changes
- 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
- Updated dependencies [90e2d8a]
- @ai-sdk/provider-utils@5.0.0-beta.18
- @ai-sdk/anthropic@4.0.0-beta.26
## 5.0.0-beta.29
### Patch Changes
- Updated dependencies [09bd27b]
- @ai-sdk/anthropic@4.0.0-beta.25
## 5.0.0-beta.28
### Patch Changes
- Updated dependencies [3ae1786]
- @ai-sdk/provider-utils@5.0.0-beta.17
- @ai-sdk/anthropic@4.0.0-beta.24
## 5.0.0-beta.27
### Patch Changes
- Updated dependencies [176466a]
- @ai-sdk/provider@4.0.0-beta.10
- @ai-sdk/anthropic@4.0.0-beta.23
- @ai-sdk/provider-utils@5.0.0-beta.16
## 5.0.0-beta.26
### Patch Changes
- Updated dependencies [e311194]
- @ai-sdk/provider@4.0.0-beta.9
- @ai-sdk/anthropic@4.0.0-beta.22
- @ai-sdk/provider-utils@5.0.0-beta.15
## 5.0.0-beta.25
### Patch Changes
- 24ac76f: fix(amazon-bedrock): preserve empty text blocks when reasoning content is present
- cdc15f3: feat(bedrock): support native structured output for anthropic models without reasoning
- Updated dependencies [34bd95d]
- Updated dependencies [008271d]
- @ai-sdk/anthropic@4.0.0-beta.21
- @ai-sdk/provider@4.0.0-beta.8
- @ai-sdk/provider-utils@5.0.0-beta.14
## 5.0.0-beta.24
### Patch Changes
- Updated dependencies [b0c2869]
- Updated dependencies [7e26e81]
- @ai-sdk/provider-utils@5.0.0-beta.13
- @ai-sdk/anthropic@4.0.0-beta.20
## 5.0.0-beta.23
### Patch Changes
- Updated dependencies [46d1149]
- @ai-sdk/provider-utils@5.0.0-beta.12
- @ai-sdk/anthropic@4.0.0-beta.19
## 5.0.0-beta.22
### Patch Changes
- Updated dependencies [6fd51c0]
- @ai-sdk/provider-utils@5.0.0-beta.11
- @ai-sdk/provider@4.0.0-beta.7
- @ai-sdk/anthropic@4.0.0-beta.18
## 5.0.0-beta.21
### Patch Changes
- c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
- Updated dependencies [c29a26f]
- @ai-sdk/provider-utils@5.0.0-beta.10
- @ai-sdk/anthropic@4.0.0-beta.17
- @ai-sdk/provider@4.0.0-beta.6
## 5.0.0-beta.20
### Patch Changes
- 38fc777: Add AI Gateway hint to provider READMEs
- Updated dependencies [38fc777]
- @ai-sdk/anthropic@4.0.0-beta.16
## 5.0.0-beta.19
### Patch Changes
- Updated dependencies [f57c702]
- @ai-sdk/anthropic@4.0.0-beta.15
## 5.0.0-beta.18
### Patch Changes
- Updated dependencies [2e17091]
- @ai-sdk/provider-utils@5.0.0-beta.9
- @ai-sdk/anthropic@4.0.0-beta.14
## 5.0.0-beta.17
### Patch Changes
- Updated dependencies [986c6fd]
- Updated dependencies [493295c]
- @ai-sdk/provider-utils@5.0.0-beta.8
- @ai-sdk/anthropic@4.0.0-beta.13
## 5.0.0-beta.16
### Patch Changes
- 6d8716c: feat(bedrock): add support for service tier for model inference
## 5.0.0-beta.15
### Patch Changes
- 4b20a5d: fix(provider/amazon-bedrock): transform bedrock/anthropic error responses to anthropic format
## 5.0.0-beta.14
### Patch Changes
- b0c59e8: fix(amazon-bedrock): preserve reasoning text when signature is present
## 5.0.0-beta.13
### Patch Changes
- 1921625: fix(provider/amazon-bedrock): add tool search beta for Anthropic
## 5.0.0-beta.12
### Patch Changes
- Updated dependencies [1f509d4]
- @ai-sdk/provider-utils@5.0.0-beta.7
- @ai-sdk/provider@4.0.0-beta.5
- @ai-sdk/anthropic@4.0.0-beta.12
## 5.0.0-beta.11
### Patch Changes
- Updated dependencies [0ee8aec]
- @ai-sdk/anthropic@4.0.0-beta.11
## 5.0.0-beta.10
### Patch Changes
- 3887c70: feat(provider): add new top-level reasoning parameter to spec and support it in `generateText` and `streamText`
- Updated dependencies [3887c70]
- @ai-sdk/provider-utils@5.0.0-beta.6
- @ai-sdk/anthropic@4.0.0-beta.10
- @ai-sdk/provider@4.0.0-beta.4
## 5.0.0-beta.9
### Patch Changes
- Updated dependencies [776b617]
- @ai-sdk/provider-utils@5.0.0-beta.5
- @ai-sdk/provider@4.0.0-beta.3
- @ai-sdk/anthropic@4.0.0-beta.9
## 5.0.0-beta.8
### Patch Changes
- Updated dependencies [61753c3]
- @ai-sdk/provider-utils@5.0.0-beta.4
- @ai-sdk/anthropic@4.0.0-beta.8
## 5.0.0-beta.7
### Patch Changes
- Updated dependencies [f7d4f01]
- @ai-sdk/provider-utils@5.0.0-beta.3
- @ai-sdk/provider@4.0.0-beta.2
- @ai-sdk/anthropic@4.0.0-beta.7
## 5.0.0-beta.6
### Patch Changes
- Updated dependencies [21d1ee3]
- @ai-sdk/anthropic@4.0.0-beta.6
## 5.0.0-beta.5
### Patch Changes
- Updated dependencies [5c2a5a2]
- @ai-sdk/provider@4.0.0-beta.1
- @ai-sdk/anthropic@4.0.0-beta.5
- @ai-sdk/provider-utils@5.0.0-beta.2
## 5.0.0-beta.4
### Patch Changes
- f05a40d: fix(vertex): throw warning when strict: true for vertexAnthropic
- Updated dependencies [f05a40d]
- @ai-sdk/anthropic@4.0.0-beta.4
## 5.0.0-beta.3
### Patch Changes
- e748b35: chore: update v3 specs to v4
- Updated dependencies [e748b35]
- @ai-sdk/anthropic@4.0.0-beta.3
## 5.0.0-beta.2
### Patch Changes
- Updated dependencies [1fe058b]
- @ai-sdk/anthropic@4.0.0-beta.2
## 5.0.0-beta.1
### Patch Changes
- Updated dependencies [531251e]
- @ai-sdk/provider-utils@5.0.0-beta.1
- @ai-sdk/anthropic@4.0.0-beta.1
## 5.0.0-beta.0
### Major Changes
- 8359612: Start v7 pre-release
### Patch Changes
- Updated dependencies [8359612]
- @ai-sdk/anthropic@4.0.0-beta.0
- @ai-sdk/provider@4.0.0-beta.0
- @ai-sdk/provider-utils@5.0.0-beta.0
## 4.0.77
### Patch Changes
- Updated dependencies [ad4cfc2]
- Updated dependencies [3fb4e70]
- @ai-sdk/provider-utils@4.0.19
- @ai-sdk/anthropic@3.0.58
## 4.0.76
### Patch Changes
- Updated dependencies [824b295]
- @ai-sdk/provider-utils@4.0.18
- @ai-sdk/anthropic@3.0.57
## 4.0.75
### Patch Changes
- e49c34d: feat(anthropic): expose anthropic.anthropicBeta to downstream providers
- e49c34d: feat(anthropic): expose anthropic.anthropicBeta to downstream provider
- Updated dependencies [e49c34d]
- Updated dependencies [e49c34d]
- @ai-sdk/anthropic@3.0.56
## 4.0.74
### Patch Changes
- Updated dependencies [7531e72]
- @ai-sdk/anthropic@3.0.55
## 4.0.73
### Patch Changes
- Updated dependencies [56c67d5]
- @ai-sdk/anthropic@3.0.54
## 4.0.72
### Patch Changes
- Updated dependencies [89caf28]
- @ai-sdk/anthropic@3.0.53
## 4.0.71
### Patch Changes
- 08336f1: fix(bedrock): strip file extensions from filename
- Updated dependencies [08336f1]
- @ai-sdk/provider-utils@4.0.17
- @ai-sdk/anthropic@3.0.52
## 4.0.70
### Patch Changes
- Updated dependencies [64a8fae]
- @ai-sdk/anthropic@3.0.51
## 4.0.69
### Patch Changes
- Updated dependencies [58bc42d]
- @ai-sdk/provider-utils@4.0.16
- @ai-sdk/anthropic@3.0.50
## 4.0.68
### Patch Changes
- d98d9ba: Migrated deprecated `output_format` parameter to `output_config.format` for structured outputs + Enabled native structured output support for Bedrock Anthropic models via `output_config.format`.
- Updated dependencies [d98d9ba]
- @ai-sdk/anthropic@3.0.49
## 4.0.67
### Patch Changes
- Updated dependencies [2164cdf]
- @ai-sdk/anthropic@3.0.48
## 4.0.66
### Patch Changes
- 91f8777: fix(bedrock/groq): pass strict mode for tools
## 4.0.65
### Patch Changes
- a1a8091: fix(bedrock): ensure tool choice option is enforced
## 4.0.64
### Patch Changes
- Updated dependencies [17978c6]
- @ai-sdk/anthropic@3.0.47
## 4.0.63
### Patch Changes
- dc34ced: fix(provider/amazon-bedrock): add missing latest Anthropic model IDs to `BedrockChatModelId`
## 4.0.62
### Patch Changes
- Updated dependencies [b094c07]
- @ai-sdk/anthropic@3.0.46
## 4.0.61
### Patch Changes
- 2a1c664: feat(provider/anthropic): add support for new Claude Sonnet 4.6 model
- Updated dependencies [2a1c664]
- @ai-sdk/anthropic@3.0.45
## 4.0.60
### Patch Changes
- Updated dependencies [23ac4a3]
- @ai-sdk/anthropic@3.0.44
## 4.0.59
### Patch Changes
- Updated dependencies [4024a3a]
- @ai-sdk/provider-utils@4.0.15
- @ai-sdk/anthropic@3.0.43
## 4.0.58
### Patch Changes
- 242696c: feat: normalize and export provider specific model options type names for existing schemas
## 4.0.57
### Patch Changes
- 61d25a9: fix(provider/amazon-bedrock): extract response metadata from api headers
- 08f54fc: feat(provider/amazon-bedrock): add performanceConfig, serviceTier, and cacheDetails to provider metadata
## 4.0.56
### Patch Changes
- 99fbed8: feat: normalize provider specific model options type names and ensure they are exported
- Updated dependencies [99fbed8]
- @ai-sdk/anthropic@3.0.42
## 4.0.55
### Patch Changes
- Updated dependencies [c60b393]
- @ai-sdk/anthropic@3.0.41
## 4.0.54
### Patch Changes
- Updated dependencies [8c2b1e1]
- @ai-sdk/anthropic@3.0.40
## 4.0.53
### Patch Changes
- aebbebd: Remove misleading warning when mixing Anthropic provider-defined tools and standard function tools on Bedrock. The warning incorrectly stated that only Anthropic tools would be used, but both tool types are sent to Bedrock and work correctly together.
## 4.0.52
### Patch Changes
- Updated dependencies [0a0d29c]
- @ai-sdk/anthropic@3.0.39
## 4.0.51
### Patch Changes
- Updated dependencies [7168375]
- @ai-sdk/provider@3.0.8
- @ai-sdk/anthropic@3.0.38
- @ai-sdk/provider-utils@4.0.14
## 4.0.50
### Patch Changes
- 632ab10: feat(amazon-bedrock): add support for new Anthropic adaptive thinking and reasoning effort including max
## 4.0.49
### Patch Changes
- Updated dependencies [e288302]
- @ai-sdk/anthropic@3.0.37
## 4.0.48
### Patch Changes
- Updated dependencies [1652320]
- @ai-sdk/anthropic@3.0.36
## 4.0.47
### Patch Changes
- 46bc2b3: fix(amazon-bedrock): proper decoding for base64 data
## 4.0.46
### Patch Changes
- Updated dependencies [53f6731]
- @ai-sdk/provider@3.0.7
- @ai-sdk/anthropic@3.0.35
- @ai-sdk/provider-utils@4.0.13
## 4.0.45
### Patch Changes
- Updated dependencies [96936e5]
- @ai-sdk/provider-utils@4.0.12
- @ai-sdk/anthropic@3.0.34
## 4.0.44
### Patch Changes
- b128d9b: add TTL support for prompt caching
## 4.0.43
### Patch Changes
- Updated dependencies [445cbe3]
- @ai-sdk/anthropic@3.0.33
## 4.0.42
### Patch Changes
- Updated dependencies [c33343b]
- @ai-sdk/anthropic@3.0.32
## 4.0.41
### Patch Changes
- 0df64d6: Add `outputDimension` option for Cohere embedding models to control the size of the output embedding vector (256, 512, 1024, or 1536).
## 4.0.40
### Patch Changes
- Updated dependencies [2810850]
- @ai-sdk/provider-utils@4.0.11
- @ai-sdk/provider@3.0.6
- @ai-sdk/anthropic@3.0.31
## 4.0.39
### Patch Changes
- 1524271: chore: add skill information to README files
- Updated dependencies [1524271]
- @ai-sdk/anthropic@3.0.30
## 4.0.38
### Patch Changes
- 3988c08: docs: fix incorrect and outdated provider docs
## 4.0.37
### Patch Changes
- Updated dependencies [b9d105f]
- @ai-sdk/anthropic@3.0.29
## 4.0.36
### Patch Changes
- Updated dependencies [2445da4]
- @ai-sdk/anthropic@3.0.28
## 4.0.35
### Patch Changes
- Updated dependencies [572ea12]
- @ai-sdk/anthropic@3.0.27
## 4.0.34
### Patch Changes
- Updated dependencies [2c70b90]
- @ai-sdk/anthropic@3.0.26
## 4.0.33
### Patch Changes
- Updated dependencies [0bb9bcd]
- @ai-sdk/anthropic@3.0.25
## 4.0.32
### Patch Changes
- Updated dependencies [462ad00]
- @ai-sdk/provider-utils@4.0.10
- @ai-sdk/anthropic@3.0.24
## 4.0.31
### Patch Changes
- 151c4aa: Add support for Amazon Nova embedding models by sending the required `taskType` and `singleEmbeddingParams` payload and parsing Nova-style responses.
## 4.0.30
### Patch Changes
- 6ece44c: Fix Cohere embedding model request format on Bedrock by sending the required `input_type` and parsing Cohere-style responses.
## 4.0.29
### Patch Changes
- 4de5a1d: chore: excluded tests from src folder in npm package
- Updated dependencies [4de5a1d]
- @ai-sdk/anthropic@3.0.23
- @ai-sdk/provider@3.0.5
- @ai-sdk/provider-utils@4.0.9
## 4.0.28
### Patch Changes
- Updated dependencies [8ccf04b]
- @ai-sdk/anthropic@3.0.22
## 4.0.27
### Patch Changes
- Updated dependencies [662d359]
- @ai-sdk/anthropic@3.0.21
## 4.0.26
### Patch Changes
- 2b8369d: chore: add docs to package dist
- Updated dependencies [2b8369d]
- @ai-sdk/anthropic@3.0.20
## 4.0.25
### Patch Changes
- 8dc54db: chore: add src folders to package bundle
- Updated dependencies [8dc54db]
- @ai-sdk/anthropic@3.0.19
## 4.0.24
### Patch Changes
- d5466df: fix(amazon-bedrock): normalize tool call IDs for Mistral models
Mistral models on Bedrock require tool call IDs to match exactly 9 alphanumeric characters. This fix normalizes Bedrock-generated tool call IDs when using Mistral models to prevent validation errors during multi-turn tool calling.
## 4.0.23
### Patch Changes
- Updated dependencies [c10bd49]
- @ai-sdk/anthropic@3.0.18
## 4.0.22
### Patch Changes
- 3318e0d: feat(provider/amazon-bedrock): add anthropic sub-provider using native invokemodel api
## 4.0.21
### Patch Changes
- Updated dependencies [4729bed]
- @ai-sdk/anthropic@3.0.17
## 4.0.20
### Patch Changes
- Updated dependencies [d36fa72]
- @ai-sdk/anthropic@3.0.16
## 4.0.19
### Patch Changes
- Updated dependencies [5c090e7]
- @ai-sdk/provider@3.0.4
- @ai-sdk/anthropic@3.0.15
- @ai-sdk/provider-utils@4.0.8
## 4.0.18
### Patch Changes
- Updated dependencies [46f46e4]
- @ai-sdk/provider-utils@4.0.7
- @ai-sdk/anthropic@3.0.14
## 4.0.17
### Patch Changes
- Updated dependencies [1b11dcb]
- @ai-sdk/provider-utils@4.0.6
- @ai-sdk/provider@3.0.3
- @ai-sdk/anthropic@3.0.13
## 4.0.16
### Patch Changes
- Updated dependencies [34d1c8a]
- @ai-sdk/provider-utils@4.0.5
- @ai-sdk/anthropic@3.0.12
## 4.0.15
### Patch Changes
- Updated dependencies [8c1c6e3]
- @ai-sdk/anthropic@3.0.11
## 4.0.14
### Patch Changes
- Updated dependencies [02d9b68]
- @ai-sdk/anthropic@3.0.10
## 4.0.13
### Patch Changes
- e89fc99: Correct input token calculation logic
## 4.0.12
### Patch Changes
- eff1cb6: fix(bedrock): map reasoningConfig to reasoning_effort for openai models
## 4.0.11
### Patch Changes
- Updated dependencies [de2399b]
- @ai-sdk/anthropic@3.0.9
## 4.0.10
### Patch Changes
- Updated dependencies [bee4f82]
- @ai-sdk/anthropic@3.0.8
## 4.0.9
### Patch Changes
- Updated dependencies [d937c8f]
- @ai-sdk/provider@3.0.2
- @ai-sdk/anthropic@3.0.7
- @ai-sdk/provider-utils@4.0.4
## 4.0.8
### Patch Changes
- Updated dependencies [2231e84]
- @ai-sdk/anthropic@3.0.6
## 4.0.7
### Patch Changes
- Updated dependencies [0b429d4]
- @ai-sdk/provider-utils@4.0.3
- @ai-sdk/anthropic@3.0.5
## 4.0.6
### Patch Changes
- Updated dependencies [bf39dac]
- @ai-sdk/anthropic@3.0.4
## 4.0.5
### Patch Changes
- Updated dependencies [77b760d]
- @ai-sdk/anthropic@3.0.3
## 4.0.4
### Patch Changes
- 863d34f: fix: trigger release to update `@latest`
- Updated dependencies [863d34f]
- @ai-sdk/anthropic@3.0.2
- @ai-sdk/provider@3.0.1
- @ai-sdk/provider-utils@4.0.2
## 4.0.3
### Patch Changes
- afe9730: Fix bedrock ConverseStream using /delta/stop_sequence
## 4.0.2
### Patch Changes
- Updated dependencies [29264a3]
- @ai-sdk/provider-utils@4.0.1
- @ai-sdk/anthropic@3.0.1
## 4.0.1
### Patch Changes
- 9260982: handle `stop_sequence: null`
## 4.0.0
### Major Changes
- dee8b05: ai SDK 6 beta
### Minor Changes
- 78928cb: release: start 5.1 beta
### Patch Changes
- 0c3b58b: fix(provider): add specificationVersion to ProviderV3
- ef9d7d6: fix(bedrock): send {} as tool input when streaming tool calls without arguments
- 9ab6ebe: feat(provider/amazon-bedrock): expose stop_sequence in provider metadata
The Bedrock provider now exposes the specific stop sequence that triggered generation to halt via `providerMetadata.bedrock.stopSequence`. This is implemented by:
- Requesting `/stop_sequence` via `additionalModelResponseFieldPaths` in the API call
- Parsing the value from `additionalModelResponseFields.stop_sequence` in both generate and stream responses
- Exposing it as `stopSequence` in the provider metadata (returns `null` when no stop sequence was matched)
- 0adc679: feat(provider): shared spec v3
- 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
Before
```ts
model.textEmbeddingModel("my-model-id");
```
After
```ts
model.embeddingModel("my-model-id");
```
- 2625a04: feat(openai); update spec for mcp approval
- cc24427: Fix reasoning with Bedrock when additionalModelRequestFields is used
- 95f65c2: chore: use import \* from zod/v4
- 58920e0: refactor: consolidate header normalization across packages, remove duplicates, preserve custom headers
- 2a2e17d: fix (provider/amazon-bedrock): deal gracefully with empty tool descriptions
- 9524761: feat: shorthand names for reranking models
- 544d4e8: chore(specification): rename v3 provider defined tool to provider tool
- 0c4822d: feat: `EmbeddingModelV3`
- 33343c3: fix(amazon-bedrock): clamp temperature to valid 0-1 range with warnings
- 11eefa4: Support user provided filenames in amazon-bedrock-provider
- e8109d3: feat: tool execution approval
- ed329cb: feat: `Provider-V3`
- 3bd2689: feat: extended token usage
- d1bdadb: Added support for reranking models
- 1cad0ab: feat: add provider version to user-agent header
- d711ff8: chore: add model ID for Haiku 4.5
- 8dac895: feat: `LanguageModelV3`
- 457318b: chore(provider,ai): switch to SharedV3Warning and unified warnings
- 9061dc0: feat: image editing
- 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
- c5e2a7c: Support citations in amazon-bedrock-provider
- 4616b86: chore: update zod peer depenedency version
- d4b2964: fix(provider/amazon-bedrock): normalise headers and body if input is of instance Request
- 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 `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.
- 3aeb791: Add Claude Sonnet 4.5 (claude-sonnet-4-5-20250929-v1:0) model support
- 522f6b8: feat: `ImageModelV3`
- 0a6fd91: fix(amazon-bedrock): move anthropic_beta to request body
- 3794514: feat: flexible tool output content support
- cbf52cd: feat: expose raw finish reason
- f65d7df: feat(provider/bedrock): Support Nova 2 extended reasoning `maxReasoningEffort` field
- 10c1322: fix: moved dependency `@ai-sdk/test-server` to devDependencies
- 9ab6ebe: Add stop sequence support for amazon bedrock provider
- 1bd7d32: feat: tool-specific strict mode
- Updated dependencies
- @ai-sdk/anthropic@3.0.0
- @ai-sdk/provider@3.0.0
- @ai-sdk/provider-utils@4.0.0
## 4.0.0-beta.109
### Patch Changes
- Updated dependencies [2049c5b]
- @ai-sdk/anthropic@3.0.0-beta.98
## 4.0.0-beta.108
### Patch Changes
- Updated dependencies [475189e]
- @ai-sdk/provider@3.0.0-beta.32
- @ai-sdk/anthropic@3.0.0-beta.97
- @ai-sdk/provider-utils@4.0.0-beta.59
## 4.0.0-beta.107
### Patch Changes
- 2625a04: feat(openai); update spec for mcp approval
- Updated dependencies [2625a04]
- @ai-sdk/anthropic@3.0.0-beta.96
- @ai-sdk/provider@3.0.0-beta.31
- @ai-sdk/provider-utils@4.0.0-beta.58
## 4.0.0-beta.106
### Patch Changes
- cbf52cd: feat: expose raw finish reason
- Updated dependencies [cbf52cd]
- @ai-sdk/anthropic@3.0.0-beta.95
- @ai-sdk/provider@3.0.0-beta.30
- @ai-sdk/provider-utils@4.0.0-beta.57
## 4.0.0-beta.105
### Patch Changes
- Updated dependencies [9549c9e]
- @ai-sdk/provider@3.0.0-beta.29
- @ai-sdk/anthropic@3.0.0-beta.94
- @ai-sdk/provider-utils@4.0.0-beta.56
## 4.0.0-beta.104
### Patch Changes
- Updated dependencies [50b70d6]
- @ai-sdk/provider-utils@4.0.0-beta.55
- @ai-sdk/anthropic@3.0.0-beta.93
## 4.0.0-beta.103
### Patch Changes
- 9061dc0: feat: image editing
- Updated dependencies [9061dc0]
- @ai-sdk/provider-utils@4.0.0-beta.54
- @ai-sdk/provider@3.0.0-beta.28
- @ai-sdk/anthropic@3.0.0-beta.92
## 4.0.0-beta.102
### Patch Changes
- 9ab6ebe: feat(provider/amazon-bedrock): expose stop_sequence in provider metadata
The Bedrock provider now exposes the specific stop sequence that triggered generation to halt via `providerMetadata.bedrock.stopSequence`. This is implemented by:
- Requesting `/stop_sequence` via `additionalModelResponseFieldPaths` in the API call
- Parsing the value from `additionalModelResponseFields.stop_sequence` in both generate and stream responses
- Exposing it as `stopSequence` in the provider metadata (returns `null` when no stop sequence was matched)
- 9ab6ebe: Add stop sequence support for amazon bedrock provider
## 4.0.0-beta.101
### Patch Changes
- Updated dependencies [d129d89]
- @ai-sdk/anthropic@3.0.0-beta.91
## 4.0.0-beta.100
### Patch Changes
- 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
- Updated dependencies [366f50b]
- @ai-sdk/anthropic@3.0.0-beta.90
- @ai-sdk/provider@3.0.0-beta.27
- @ai-sdk/provider-utils@4.0.0-beta.53
## 4.0.0-beta.99
### Patch Changes
- Updated dependencies [763d04a]
- @ai-sdk/provider-utils@4.0.0-beta.52
- @ai-sdk/anthropic@3.0.0-beta.89
## 4.0.0-beta.98
### Patch Changes
- Updated dependencies [87db851]
- @ai-sdk/anthropic@3.0.0-beta.88
## 4.0.0-beta.97
### Patch Changes
- Updated dependencies [c1efac4]
- @ai-sdk/provider-utils@4.0.0-beta.51
- @ai-sdk/anthropic@3.0.0-beta.87
## 4.0.0-beta.96
### Patch Changes
- Updated dependencies [32223c8]
- @ai-sdk/provider-utils@4.0.0-beta.50
- @ai-sdk/anthropic@3.0.0-beta.86
## 4.0.0-beta.95
### Patch Changes
- Updated dependencies [83e5744]
- @ai-sdk/provider-utils@4.0.0-beta.49
- @ai-sdk/anthropic@3.0.0-beta.85
## 4.0.0-beta.94
### Patch Changes
- Updated dependencies [960ec8f]
- @ai-sdk/provider-utils@4.0.0-beta.48
- @ai-sdk/anthropic@3.0.0-beta.84
## 4.0.0-beta.93
### Patch Changes
- Updated dependencies [6c38080]
- @ai-sdk/anthropic@3.0.0-beta.83
## 4.0.0-beta.92
### Patch Changes
- Updated dependencies [e9e157f]
- @ai-sdk/provider-utils@4.0.0-beta.47
- @ai-sdk/anthropic@3.0.0-beta.82
## 4.0.0-beta.91
### Patch Changes
- Updated dependencies [81e29ab]
- @ai-sdk/provider-utils@4.0.0-beta.46
- @ai-sdk/anthropic@3.0.0-beta.81
## 4.0.0-beta.90
### Patch Changes
- Updated dependencies [05d5b9a]
- @ai-sdk/anthropic@3.0.0-beta.80
## 4.0.0-beta.89
### Patch Changes
- 3bd2689: feat: extended token usage
- Updated dependencies [3bd2689]
- @ai-sdk/anthropic@3.0.0-beta.79
- @ai-sdk/provider@3.0.0-beta.26
- @ai-sdk/provider-utils@4.0.0-beta.45
## 4.0.0-beta.88
### Patch Changes
- Updated dependencies [9e1e758]
- @ai-sdk/anthropic@3.0.0-beta.78
## 4.0.0-beta.87
### Patch Changes
- Updated dependencies [b2dbfbf]
- @ai-sdk/anthropic@3.0.0-beta.77
## 4.0.0-beta.86
### Patch Changes
- Updated dependencies [53f3368]
- @ai-sdk/provider@3.0.0-beta.25
- @ai-sdk/anthropic@3.0.0-beta.76
- @ai-sdk/provider-utils@4.0.0-beta.44
## 4.0.0-beta.85
### Patch Changes
- Updated dependencies [0ae783e]
- @ai-sdk/anthropic@3.0.0-beta.75
## 4.0.0-beta.84
### Patch Changes
- Updated dependencies [dce03c4]
- @ai-sdk/provider-utils@4.0.0-beta.43
- @ai-sdk/anthropic@3.0.0-beta.74
- @ai-sdk/provider@3.0.0-beta.24
## 4.0.0-beta.83
### Patch Changes
- Updated dependencies [3ed5519]
- @ai-sdk/provider-utils@4.0.0-beta.42
- @ai-sdk/anthropic@3.0.0-beta.73
## 4.0.0-beta.82
### Patch Changes
- ef9d7d6: fix(bedrock): send {} as tool input when streaming tool calls without arguments
## 4.0.0-beta.81
### Patch Changes
- Updated dependencies [a5f77a6]
- @ai-sdk/anthropic@3.0.0-beta.72
## 4.0.0-beta.80
### Patch Changes
- f65d7df: feat(provider/bedrock): Support Nova 2 extended reasoning `maxReasoningEffort` field
## 4.0.0-beta.79
### Patch Changes
- 1bd7d32: feat: tool-specific strict mode
- Updated dependencies [1bd7d32]
- @ai-sdk/provider-utils@4.0.0-beta.41
- @ai-sdk/anthropic@3.0.0-beta.71
- @ai-sdk/provider@3.0.0-beta.23
## 4.0.0-beta.78
### Patch Changes
- Updated dependencies [f13958c]
- @ai-sdk/anthropic@3.0.0-beta.70
## 4.0.0-beta.77
### Patch Changes
- Updated dependencies [589a4ee]
- @ai-sdk/anthropic@3.0.0-beta.69
## 4.0.0-beta.76
### Patch Changes
- Updated dependencies [9e35785]
- @ai-sdk/anthropic@3.0.0-beta.68
## 4.0.0-beta.75
### Patch Changes
- Updated dependencies [eb56fc6]
- @ai-sdk/anthropic@3.0.0-beta.67
## 4.0.0-beta.74
### Patch Changes
- 544d4e8: chore(specification): rename v3 provider defined tool to provider tool
- Updated dependencies [544d4e8]
- @ai-sdk/provider-utils@4.0.0-beta.40
- @ai-sdk/anthropic@3.0.0-beta.66
- @ai-sdk/provider@3.0.0-beta.22
## 4.0.0-beta.73
### Patch Changes
- Updated dependencies [954c356]
- @ai-sdk/provider-utils@4.0.0-beta.39
- @ai-sdk/anthropic@3.0.0-beta.65
- @ai-sdk/provider@3.0.0-beta.21
## 4.0.0-beta.72
### Patch Changes
- Updated dependencies
- @ai-sdk/provider-utils@4.0.0-beta.38
- @ai-sdk/anthropic@3.0.0-beta.64
## 4.0.0-beta.71
### Patch Changes
- 457318b: chore(provider,ai): switch to SharedV3Warning and unified warnings
- Updated dependencies [457318b]
- @ai-sdk/anthropic@3.0.0-beta.63
- @ai-sdk/provider@3.0.0-beta.20
- @ai-sdk/provider-utils@4.0.0-beta.37
## 4.0.0-beta.70
### Patch Changes
- 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
Before
```ts
model.textEmbeddingModel("my-model-id");
```
After
```ts
model.embeddingModel("my-model-id");
```
- Updated dependencies [8d9e8ad]
- @ai-sdk/anthropic@3.0.0-beta.62
- @ai-sdk/provider@3.0.0-beta.19
- @ai-sdk/provider-utils@4.0.0-beta.36
## 4.0.0-beta.69
### Patch Changes
- Updated dependencies [10d819b]
- @ai-sdk/provider@3.0.0-beta.18
- @ai-sdk/anthropic@3.0.0-beta.61
- @ai-sdk/provider-utils@4.0.0-beta.35
## 4.0.0-beta.68
### Patch Changes
- Updated dependencies [6fc35cb]
- @ai-sdk/anthropic@3.0.0-beta.60
## 4.0.0-beta.67
### Patch Changes
- Updated dependencies [2109385]
- @ai-sdk/anthropic@3.0.0-beta.59
## 4.0.0-beta.66
### Patch Changes
- Updated dependencies [83aaad8]
- @ai-sdk/anthropic@3.0.0-beta.58
## 4.0.0-beta.65
### Patch Changes
- Updated dependencies [b8ea36e]
- @ai-sdk/anthropic@3.0.0-beta.57
## 4.0.0-beta.64
### Patch Changes
- Updated dependencies [983e394]
- @ai-sdk/anthropic@3.0.0-beta.56
## 4.0.0-beta.63
### Patch Changes
- Updated dependencies [db913bd]
- @ai-sdk/provider@3.0.0-beta.17
- @ai-sdk/anthropic@3.0.0-beta.55
- @ai-sdk/provider-utils@4.0.0-beta.34
## 4.0.0-beta.62
### 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 `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.
## 4.0.0-beta.61
### Patch Changes
- 0a6fd91: fix(amazon-bedrock): move anthropic_beta to request body
## 4.0.0-beta.60
### Patch Changes
- 33343c3: fix(amazon-bedrock): clamp temperature to valid 0-1 range with warnings
- Updated dependencies [1d15673]
- @ai-sdk/anthropic@3.0.0-beta.54
## 4.0.0-beta.59
### Patch Changes
- 2a2e17d: fix (provider/amazon-bedrock): deal gracefully with empty tool descriptions
## 4.0.0-beta.58
### Patch Changes
- Updated dependencies [b681d7d]
- @ai-sdk/provider@3.0.0-beta.16
- @ai-sdk/anthropic@3.0.0-beta.53
- @ai-sdk/provider-utils@4.0.0-beta.33
## 4.0.0-beta.57
### Patch Changes
- Updated dependencies [32d8dbb]
- @ai-sdk/provider-utils@4.0.0-beta.32
- @ai-sdk/anthropic@3.0.0-beta.52
## 4.0.0-beta.56
### Patch Changes
- Updated dependencies [1742445]
- @ai-sdk/anthropic@3.0.0-beta.51
## 4.0.0-beta.55
### Patch Changes
- Updated dependencies [bb36798]
- @ai-sdk/provider@3.0.0-beta.15
- @ai-sdk/anthropic@3.0.0-beta.50
- @ai-sdk/provider-utils@4.0.0-beta.31
## 4.0.0-beta.54
### Patch Changes
- Updated dependencies [4f16c37]
- @ai-sdk/provider-utils@4.0.0-beta.30
- @ai-sdk/anthropic@3.0.0-beta.49
## 4.0.0-beta.53
### Patch Changes
- Updated dependencies [af3780b]
- @ai-sdk/provider@3.0.0-beta.14
- @ai-sdk/anthropic@3.0.0-beta.48
- @ai-sdk/provider-utils@4.0.0-beta.29
## 4.0.0-beta.52
### Patch Changes
- Updated dependencies [016b111]
- @ai-sdk/provider-utils@4.0.0-beta.28
- @ai-sdk/anthropic@3.0.0-beta.47
## 4.0.0-beta.51
### Patch Changes
- Updated dependencies [37c58a0]
- @ai-sdk/provider@3.0.0-beta.13
- @ai-sdk/anthropic@3.0.0-beta.46
- @ai-sdk/provider-utils@4.0.0-beta.27
## 4.0.0-beta.50
### Patch Changes
- Updated dependencies [f4e4a95]
-