ai 6.0.0-beta.149 → 6.0.0-beta.150
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 +6 -0
- package/dist/index.d.mts +54 -4
- package/dist/index.d.ts +54 -4
- package/dist/index.js +26 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -9
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -866,7 +866,7 @@ import {
|
|
|
866
866
|
} from "@ai-sdk/provider-utils";
|
|
867
867
|
|
|
868
868
|
// src/version.ts
|
|
869
|
-
var VERSION = true ? "6.0.0-beta.
|
|
869
|
+
var VERSION = true ? "6.0.0-beta.150" : "0.0.0-test";
|
|
870
870
|
|
|
871
871
|
// src/util/download/download.ts
|
|
872
872
|
var download = async ({ url }) => {
|
|
@@ -2788,13 +2788,17 @@ var text = () => ({
|
|
|
2788
2788
|
}
|
|
2789
2789
|
});
|
|
2790
2790
|
var object = ({
|
|
2791
|
-
schema: inputSchema
|
|
2791
|
+
schema: inputSchema,
|
|
2792
|
+
name: name15,
|
|
2793
|
+
description
|
|
2792
2794
|
}) => {
|
|
2793
2795
|
const schema = asSchema2(inputSchema);
|
|
2794
2796
|
return {
|
|
2795
2797
|
responseFormat: resolve(schema.jsonSchema).then((jsonSchema2) => ({
|
|
2796
2798
|
type: "json",
|
|
2797
|
-
schema: jsonSchema2
|
|
2799
|
+
schema: jsonSchema2,
|
|
2800
|
+
...name15 != null && { name: name15 },
|
|
2801
|
+
...description != null && { description }
|
|
2798
2802
|
})),
|
|
2799
2803
|
async parseCompleteOutput({ text: text2 }, context) {
|
|
2800
2804
|
const parseResult = await safeParseJSON2({ text: text2 });
|
|
@@ -2843,7 +2847,9 @@ var object = ({
|
|
|
2843
2847
|
};
|
|
2844
2848
|
};
|
|
2845
2849
|
var array = ({
|
|
2846
|
-
element: inputElementSchema
|
|
2850
|
+
element: inputElementSchema,
|
|
2851
|
+
name: name15,
|
|
2852
|
+
description
|
|
2847
2853
|
}) => {
|
|
2848
2854
|
const elementSchema = asSchema2(inputElementSchema);
|
|
2849
2855
|
return {
|
|
@@ -2860,7 +2866,9 @@ var array = ({
|
|
|
2860
2866
|
},
|
|
2861
2867
|
required: ["elements"],
|
|
2862
2868
|
additionalProperties: false
|
|
2863
|
-
}
|
|
2869
|
+
},
|
|
2870
|
+
...name15 != null && { name: name15 },
|
|
2871
|
+
...description != null && { description }
|
|
2864
2872
|
};
|
|
2865
2873
|
}),
|
|
2866
2874
|
async parseCompleteOutput({ text: text2 }, context) {
|
|
@@ -2938,7 +2946,9 @@ var array = ({
|
|
|
2938
2946
|
};
|
|
2939
2947
|
};
|
|
2940
2948
|
var choice = ({
|
|
2941
|
-
options: choiceOptions
|
|
2949
|
+
options: choiceOptions,
|
|
2950
|
+
name: name15,
|
|
2951
|
+
description
|
|
2942
2952
|
}) => {
|
|
2943
2953
|
return {
|
|
2944
2954
|
// JSON schema that describes an enumeration:
|
|
@@ -2952,7 +2962,9 @@ var choice = ({
|
|
|
2952
2962
|
},
|
|
2953
2963
|
required: ["result"],
|
|
2954
2964
|
additionalProperties: false
|
|
2955
|
-
}
|
|
2965
|
+
},
|
|
2966
|
+
...name15 != null && { name: name15 },
|
|
2967
|
+
...description != null && { description }
|
|
2956
2968
|
}),
|
|
2957
2969
|
async parseCompleteOutput({ text: text2 }, context) {
|
|
2958
2970
|
const parseResult = await safeParseJSON2({ text: text2 });
|
|
@@ -3008,10 +3020,15 @@ var choice = ({
|
|
|
3008
3020
|
}
|
|
3009
3021
|
};
|
|
3010
3022
|
};
|
|
3011
|
-
var json = (
|
|
3023
|
+
var json = ({
|
|
3024
|
+
name: name15,
|
|
3025
|
+
description
|
|
3026
|
+
} = {}) => {
|
|
3012
3027
|
return {
|
|
3013
3028
|
responseFormat: Promise.resolve({
|
|
3014
|
-
type: "json"
|
|
3029
|
+
type: "json",
|
|
3030
|
+
...name15 != null && { name: name15 },
|
|
3031
|
+
...description != null && { description }
|
|
3015
3032
|
}),
|
|
3016
3033
|
async parseCompleteOutput({ text: text2 }, context) {
|
|
3017
3034
|
const parseResult = await safeParseJSON2({ text: text2 });
|