@ai-sdk/provider-utils 4.0.6 → 4.0.8
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 +13 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- 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/src/types/tool.test-d.ts +35 -0
- package/src/types/tool.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/provider-utils
|
|
2
2
|
|
|
3
|
+
## 4.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [5c090e7]
|
|
8
|
+
- @ai-sdk/provider@3.0.4
|
|
9
|
+
|
|
10
|
+
## 4.0.7
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 46f46e4: fix(provider-utils): improve tool type inference when using `inputExamples` with Zod schemas that use `.optional().default()` or `.refine()`.
|
|
15
|
+
|
|
3
16
|
## 4.0.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1040,7 +1040,7 @@ type Tool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONVa
|
|
|
1040
1040
|
* model what the input should look like.
|
|
1041
1041
|
*/
|
|
1042
1042
|
inputExamples?: Array<{
|
|
1043
|
-
input: INPUT
|
|
1043
|
+
input: NoInfer<INPUT>;
|
|
1044
1044
|
}>;
|
|
1045
1045
|
/**
|
|
1046
1046
|
* Whether the tool needs approval before it can be executed.
|
package/dist/index.d.ts
CHANGED
|
@@ -1040,7 +1040,7 @@ type Tool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONVa
|
|
|
1040
1040
|
* model what the input should look like.
|
|
1041
1041
|
*/
|
|
1042
1042
|
inputExamples?: Array<{
|
|
1043
|
-
input: INPUT
|
|
1043
|
+
input: NoInfer<INPUT>;
|
|
1044
1044
|
}>;
|
|
1045
1045
|
/**
|
|
1046
1046
|
* Whether the tool needs approval before it can be executed.
|
package/dist/index.js
CHANGED
|
@@ -475,7 +475,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
// src/version.ts
|
|
478
|
-
var VERSION = true ? "4.0.
|
|
478
|
+
var VERSION = true ? "4.0.8" : "0.0.0-test";
|
|
479
479
|
|
|
480
480
|
// src/get-from-api.ts
|
|
481
481
|
var getOriginalFetch = () => globalThis.fetch;
|