@mastra/deployer 0.20.2 → 0.21.0-alpha.1
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 +40 -0
- package/dist/build/analyze/bundleExternals.d.ts +4 -1
- package/dist/build/analyze/bundleExternals.d.ts.map +1 -1
- package/dist/build/analyze/constants.d.ts.map +1 -1
- package/dist/build/analyze.cjs +2 -2
- package/dist/build/analyze.d.ts +0 -1
- package/dist/build/analyze.d.ts.map +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/bundler.cjs +3 -3
- package/dist/build/bundler.d.ts.map +1 -1
- package/dist/build/bundler.js +1 -1
- package/dist/build/index.cjs +12 -12
- package/dist/build/index.js +4 -4
- package/dist/build/utils.d.ts +15 -0
- package/dist/build/utils.d.ts.map +1 -1
- package/dist/build/watcher.d.ts.map +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.d.ts +0 -1
- package/dist/bundler/index.d.ts.map +1 -1
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-QZSRLR5Y.cjs → chunk-2CUDKTKP.cjs} +123 -113
- package/dist/chunk-2CUDKTKP.cjs.map +1 -0
- package/dist/{chunk-B3MAF4HY.cjs → chunk-5SPPZCO3.cjs} +9 -16
- package/dist/chunk-5SPPZCO3.cjs.map +1 -0
- package/dist/{chunk-J6ARA5AG.js → chunk-64ACONK3.js} +3 -3
- package/dist/{chunk-J6ARA5AG.js.map → chunk-64ACONK3.js.map} +1 -1
- package/dist/{chunk-ZGEIJUOE.js → chunk-6A62K4JQ.js} +9 -38
- package/dist/chunk-6A62K4JQ.js.map +1 -0
- package/dist/{chunk-IJ5XDUJI.js → chunk-F7QNENXR.js} +4 -5
- package/dist/chunk-F7QNENXR.js.map +1 -0
- package/dist/{chunk-4JSGBXG4.cjs → chunk-LZS5FBY3.cjs} +14 -15
- package/dist/chunk-LZS5FBY3.cjs.map +1 -0
- package/dist/{chunk-75YMBRRS.cjs → chunk-QLJCHPRX.cjs} +19 -48
- package/dist/chunk-QLJCHPRX.cjs.map +1 -0
- package/dist/{chunk-XJH6DNVG.cjs → chunk-SFQW6M3F.cjs} +5 -5
- package/dist/{chunk-XJH6DNVG.cjs.map → chunk-SFQW6M3F.cjs.map} +1 -1
- package/dist/{chunk-36JTHYM2.js → chunk-TJ26OQXP.js} +124 -111
- package/dist/chunk-TJ26OQXP.js.map +1 -0
- package/dist/{chunk-LV3YJXBH.js → chunk-YTJ4ERJ6.js} +3 -10
- package/dist/chunk-YTJ4ERJ6.js.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.js +2 -2
- package/dist/server/handlers/a2a.d.ts +1 -1
- package/dist/server/handlers/routes/agents/handlers.d.ts +4 -4
- package/dist/server/handlers/routes/agents/router.d.ts.map +1 -1
- package/dist/server/handlers/routes/scores/handlers.d.ts +143 -113
- package/dist/server/handlers/routes/scores/handlers.d.ts.map +1 -1
- package/dist/server/index.cjs +49 -3
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +49 -3
- package/dist/server/index.js.map +1 -1
- package/package.json +7 -7
- package/dist/chunk-36JTHYM2.js.map +0 -1
- package/dist/chunk-4JSGBXG4.cjs.map +0 -1
- package/dist/chunk-75YMBRRS.cjs.map +0 -1
- package/dist/chunk-B3MAF4HY.cjs.map +0 -1
- package/dist/chunk-IJ5XDUJI.js.map +0 -1
- package/dist/chunk-LV3YJXBH.js.map +0 -1
- package/dist/chunk-QZSRLR5Y.cjs.map +0 -1
- package/dist/chunk-ZGEIJUOE.js.map +0 -1
|
@@ -6,30 +6,30 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
|
|
|
6
6
|
name: any;
|
|
7
7
|
description: string;
|
|
8
8
|
judge?: {
|
|
9
|
-
model: {
|
|
9
|
+
model: import("@mastra/core/llm/model").ModelRouterModelId | {
|
|
10
10
|
readonly specificationVersion: "v1";
|
|
11
11
|
readonly provider: string;
|
|
12
12
|
readonly modelId: string;
|
|
13
13
|
readonly defaultObjectGenerationMode: "tool" | "json" | undefined;
|
|
14
14
|
readonly supportsImageUrls?: boolean | undefined;
|
|
15
15
|
readonly supportsStructuredOutputs?: boolean | undefined;
|
|
16
|
-
supportsUrl?:
|
|
17
|
-
doGenerate:
|
|
18
|
-
doStream:
|
|
16
|
+
supportsUrl?: undefined;
|
|
17
|
+
doGenerate: never;
|
|
18
|
+
doStream: never;
|
|
19
19
|
} | {
|
|
20
20
|
readonly specificationVersion: "v2";
|
|
21
21
|
readonly provider: string;
|
|
22
22
|
readonly modelId: string;
|
|
23
23
|
supportedUrls: {
|
|
24
24
|
[x: string]: {
|
|
25
|
-
exec:
|
|
26
|
-
test:
|
|
25
|
+
exec: never;
|
|
26
|
+
test: never;
|
|
27
27
|
readonly source: string;
|
|
28
28
|
readonly global: boolean;
|
|
29
29
|
readonly ignoreCase: boolean;
|
|
30
30
|
readonly multiline: boolean;
|
|
31
31
|
lastIndex: number;
|
|
32
|
-
compile:
|
|
32
|
+
compile: never;
|
|
33
33
|
readonly flags: string;
|
|
34
34
|
readonly sticky: boolean;
|
|
35
35
|
readonly unicode: boolean;
|
|
@@ -37,10 +37,25 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
|
|
|
37
37
|
readonly hasIndices: boolean;
|
|
38
38
|
}[];
|
|
39
39
|
} | {
|
|
40
|
-
then:
|
|
40
|
+
then: never;
|
|
41
41
|
};
|
|
42
|
-
doGenerate:
|
|
43
|
-
doStream:
|
|
42
|
+
doGenerate: never;
|
|
43
|
+
doStream: never;
|
|
44
|
+
} | {
|
|
45
|
+
id: `${string}/${string}`;
|
|
46
|
+
url?: string | undefined;
|
|
47
|
+
apiKey?: string | undefined;
|
|
48
|
+
headers?: {
|
|
49
|
+
[x: string]: string;
|
|
50
|
+
} | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
providerId: string;
|
|
53
|
+
modelId: string;
|
|
54
|
+
url?: string | undefined;
|
|
55
|
+
apiKey?: string | undefined;
|
|
56
|
+
headers?: {
|
|
57
|
+
[x: string]: string;
|
|
58
|
+
} | undefined;
|
|
44
59
|
};
|
|
45
60
|
instructions: string;
|
|
46
61
|
} | undefined;
|
|
@@ -50,7 +65,7 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
|
|
|
50
65
|
readonly _output: any;
|
|
51
66
|
readonly _input: any;
|
|
52
67
|
readonly _def: {
|
|
53
|
-
errorMap?:
|
|
68
|
+
errorMap?: undefined;
|
|
54
69
|
description?: string | undefined | undefined;
|
|
55
70
|
};
|
|
56
71
|
readonly description: string | undefined;
|
|
@@ -62,34 +77,34 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
|
|
|
62
77
|
readonly output: any;
|
|
63
78
|
} | undefined;
|
|
64
79
|
};
|
|
65
|
-
_parse:
|
|
66
|
-
_getType:
|
|
67
|
-
_getOrReturnCtx:
|
|
68
|
-
_processInputParams:
|
|
69
|
-
_parseSync:
|
|
70
|
-
_parseAsync:
|
|
71
|
-
parse:
|
|
72
|
-
safeParse:
|
|
73
|
-
parseAsync:
|
|
74
|
-
safeParseAsync:
|
|
75
|
-
spa:
|
|
76
|
-
refine:
|
|
77
|
-
refinement:
|
|
78
|
-
_refinement:
|
|
79
|
-
superRefine:
|
|
80
|
-
or:
|
|
81
|
-
and:
|
|
82
|
-
transform:
|
|
83
|
-
brand:
|
|
84
|
-
describe:
|
|
85
|
-
pipe:
|
|
80
|
+
_parse: never;
|
|
81
|
+
_getType: never;
|
|
82
|
+
_getOrReturnCtx: never;
|
|
83
|
+
_processInputParams: never;
|
|
84
|
+
_parseSync: never;
|
|
85
|
+
_parseAsync: never;
|
|
86
|
+
parse: never;
|
|
87
|
+
safeParse: never;
|
|
88
|
+
parseAsync: never;
|
|
89
|
+
safeParseAsync: never;
|
|
90
|
+
spa: never;
|
|
91
|
+
refine: never;
|
|
92
|
+
refinement: never;
|
|
93
|
+
_refinement: never;
|
|
94
|
+
superRefine: never;
|
|
95
|
+
or: never;
|
|
96
|
+
and: never;
|
|
97
|
+
transform: never;
|
|
98
|
+
brand: never;
|
|
99
|
+
describe: never;
|
|
100
|
+
pipe: never;
|
|
86
101
|
};
|
|
87
102
|
output: {
|
|
88
103
|
readonly _type: any;
|
|
89
104
|
readonly _output: any;
|
|
90
105
|
readonly _input: any;
|
|
91
106
|
readonly _def: {
|
|
92
|
-
errorMap?:
|
|
107
|
+
errorMap?: undefined;
|
|
93
108
|
description?: string | undefined | undefined;
|
|
94
109
|
};
|
|
95
110
|
readonly description: string | undefined;
|
|
@@ -101,27 +116,27 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
|
|
|
101
116
|
readonly output: any;
|
|
102
117
|
} | undefined;
|
|
103
118
|
};
|
|
104
|
-
_parse:
|
|
105
|
-
_getType:
|
|
106
|
-
_getOrReturnCtx:
|
|
107
|
-
_processInputParams:
|
|
108
|
-
_parseSync:
|
|
109
|
-
_parseAsync:
|
|
110
|
-
parse:
|
|
111
|
-
safeParse:
|
|
112
|
-
parseAsync:
|
|
113
|
-
safeParseAsync:
|
|
114
|
-
spa:
|
|
115
|
-
refine:
|
|
116
|
-
refinement:
|
|
117
|
-
_refinement:
|
|
118
|
-
superRefine:
|
|
119
|
-
or:
|
|
120
|
-
and:
|
|
121
|
-
transform:
|
|
122
|
-
brand:
|
|
123
|
-
describe:
|
|
124
|
-
pipe:
|
|
119
|
+
_parse: never;
|
|
120
|
+
_getType: never;
|
|
121
|
+
_getOrReturnCtx: never;
|
|
122
|
+
_processInputParams: never;
|
|
123
|
+
_parseSync: never;
|
|
124
|
+
_parseAsync: never;
|
|
125
|
+
parse: never;
|
|
126
|
+
safeParse: never;
|
|
127
|
+
parseAsync: never;
|
|
128
|
+
safeParseAsync: never;
|
|
129
|
+
spa: never;
|
|
130
|
+
refine: never;
|
|
131
|
+
refinement: never;
|
|
132
|
+
_refinement: never;
|
|
133
|
+
superRefine: never;
|
|
134
|
+
or: never;
|
|
135
|
+
and: never;
|
|
136
|
+
transform: never;
|
|
137
|
+
brand: never;
|
|
138
|
+
describe: never;
|
|
139
|
+
pipe: never;
|
|
125
140
|
};
|
|
126
141
|
} | undefined;
|
|
127
142
|
};
|
|
@@ -131,7 +146,7 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
|
|
|
131
146
|
readonly _output: any;
|
|
132
147
|
readonly _input: any;
|
|
133
148
|
readonly _def: {
|
|
134
|
-
errorMap?:
|
|
149
|
+
errorMap?: undefined;
|
|
135
150
|
description?: string | undefined | undefined;
|
|
136
151
|
};
|
|
137
152
|
readonly description: string | undefined;
|
|
@@ -143,34 +158,34 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
|
|
|
143
158
|
readonly output: any;
|
|
144
159
|
} | undefined;
|
|
145
160
|
};
|
|
146
|
-
_parse:
|
|
147
|
-
_getType:
|
|
148
|
-
_getOrReturnCtx:
|
|
149
|
-
_processInputParams:
|
|
150
|
-
_parseSync:
|
|
151
|
-
_parseAsync:
|
|
152
|
-
parse:
|
|
153
|
-
safeParse:
|
|
154
|
-
parseAsync:
|
|
155
|
-
safeParseAsync:
|
|
156
|
-
spa:
|
|
157
|
-
refine:
|
|
158
|
-
refinement:
|
|
159
|
-
_refinement:
|
|
160
|
-
superRefine:
|
|
161
|
-
or:
|
|
162
|
-
and:
|
|
163
|
-
transform:
|
|
164
|
-
brand:
|
|
165
|
-
describe:
|
|
166
|
-
pipe:
|
|
161
|
+
_parse: never;
|
|
162
|
+
_getType: never;
|
|
163
|
+
_getOrReturnCtx: never;
|
|
164
|
+
_processInputParams: never;
|
|
165
|
+
_parseSync: never;
|
|
166
|
+
_parseAsync: never;
|
|
167
|
+
parse: never;
|
|
168
|
+
safeParse: never;
|
|
169
|
+
parseAsync: never;
|
|
170
|
+
safeParseAsync: never;
|
|
171
|
+
spa: never;
|
|
172
|
+
refine: never;
|
|
173
|
+
refinement: never;
|
|
174
|
+
_refinement: never;
|
|
175
|
+
superRefine: never;
|
|
176
|
+
or: never;
|
|
177
|
+
and: never;
|
|
178
|
+
transform: never;
|
|
179
|
+
brand: never;
|
|
180
|
+
describe: never;
|
|
181
|
+
pipe: never;
|
|
167
182
|
};
|
|
168
183
|
output: {
|
|
169
184
|
readonly _type: any;
|
|
170
185
|
readonly _output: any;
|
|
171
186
|
readonly _input: any;
|
|
172
187
|
readonly _def: {
|
|
173
|
-
errorMap?:
|
|
188
|
+
errorMap?: undefined;
|
|
174
189
|
description?: string | undefined | undefined;
|
|
175
190
|
};
|
|
176
191
|
readonly description: string | undefined;
|
|
@@ -182,56 +197,56 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
|
|
|
182
197
|
readonly output: any;
|
|
183
198
|
} | undefined;
|
|
184
199
|
};
|
|
185
|
-
_parse:
|
|
186
|
-
_getType:
|
|
187
|
-
_getOrReturnCtx:
|
|
188
|
-
_processInputParams:
|
|
189
|
-
_parseSync:
|
|
190
|
-
_parseAsync:
|
|
191
|
-
parse:
|
|
192
|
-
safeParse:
|
|
193
|
-
parseAsync:
|
|
194
|
-
safeParseAsync:
|
|
195
|
-
spa:
|
|
196
|
-
refine:
|
|
197
|
-
refinement:
|
|
198
|
-
_refinement:
|
|
199
|
-
superRefine:
|
|
200
|
-
or:
|
|
201
|
-
and:
|
|
202
|
-
transform:
|
|
203
|
-
brand:
|
|
204
|
-
describe:
|
|
205
|
-
pipe:
|
|
200
|
+
_parse: never;
|
|
201
|
+
_getType: never;
|
|
202
|
+
_getOrReturnCtx: never;
|
|
203
|
+
_processInputParams: never;
|
|
204
|
+
_parseSync: never;
|
|
205
|
+
_parseAsync: never;
|
|
206
|
+
parse: never;
|
|
207
|
+
safeParse: never;
|
|
208
|
+
parseAsync: never;
|
|
209
|
+
safeParseAsync: never;
|
|
210
|
+
spa: never;
|
|
211
|
+
refine: never;
|
|
212
|
+
refinement: never;
|
|
213
|
+
_refinement: never;
|
|
214
|
+
superRefine: never;
|
|
215
|
+
or: never;
|
|
216
|
+
and: never;
|
|
217
|
+
transform: never;
|
|
218
|
+
brand: never;
|
|
219
|
+
describe: never;
|
|
220
|
+
pipe: never;
|
|
206
221
|
};
|
|
207
222
|
} | undefined;
|
|
208
223
|
readonly name: any;
|
|
209
224
|
readonly description: string;
|
|
210
225
|
readonly judge: {
|
|
211
|
-
model: {
|
|
226
|
+
model: import("@mastra/core/llm/model").ModelRouterModelId | {
|
|
212
227
|
readonly specificationVersion: "v1";
|
|
213
228
|
readonly provider: string;
|
|
214
229
|
readonly modelId: string;
|
|
215
230
|
readonly defaultObjectGenerationMode: "tool" | "json" | undefined;
|
|
216
231
|
readonly supportsImageUrls?: boolean | undefined;
|
|
217
232
|
readonly supportsStructuredOutputs?: boolean | undefined;
|
|
218
|
-
supportsUrl?:
|
|
219
|
-
doGenerate:
|
|
220
|
-
doStream:
|
|
233
|
+
supportsUrl?: undefined;
|
|
234
|
+
doGenerate: never;
|
|
235
|
+
doStream: never;
|
|
221
236
|
} | {
|
|
222
237
|
readonly specificationVersion: "v2";
|
|
223
238
|
readonly provider: string;
|
|
224
239
|
readonly modelId: string;
|
|
225
240
|
supportedUrls: {
|
|
226
241
|
[x: string]: {
|
|
227
|
-
exec:
|
|
228
|
-
test:
|
|
242
|
+
exec: never;
|
|
243
|
+
test: never;
|
|
229
244
|
readonly source: string;
|
|
230
245
|
readonly global: boolean;
|
|
231
246
|
readonly ignoreCase: boolean;
|
|
232
247
|
readonly multiline: boolean;
|
|
233
248
|
lastIndex: number;
|
|
234
|
-
compile:
|
|
249
|
+
compile: never;
|
|
235
250
|
readonly flags: string;
|
|
236
251
|
readonly sticky: boolean;
|
|
237
252
|
readonly unicode: boolean;
|
|
@@ -239,18 +254,33 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
|
|
|
239
254
|
readonly hasIndices: boolean;
|
|
240
255
|
}[];
|
|
241
256
|
} | {
|
|
242
|
-
then:
|
|
257
|
+
then: never;
|
|
243
258
|
};
|
|
244
|
-
doGenerate:
|
|
245
|
-
doStream:
|
|
259
|
+
doGenerate: never;
|
|
260
|
+
doStream: never;
|
|
261
|
+
} | {
|
|
262
|
+
id: `${string}/${string}`;
|
|
263
|
+
url?: string | undefined;
|
|
264
|
+
apiKey?: string | undefined;
|
|
265
|
+
headers?: {
|
|
266
|
+
[x: string]: string;
|
|
267
|
+
} | undefined;
|
|
268
|
+
} | {
|
|
269
|
+
providerId: string;
|
|
270
|
+
modelId: string;
|
|
271
|
+
url?: string | undefined;
|
|
272
|
+
apiKey?: string | undefined;
|
|
273
|
+
headers?: {
|
|
274
|
+
[x: string]: string;
|
|
275
|
+
} | undefined;
|
|
246
276
|
};
|
|
247
277
|
instructions: string;
|
|
248
278
|
} | undefined;
|
|
249
|
-
preprocess:
|
|
250
|
-
analyze:
|
|
251
|
-
generateScore:
|
|
252
|
-
generateReason:
|
|
253
|
-
run:
|
|
279
|
+
preprocess: never;
|
|
280
|
+
analyze: never;
|
|
281
|
+
generateScore: never;
|
|
282
|
+
generateReason: never;
|
|
283
|
+
run: never;
|
|
254
284
|
};
|
|
255
285
|
sampling?: {
|
|
256
286
|
type: "none";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/scores/handlers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,wBAAsB,iBAAiB,CAAC,CAAC,EAAE,OAAO,qBAUjD;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/scores/handlers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,wBAAsB,iBAAiB,CAAC,CAAC,EAAE,OAAO,qBAUjD;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAYhD;AAED,wBAAsB,uBAAuB,CAAC,CAAC,EAAE,OAAO,qBAkBvD;AAED,wBAAsB,0BAA0B,CAAC,CAAC,EAAE,OAAO,qBAsB1D;AAED,wBAAsB,0BAA0B,CAAC,CAAC,EAAE,OAAO,qBAqB1D;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO,qBAchD"}
|
package/dist/server/index.cjs
CHANGED
|
@@ -854,7 +854,7 @@ var middleware = (options) => async (c2) => {
|
|
|
854
854
|
);
|
|
855
855
|
};
|
|
856
856
|
|
|
857
|
-
// ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.9.
|
|
857
|
+
// ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.9.10_openapi-types@12.1.3_zod@3.25.76/node_modules/hono-openapi/utils.js
|
|
858
858
|
var e = Symbol("openapi");
|
|
859
859
|
var n = ["GET", "PUT", "POST", "DELETE", "OPTIONS", "HEAD", "PATCH", "TRACE"];
|
|
860
860
|
var s2 = (e2) => e2.charAt(0).toUpperCase() + e2.slice(1);
|
|
@@ -3362,7 +3362,30 @@ function agentsRouter(bodyLimitOptions) {
|
|
|
3362
3362
|
deprecated: true
|
|
3363
3363
|
},
|
|
3364
3364
|
runId: { type: "string" },
|
|
3365
|
-
|
|
3365
|
+
structuredOutput: {
|
|
3366
|
+
type: "object",
|
|
3367
|
+
properties: {
|
|
3368
|
+
schema: { type: "object", description: "The schema to use for the structured output" },
|
|
3369
|
+
model: {
|
|
3370
|
+
type: "string",
|
|
3371
|
+
description: "Additional model to use for generating the structured output if provided"
|
|
3372
|
+
},
|
|
3373
|
+
instructions: {
|
|
3374
|
+
type: "string",
|
|
3375
|
+
description: "Custom instructions to provide to the structuring agent. This will override the default instructions."
|
|
3376
|
+
},
|
|
3377
|
+
errorStrategy: {
|
|
3378
|
+
type: "string",
|
|
3379
|
+
enum: ["strict", "warn", "fallback"],
|
|
3380
|
+
description: "The error strategy to use for the structured output"
|
|
3381
|
+
},
|
|
3382
|
+
fallbackValue: {
|
|
3383
|
+
type: "object",
|
|
3384
|
+
description: "The fallback value to use for the structured output when using 'fallback' error strategy"
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3387
|
+
},
|
|
3388
|
+
output: { type: "object", deprecated: true },
|
|
3366
3389
|
tracingOptions: {
|
|
3367
3390
|
type: "object",
|
|
3368
3391
|
description: "Tracing options for the agent execution",
|
|
@@ -3590,7 +3613,30 @@ function agentsRouter(bodyLimitOptions) {
|
|
|
3590
3613
|
deprecated: true
|
|
3591
3614
|
},
|
|
3592
3615
|
runId: { type: "string" },
|
|
3593
|
-
|
|
3616
|
+
structuredOutput: {
|
|
3617
|
+
type: "object",
|
|
3618
|
+
properties: {
|
|
3619
|
+
schema: { type: "object", description: "The schema to use for the structured output" },
|
|
3620
|
+
model: {
|
|
3621
|
+
type: "string",
|
|
3622
|
+
description: "Additional model to use for generating the structured output if provided"
|
|
3623
|
+
},
|
|
3624
|
+
instructions: {
|
|
3625
|
+
type: "string",
|
|
3626
|
+
description: "Custom instructions to provide to the structuring agent. This will override the default instructions."
|
|
3627
|
+
},
|
|
3628
|
+
errorStrategy: {
|
|
3629
|
+
type: "string",
|
|
3630
|
+
enum: ["strict", "warn", "fallback"],
|
|
3631
|
+
description: "The error strategy to use for the structured output"
|
|
3632
|
+
},
|
|
3633
|
+
fallbackValue: {
|
|
3634
|
+
type: "object",
|
|
3635
|
+
description: "The fallback value to use for the structured output when using 'fallback' error strategy"
|
|
3636
|
+
}
|
|
3637
|
+
}
|
|
3638
|
+
},
|
|
3639
|
+
output: { type: "object", deprecated: true },
|
|
3594
3640
|
tracingOptions: {
|
|
3595
3641
|
type: "object",
|
|
3596
3642
|
description: "Tracing options for the agent execution",
|