@ai-sdk/anthropic
Advanced tools
+7
-0
| # @ai-sdk/anthropic | ||
| ## 2.0.89 | ||
| ### Patch Changes | ||
| - 1b0e540: Use native structured output on supported Bedrock Anthropic models when thinking is enabled instead of forcing a JSON tool call. | ||
| - 5bb3ae4: Warn when an unknown model uses the default 4096 max output token limit. | ||
| ## 2.0.88 | ||
@@ -4,0 +11,0 @@ |
@@ -710,2 +710,11 @@ import { LanguageModelV2, JSONSchema7, SharedV2ProviderMetadata, LanguageModelV2CallWarning, LanguageModelV2CallOptions } from '@ai-sdk/provider'; | ||
| export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, prepareTools }; | ||
| /** | ||
| * Removes JSON Schema keywords that Anthropic rejects in | ||
| * `output_config.format.schema`. | ||
| * | ||
| * The full original schema is still used by AI SDK result validation. This | ||
| * only relaxes the schema sent to Anthropic's constrained decoder. | ||
| */ | ||
| declare function sanitizeJsonSchema(schema: JSONSchema7): JSONSchema7; | ||
| export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, prepareTools, sanitizeJsonSchema }; |
@@ -710,2 +710,11 @@ import { LanguageModelV2, JSONSchema7, SharedV2ProviderMetadata, LanguageModelV2CallWarning, LanguageModelV2CallOptions } from '@ai-sdk/provider'; | ||
| export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, prepareTools }; | ||
| /** | ||
| * Removes JSON Schema keywords that Anthropic rejects in | ||
| * `output_config.format.schema`. | ||
| * | ||
| * The full original schema is still used by AI SDK result validation. This | ||
| * only relaxes the schema sent to Anthropic's constrained decoder. | ||
| */ | ||
| declare function sanitizeJsonSchema(schema: JSONSchema7): JSONSchema7; | ||
| export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, prepareTools, sanitizeJsonSchema }; |
+1
-1
| { | ||
| "name": "@ai-sdk/anthropic", | ||
| "version": "2.0.88", | ||
| "version": "2.0.89", | ||
| "license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1982003
0.21%18301
0.19%