@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.
@@ -813,4 +813,15 @@ declare function prepareTools({ tools, toolChoice, disableParallelToolUse, cache
813
813
  */
814
814
  declare function sanitizeJsonSchema(schema: JSONSchema7): JSONSchema7;
815
815
 
816
- export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, getModelCapabilities, prepareTools, sanitizeJsonSchema };
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 };
@@ -813,4 +813,15 @@ declare function prepareTools({ tools, toolChoice, disableParallelToolUse, cache
813
813
  */
814
814
  declare function sanitizeJsonSchema(schema: JSONSchema7): JSONSchema7;
815
815
 
816
- export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, getModelCapabilities, prepareTools, sanitizeJsonSchema };
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 };