@ai-sdk/provider-utils 3.0.28 → 3.0.30
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 +12 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ai-sdk/provider-utils
|
|
2
2
|
|
|
3
|
+
## 3.0.30
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2fd6076: fix(ai): call `onInputStart` before `onInputAvailable` during non-streaming tool calls
|
|
8
|
+
|
|
9
|
+
## 3.0.29
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- c6e1d1a: Accept callable Standard Schema validators that do not provide JSON Schema conversion.
|
|
14
|
+
|
|
3
15
|
## 3.0.28
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -799,8 +799,8 @@ type Tool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONVa
|
|
|
799
799
|
*/
|
|
800
800
|
inputSchema: FlexibleSchema<INPUT>;
|
|
801
801
|
/**
|
|
802
|
-
* Optional function that is called when the
|
|
803
|
-
*
|
|
802
|
+
* Optional function that is called when the model starts generating the tool input.
|
|
803
|
+
* In non-streaming contexts, it is called immediately before `onInputAvailable`.
|
|
804
804
|
*/
|
|
805
805
|
onInputStart?: (options: ToolCallOptions) => void | PromiseLike<void>;
|
|
806
806
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -799,8 +799,8 @@ type Tool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONVa
|
|
|
799
799
|
*/
|
|
800
800
|
inputSchema: FlexibleSchema<INPUT>;
|
|
801
801
|
/**
|
|
802
|
-
* Optional function that is called when the
|
|
803
|
-
*
|
|
802
|
+
* Optional function that is called when the model starts generating the tool input.
|
|
803
|
+
* In non-streaming contexts, it is called immediately before `onInputAvailable`.
|
|
804
804
|
*/
|
|
805
805
|
onInputStart?: (options: ToolCallOptions) => void | PromiseLike<void>;
|
|
806
806
|
/**
|
package/dist/index.js
CHANGED
|
@@ -640,7 +640,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
// src/version.ts
|
|
643
|
-
var VERSION = true ? "3.0.
|
|
643
|
+
var VERSION = true ? "3.0.30" : "0.0.0-test";
|
|
644
644
|
|
|
645
645
|
// src/get-from-api.ts
|
|
646
646
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -949,7 +949,7 @@ function lazyValidator(createValidator) {
|
|
|
949
949
|
};
|
|
950
950
|
}
|
|
951
951
|
function asValidator(value) {
|
|
952
|
-
return isValidator(value) ? value :
|
|
952
|
+
return isValidator(value) ? value : "~standard" in value ? standardSchemaValidator(value) : value();
|
|
953
953
|
}
|
|
954
954
|
function standardSchemaValidator(standardSchema) {
|
|
955
955
|
return validator(async (value) => {
|