@ai-sdk/anthropic 2.0.111 → 2.0.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/index.js +348 -41
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +352 -42
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +12 -1
- package/dist/internal/index.d.ts +12 -1
- package/dist/internal/index.js +351 -42
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +353 -42
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -813,4 +813,15 @@ declare function prepareTools({ tools, toolChoice, disableParallelToolUse, cache
|
|
|
813
813
|
*/
|
|
814
814
|
declare function sanitizeJsonSchema(schema: JSONSchema7): JSONSchema7;
|
|
815
815
|
|
|
816
|
-
|
|
816
|
+
/**
|
|
817
|
+
* Whether Anthropic's native structured outputs (`output_config.format`) can
|
|
818
|
+
* represent a schema without rejecting it or losing data.
|
|
819
|
+
*
|
|
820
|
+
* Rejected: self-referencing schemas, and schemas with too many optional
|
|
821
|
+
* properties. Lossy: open objects (maps, free-form objects), which native
|
|
822
|
+
* structured outputs close with `additionalProperties: false`, so the model
|
|
823
|
+
* can only return `{}` for them.
|
|
824
|
+
*/
|
|
825
|
+
declare function supportsNativeStructuredOutputSchema(schema: JSONSchema7): boolean;
|
|
826
|
+
|
|
827
|
+
export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, getModelCapabilities, prepareTools, sanitizeJsonSchema, supportsNativeStructuredOutputSchema };
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -813,4 +813,15 @@ declare function prepareTools({ tools, toolChoice, disableParallelToolUse, cache
|
|
|
813
813
|
*/
|
|
814
814
|
declare function sanitizeJsonSchema(schema: JSONSchema7): JSONSchema7;
|
|
815
815
|
|
|
816
|
-
|
|
816
|
+
/**
|
|
817
|
+
* Whether Anthropic's native structured outputs (`output_config.format`) can
|
|
818
|
+
* represent a schema without rejecting it or losing data.
|
|
819
|
+
*
|
|
820
|
+
* Rejected: self-referencing schemas, and schemas with too many optional
|
|
821
|
+
* properties. Lossy: open objects (maps, free-form objects), which native
|
|
822
|
+
* structured outputs close with `additionalProperties: false`, so the model
|
|
823
|
+
* can only return `{}` for them.
|
|
824
|
+
*/
|
|
825
|
+
declare function supportsNativeStructuredOutputSchema(schema: JSONSchema7): boolean;
|
|
826
|
+
|
|
827
|
+
export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, getModelCapabilities, prepareTools, sanitizeJsonSchema, supportsNativeStructuredOutputSchema };
|