@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 +8 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
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.
|
|
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;
|