@ai-sdk/provider 0.0.15 → 0.0.16

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/dist/index.d.mts CHANGED
@@ -621,6 +621,7 @@ Specifies how the tool should be selected. Defaults to 'auto'.
621
621
  toolChoice?: LanguageModelV1ToolChoice;
622
622
  } | {
623
623
  type: 'object-json';
624
+ schema: JSONSchema7;
624
625
  } | {
625
626
  type: 'object-tool';
626
627
  tool: LanguageModelV1FunctionTool;
@@ -723,6 +724,15 @@ type LanguageModelV1 = {
723
724
  */
724
725
  readonly supportsImageUrls?: boolean;
725
726
  /**
727
+ Flag whether this model supports structured outputs,
728
+ i.e. follows JSON schemas for object generation
729
+ when the response format is set to 'json' or
730
+ when the `object-json` mode is used.
731
+
732
+ Defaults to `false`.
733
+ */
734
+ readonly supportsStructuredOutputs?: boolean;
735
+ /**
726
736
  Generates a language model output (non-streaming).
727
737
 
728
738
  Naming: "do" prefix to prevent accidental direct usage of the method
package/dist/index.d.ts CHANGED
@@ -621,6 +621,7 @@ Specifies how the tool should be selected. Defaults to 'auto'.
621
621
  toolChoice?: LanguageModelV1ToolChoice;
622
622
  } | {
623
623
  type: 'object-json';
624
+ schema: JSONSchema7;
624
625
  } | {
625
626
  type: 'object-tool';
626
627
  tool: LanguageModelV1FunctionTool;
@@ -723,6 +724,15 @@ type LanguageModelV1 = {
723
724
  */
724
725
  readonly supportsImageUrls?: boolean;
725
726
  /**
727
+ Flag whether this model supports structured outputs,
728
+ i.e. follows JSON schemas for object generation
729
+ when the response format is set to 'json' or
730
+ when the `object-json` mode is used.
731
+
732
+ Defaults to `false`.
733
+ */
734
+ readonly supportsStructuredOutputs?: boolean;
735
+ /**
726
736
  Generates a language model output (non-streaming).
727
737
 
728
738
  Naming: "do" prefix to prevent accidental direct usage of the method
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",