@ai-sdk/provider-utils 4.0.0-beta.40 → 4.0.0-beta.41

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 4.0.0-beta.41
4
+
5
+ ### Patch Changes
6
+
7
+ - 1bd7d32: feat: tool-specific strict mode
8
+ - Updated dependencies [1bd7d32]
9
+ - @ai-sdk/provider@3.0.0-beta.23
10
+
3
11
  ## 4.0.0-beta.40
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -953,6 +953,14 @@ type Tool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONVa
953
953
  Whether the tool needs approval before it can be executed.
954
954
  */
955
955
  needsApproval?: boolean | ToolNeedsApprovalFunction<[INPUT] extends [never] ? unknown : INPUT>;
956
+ /**
957
+ * Strict mode setting for the tool.
958
+ *
959
+ * Providers that support strict mode will use this setting to determine
960
+ * how the input should be generated. Strict mode will always produce
961
+ * valid inputs, but it might limit what input schemas are supported.
962
+ */
963
+ strict?: boolean;
956
964
  /**
957
965
  * Optional function that is called when the argument streaming starts.
958
966
  * Only called when the tool is used in a streaming context.
package/dist/index.d.ts CHANGED
@@ -953,6 +953,14 @@ type Tool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONVa
953
953
  Whether the tool needs approval before it can be executed.
954
954
  */
955
955
  needsApproval?: boolean | ToolNeedsApprovalFunction<[INPUT] extends [never] ? unknown : INPUT>;
956
+ /**
957
+ * Strict mode setting for the tool.
958
+ *
959
+ * Providers that support strict mode will use this setting to determine
960
+ * how the input should be generated. Strict mode will always produce
961
+ * valid inputs, but it might limit what input schemas are supported.
962
+ */
963
+ strict?: boolean;
956
964
  /**
957
965
  * Optional function that is called when the argument streaming starts.
958
966
  * Only called when the tool is used in a streaming context.
package/dist/index.js CHANGED
@@ -378,7 +378,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
378
378
  }
379
379
 
380
380
  // src/version.ts
381
- var VERSION = true ? "4.0.0-beta.40" : "0.0.0-test";
381
+ var VERSION = true ? "4.0.0-beta.41" : "0.0.0-test";
382
382
 
383
383
  // src/get-from-api.ts
384
384
  var getOriginalFetch = () => globalThis.fetch;