braintrust 3.26.0 → 3.28.0
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/dev/dist/index.d.mts +519 -186
- package/dev/dist/index.d.ts +519 -186
- package/dev/dist/index.js +3727 -1526
- package/dev/dist/index.mjs +2815 -614
- package/dist/apply-auto-instrumentation.js +372 -261
- package/dist/apply-auto-instrumentation.mjs +171 -60
- package/dist/auto-instrumentations/bundler/esbuild.cjs +458 -61
- package/dist/auto-instrumentations/bundler/esbuild.mjs +5 -4
- package/dist/auto-instrumentations/bundler/next.cjs +460 -63
- package/dist/auto-instrumentations/bundler/next.mjs +6 -5
- package/dist/auto-instrumentations/bundler/rollup.cjs +458 -61
- package/dist/auto-instrumentations/bundler/rollup.mjs +5 -4
- package/dist/auto-instrumentations/bundler/vite.cjs +487 -62
- package/dist/auto-instrumentations/bundler/vite.mjs +34 -5
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +444 -61
- package/dist/auto-instrumentations/bundler/webpack.cjs +458 -61
- package/dist/auto-instrumentations/bundler/webpack.mjs +6 -5
- package/dist/auto-instrumentations/{chunk-6E22MYSW.mjs → chunk-26PKVUKB.mjs} +109 -5
- package/dist/auto-instrumentations/{chunk-AKKPLXTP.mjs → chunk-2AMDGD65.mjs} +160 -57
- package/dist/auto-instrumentations/{chunk-V5LEODRX.mjs → chunk-HD35AM3M.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-XYN63IG5.mjs → chunk-I55G56ZL.mjs} +21 -58
- package/dist/auto-instrumentations/{chunk-NRE4QUQR.mjs → chunk-JPUFNW7X.mjs} +140 -0
- package/dist/auto-instrumentations/{chunk-XZHHE4Y3.mjs → chunk-NP7V4XB2.mjs} +157 -3
- package/dist/auto-instrumentations/hook.mjs +396 -32
- package/dist/auto-instrumentations/index.cjs +298 -2
- package/dist/auto-instrumentations/index.d.mts +5 -1
- package/dist/auto-instrumentations/index.d.ts +5 -1
- package/dist/auto-instrumentations/index.mjs +6 -2
- package/dist/auto-instrumentations/loader/cjs-patch.cjs +105 -57
- package/dist/auto-instrumentations/loader/cjs-patch.mjs +2 -2
- package/dist/auto-instrumentations/loader/esm-hook.mjs +1 -1
- package/dist/browser.d.mts +683 -56
- package/dist/browser.d.ts +683 -56
- package/dist/browser.js +4242 -655
- package/dist/browser.mjs +4242 -655
- package/dist/{chunk-VYNNEKSA.js → chunk-BBE7SNRV.js} +248 -10
- package/dist/{chunk-VRZZQPAA.js → chunk-OBBWQW6K.js} +3351 -1392
- package/dist/{chunk-XIZOM2HO.mjs → chunk-UPFNQCGB.mjs} +2419 -460
- package/dist/{chunk-PN7EWK66.mjs → chunk-ZHUHZWFY.mjs} +241 -3
- package/dist/cli.js +2867 -668
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +4242 -655
- package/dist/edge-light.mjs +4242 -655
- package/dist/index.d.mts +1267 -640
- package/dist/index.d.ts +1267 -640
- package/dist/index.js +2107 -630
- package/dist/index.mjs +1649 -172
- package/dist/instrumentation/index.d.mts +198 -6
- package/dist/instrumentation/index.d.ts +198 -6
- package/dist/instrumentation/index.js +2661 -581
- package/dist/instrumentation/index.mjs +2661 -581
- package/dist/vitest-evals-reporter.js +45 -43
- package/dist/vitest-evals-reporter.mjs +5 -3
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +4242 -655
- package/dist/workerd.mjs +4242 -655
- package/package.json +2 -3
- package/util/dist/index.d.mts +1545 -100
- package/util/dist/index.d.ts +1545 -100
package/util/dist/index.d.ts
CHANGED
|
@@ -33,16 +33,108 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
33
33
|
token: z.ZodString;
|
|
34
34
|
function_ids: z.ZodArray<z.ZodUnknown, "many">;
|
|
35
35
|
skip_logging: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
|
|
36
|
+
triggered_functions: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
37
|
+
triggered_xact_id: z.ZodString;
|
|
38
|
+
completed_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
39
|
+
idempotency_key: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
40
|
+
attempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
41
|
+
scope: z.ZodUnion<[z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"span">;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
type: "span";
|
|
45
|
+
}, {
|
|
46
|
+
type: "span";
|
|
47
|
+
}>, z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<"trace">;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
type: "trace";
|
|
51
|
+
}, {
|
|
52
|
+
type: "trace";
|
|
53
|
+
}>, z.ZodObject<{
|
|
54
|
+
type: z.ZodLiteral<"group">;
|
|
55
|
+
key: z.ZodString;
|
|
56
|
+
value: z.ZodString;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
value: string;
|
|
59
|
+
type: "group";
|
|
60
|
+
key: string;
|
|
61
|
+
}, {
|
|
62
|
+
value: string;
|
|
63
|
+
type: "group";
|
|
64
|
+
key: string;
|
|
65
|
+
}>]>;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
triggered_xact_id: string;
|
|
68
|
+
attempts: number;
|
|
69
|
+
scope: {
|
|
70
|
+
type: "span";
|
|
71
|
+
} | {
|
|
72
|
+
type: "trace";
|
|
73
|
+
} | {
|
|
74
|
+
value: string;
|
|
75
|
+
type: "group";
|
|
76
|
+
key: string;
|
|
77
|
+
};
|
|
78
|
+
completed_xact_id?: string | null | undefined;
|
|
79
|
+
idempotency_key?: string | null | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
triggered_xact_id: string;
|
|
82
|
+
scope: {
|
|
83
|
+
type: "span";
|
|
84
|
+
} | {
|
|
85
|
+
type: "trace";
|
|
86
|
+
} | {
|
|
87
|
+
value: string;
|
|
88
|
+
type: "group";
|
|
89
|
+
key: string;
|
|
90
|
+
};
|
|
91
|
+
completed_xact_id?: string | null | undefined;
|
|
92
|
+
idempotency_key?: string | null | undefined;
|
|
93
|
+
attempts?: number | undefined;
|
|
94
|
+
}>>, z.ZodNull]>>;
|
|
95
|
+
last_triggered_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
|
|
36
96
|
}, "strip", z.ZodTypeAny, {
|
|
37
97
|
status: "enabled";
|
|
38
98
|
token: string;
|
|
39
99
|
function_ids: unknown[];
|
|
40
100
|
skip_logging?: boolean | null | undefined;
|
|
101
|
+
triggered_functions?: Record<string, {
|
|
102
|
+
triggered_xact_id: string;
|
|
103
|
+
attempts: number;
|
|
104
|
+
scope: {
|
|
105
|
+
type: "span";
|
|
106
|
+
} | {
|
|
107
|
+
type: "trace";
|
|
108
|
+
} | {
|
|
109
|
+
value: string;
|
|
110
|
+
type: "group";
|
|
111
|
+
key: string;
|
|
112
|
+
};
|
|
113
|
+
completed_xact_id?: string | null | undefined;
|
|
114
|
+
idempotency_key?: string | null | undefined;
|
|
115
|
+
}> | null | undefined;
|
|
116
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
41
117
|
}, {
|
|
42
118
|
status: "enabled";
|
|
43
119
|
token: string;
|
|
44
120
|
function_ids: unknown[];
|
|
45
121
|
skip_logging?: boolean | null | undefined;
|
|
122
|
+
triggered_functions?: Record<string, {
|
|
123
|
+
triggered_xact_id: string;
|
|
124
|
+
scope: {
|
|
125
|
+
type: "span";
|
|
126
|
+
} | {
|
|
127
|
+
type: "trace";
|
|
128
|
+
} | {
|
|
129
|
+
value: string;
|
|
130
|
+
type: "group";
|
|
131
|
+
key: string;
|
|
132
|
+
};
|
|
133
|
+
completed_xact_id?: string | null | undefined;
|
|
134
|
+
idempotency_key?: string | null | undefined;
|
|
135
|
+
attempts?: number | undefined;
|
|
136
|
+
}> | null | undefined;
|
|
137
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
46
138
|
}>, z.ZodObject<{
|
|
47
139
|
status: z.ZodLiteral<"disabled">;
|
|
48
140
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -57,6 +149,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
57
149
|
token: string;
|
|
58
150
|
function_ids: unknown[];
|
|
59
151
|
skip_logging?: boolean | null | undefined;
|
|
152
|
+
triggered_functions?: Record<string, {
|
|
153
|
+
triggered_xact_id: string;
|
|
154
|
+
attempts: number;
|
|
155
|
+
scope: {
|
|
156
|
+
type: "span";
|
|
157
|
+
} | {
|
|
158
|
+
type: "trace";
|
|
159
|
+
} | {
|
|
160
|
+
value: string;
|
|
161
|
+
type: "group";
|
|
162
|
+
key: string;
|
|
163
|
+
};
|
|
164
|
+
completed_xact_id?: string | null | undefined;
|
|
165
|
+
idempotency_key?: string | null | undefined;
|
|
166
|
+
}> | null | undefined;
|
|
167
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
60
168
|
} | {
|
|
61
169
|
status: "disabled";
|
|
62
170
|
} | null;
|
|
@@ -67,6 +175,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
67
175
|
token: string;
|
|
68
176
|
function_ids: unknown[];
|
|
69
177
|
skip_logging?: boolean | null | undefined;
|
|
178
|
+
triggered_functions?: Record<string, {
|
|
179
|
+
triggered_xact_id: string;
|
|
180
|
+
scope: {
|
|
181
|
+
type: "span";
|
|
182
|
+
} | {
|
|
183
|
+
type: "trace";
|
|
184
|
+
} | {
|
|
185
|
+
value: string;
|
|
186
|
+
type: "group";
|
|
187
|
+
key: string;
|
|
188
|
+
};
|
|
189
|
+
completed_xact_id?: string | null | undefined;
|
|
190
|
+
idempotency_key?: string | null | undefined;
|
|
191
|
+
attempts?: number | undefined;
|
|
192
|
+
}> | null | undefined;
|
|
193
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
70
194
|
} | {
|
|
71
195
|
status: "disabled";
|
|
72
196
|
} | null;
|
|
@@ -83,26 +207,83 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
83
207
|
}, {
|
|
84
208
|
kind: "state_enabled_force_rescore";
|
|
85
209
|
}>, z.ZodObject<{
|
|
86
|
-
kind: z.ZodLiteral<"
|
|
87
|
-
|
|
210
|
+
kind: z.ZodLiteral<"trigger_functions">;
|
|
211
|
+
triggered_functions: z.ZodArray<z.ZodObject<{
|
|
212
|
+
function_id: z.ZodOptional<z.ZodUnknown>;
|
|
213
|
+
scope: z.ZodUnion<[z.ZodObject<{
|
|
214
|
+
type: z.ZodLiteral<"span">;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
type: "span";
|
|
217
|
+
}, {
|
|
218
|
+
type: "span";
|
|
219
|
+
}>, z.ZodObject<{
|
|
220
|
+
type: z.ZodLiteral<"trace">;
|
|
221
|
+
}, "strip", z.ZodTypeAny, {
|
|
222
|
+
type: "trace";
|
|
223
|
+
}, {
|
|
224
|
+
type: "trace";
|
|
225
|
+
}>]>;
|
|
226
|
+
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
scope: {
|
|
229
|
+
type: "span";
|
|
230
|
+
} | {
|
|
231
|
+
type: "trace";
|
|
232
|
+
};
|
|
233
|
+
idempotency_key?: string | undefined;
|
|
234
|
+
function_id?: unknown;
|
|
235
|
+
}, {
|
|
236
|
+
scope: {
|
|
237
|
+
type: "span";
|
|
238
|
+
} | {
|
|
239
|
+
type: "trace";
|
|
240
|
+
};
|
|
241
|
+
idempotency_key?: string | undefined;
|
|
242
|
+
function_id?: unknown;
|
|
243
|
+
}>, "many">;
|
|
88
244
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
kind: "
|
|
90
|
-
|
|
245
|
+
kind: "trigger_functions";
|
|
246
|
+
triggered_functions: {
|
|
247
|
+
scope: {
|
|
248
|
+
type: "span";
|
|
249
|
+
} | {
|
|
250
|
+
type: "trace";
|
|
251
|
+
};
|
|
252
|
+
idempotency_key?: string | undefined;
|
|
253
|
+
function_id?: unknown;
|
|
254
|
+
}[];
|
|
91
255
|
}, {
|
|
92
|
-
kind: "
|
|
93
|
-
|
|
256
|
+
kind: "trigger_functions";
|
|
257
|
+
triggered_functions: {
|
|
258
|
+
scope: {
|
|
259
|
+
type: "span";
|
|
260
|
+
} | {
|
|
261
|
+
type: "trace";
|
|
262
|
+
};
|
|
263
|
+
idempotency_key?: string | undefined;
|
|
264
|
+
function_id?: unknown;
|
|
265
|
+
}[];
|
|
94
266
|
}>, z.ZodObject<{
|
|
95
267
|
kind: z.ZodLiteral<"complete_triggered_functions">;
|
|
96
268
|
function_ids: z.ZodArray<z.ZodUnknown, "many">;
|
|
97
269
|
triggered_xact_id: z.ZodString;
|
|
98
270
|
}, "strip", z.ZodTypeAny, {
|
|
99
|
-
function_ids: unknown[];
|
|
100
271
|
kind: "complete_triggered_functions";
|
|
101
272
|
triggered_xact_id: string;
|
|
102
|
-
}, {
|
|
103
273
|
function_ids: unknown[];
|
|
274
|
+
}, {
|
|
104
275
|
kind: "complete_triggered_functions";
|
|
105
276
|
triggered_xact_id: string;
|
|
277
|
+
function_ids: unknown[];
|
|
278
|
+
}>, z.ZodObject<{
|
|
279
|
+
kind: z.ZodLiteral<"mark_attempt_failed">;
|
|
280
|
+
function_ids: z.ZodArray<z.ZodUnknown, "many">;
|
|
281
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
|
+
kind: "mark_attempt_failed";
|
|
283
|
+
function_ids: unknown[];
|
|
284
|
+
}, {
|
|
285
|
+
kind: "mark_attempt_failed";
|
|
286
|
+
function_ids: unknown[];
|
|
106
287
|
}>]>;
|
|
107
288
|
type AsyncScoringControlType = z.infer<typeof AsyncScoringControl>;
|
|
108
289
|
declare const GitMetadataSettings: z.ZodObject<{
|
|
@@ -110,10 +291,10 @@ declare const GitMetadataSettings: z.ZodObject<{
|
|
|
110
291
|
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
|
|
111
292
|
}, "strip", z.ZodTypeAny, {
|
|
112
293
|
collect: "some" | "none" | "all";
|
|
113
|
-
fields?: ("dirty" | "
|
|
294
|
+
fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
|
|
114
295
|
}, {
|
|
115
296
|
collect: "some" | "none" | "all";
|
|
116
|
-
fields?: ("dirty" | "
|
|
297
|
+
fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
|
|
117
298
|
}>;
|
|
118
299
|
type GitMetadataSettingsType = z.infer<typeof GitMetadataSettings>;
|
|
119
300
|
declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
@@ -139,10 +320,13 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
139
320
|
version?: string | undefined;
|
|
140
321
|
}>, z.ZodObject<{
|
|
141
322
|
global_function: z.ZodString;
|
|
323
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
|
|
142
324
|
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
|
|
143
326
|
global_function: string;
|
|
144
327
|
}, {
|
|
145
328
|
global_function: string;
|
|
329
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
146
330
|
}>, z.ZodObject<{
|
|
147
331
|
prompt_session_id: z.ZodString;
|
|
148
332
|
prompt_session_function_id: z.ZodString;
|
|
@@ -157,43 +341,37 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
157
341
|
version?: string | undefined;
|
|
158
342
|
}>, z.ZodObject<{
|
|
159
343
|
inline_context: z.ZodObject<{
|
|
160
|
-
runtime: z.ZodEnum<["node", "python"]>;
|
|
344
|
+
runtime: z.ZodEnum<["node", "python", "browser", "quickjs"]>;
|
|
161
345
|
version: z.ZodString;
|
|
162
346
|
}, "strip", z.ZodTypeAny, {
|
|
163
|
-
runtime: "node" | "python";
|
|
164
347
|
version: string;
|
|
348
|
+
runtime: "node" | "python" | "browser" | "quickjs";
|
|
165
349
|
}, {
|
|
166
|
-
runtime: "node" | "python";
|
|
167
350
|
version: string;
|
|
351
|
+
runtime: "node" | "python" | "browser" | "quickjs";
|
|
168
352
|
}>;
|
|
169
353
|
code: z.ZodString;
|
|
354
|
+
function_type: z.ZodOptional<z.ZodIntersection<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>, z.ZodUnknown>>;
|
|
170
355
|
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
171
356
|
}, "strip", z.ZodTypeAny, {
|
|
172
357
|
code: string;
|
|
173
358
|
inline_context: {
|
|
174
|
-
runtime: "node" | "python";
|
|
175
359
|
version: string;
|
|
360
|
+
runtime: "node" | "python" | "browser" | "quickjs";
|
|
176
361
|
};
|
|
177
362
|
name?: string | null | undefined;
|
|
363
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
178
364
|
}, {
|
|
179
365
|
code: string;
|
|
180
366
|
inline_context: {
|
|
181
|
-
runtime: "node" | "python";
|
|
182
367
|
version: string;
|
|
368
|
+
runtime: "node" | "python" | "browser" | "quickjs";
|
|
183
369
|
};
|
|
184
370
|
name?: string | null | undefined;
|
|
371
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
185
372
|
}>, z.ZodObject<{
|
|
186
373
|
inline_prompt: z.ZodOptional<z.ZodObject<{
|
|
187
374
|
prompt: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
188
|
-
type: z.ZodLiteral<"completion">;
|
|
189
|
-
content: z.ZodString;
|
|
190
|
-
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
type: "completion";
|
|
192
|
-
content: string;
|
|
193
|
-
}, {
|
|
194
|
-
type: "completion";
|
|
195
|
-
content: string;
|
|
196
|
-
}>, z.ZodObject<{
|
|
197
375
|
type: z.ZodLiteral<"chat">;
|
|
198
376
|
messages: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
199
377
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
@@ -201,22 +379,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
201
379
|
type: z.ZodLiteral<"text">;
|
|
202
380
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
203
381
|
type: z.ZodLiteral<"ephemeral">;
|
|
382
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
204
383
|
}, "strip", z.ZodTypeAny, {
|
|
205
384
|
type: "ephemeral";
|
|
385
|
+
ttl?: "5m" | "1h" | undefined;
|
|
206
386
|
}, {
|
|
207
387
|
type: "ephemeral";
|
|
388
|
+
ttl?: "5m" | "1h" | undefined;
|
|
208
389
|
}>>;
|
|
209
390
|
}, "strip", z.ZodTypeAny, {
|
|
210
391
|
type: "text";
|
|
211
392
|
text: string;
|
|
212
393
|
cache_control?: {
|
|
213
394
|
type: "ephemeral";
|
|
395
|
+
ttl?: "5m" | "1h" | undefined;
|
|
214
396
|
} | undefined;
|
|
215
397
|
}, {
|
|
216
398
|
type: "text";
|
|
217
399
|
text?: string | undefined;
|
|
218
400
|
cache_control?: {
|
|
219
401
|
type: "ephemeral";
|
|
402
|
+
ttl?: "5m" | "1h" | undefined;
|
|
220
403
|
} | undefined;
|
|
221
404
|
}>, "many">]>;
|
|
222
405
|
role: z.ZodLiteral<"system">;
|
|
@@ -228,6 +411,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
228
411
|
text: string;
|
|
229
412
|
cache_control?: {
|
|
230
413
|
type: "ephemeral";
|
|
414
|
+
ttl?: "5m" | "1h" | undefined;
|
|
231
415
|
} | undefined;
|
|
232
416
|
}[];
|
|
233
417
|
name?: string | undefined;
|
|
@@ -238,6 +422,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
238
422
|
text?: string | undefined;
|
|
239
423
|
cache_control?: {
|
|
240
424
|
type: "ephemeral";
|
|
425
|
+
ttl?: "5m" | "1h" | undefined;
|
|
241
426
|
} | undefined;
|
|
242
427
|
}[];
|
|
243
428
|
name?: string | undefined;
|
|
@@ -247,22 +432,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
247
432
|
type: z.ZodLiteral<"text">;
|
|
248
433
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
249
434
|
type: z.ZodLiteral<"ephemeral">;
|
|
435
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
250
436
|
}, "strip", z.ZodTypeAny, {
|
|
251
437
|
type: "ephemeral";
|
|
438
|
+
ttl?: "5m" | "1h" | undefined;
|
|
252
439
|
}, {
|
|
253
440
|
type: "ephemeral";
|
|
441
|
+
ttl?: "5m" | "1h" | undefined;
|
|
254
442
|
}>>;
|
|
255
443
|
}, "strip", z.ZodTypeAny, {
|
|
256
444
|
type: "text";
|
|
257
445
|
text: string;
|
|
258
446
|
cache_control?: {
|
|
259
447
|
type: "ephemeral";
|
|
448
|
+
ttl?: "5m" | "1h" | undefined;
|
|
260
449
|
} | undefined;
|
|
261
450
|
}, {
|
|
262
451
|
type: "text";
|
|
263
452
|
text?: string | undefined;
|
|
264
453
|
cache_control?: {
|
|
265
454
|
type: "ephemeral";
|
|
455
|
+
ttl?: "5m" | "1h" | undefined;
|
|
266
456
|
} | undefined;
|
|
267
457
|
}>, z.ZodObject<{
|
|
268
458
|
image_url: z.ZodObject<{
|
|
@@ -276,18 +466,83 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
276
466
|
detail?: "auto" | "low" | "high" | undefined;
|
|
277
467
|
}>;
|
|
278
468
|
type: z.ZodLiteral<"image_url">;
|
|
469
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
470
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
471
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
472
|
+
}, "strip", z.ZodTypeAny, {
|
|
473
|
+
type: "ephemeral";
|
|
474
|
+
ttl?: "5m" | "1h" | undefined;
|
|
475
|
+
}, {
|
|
476
|
+
type: "ephemeral";
|
|
477
|
+
ttl?: "5m" | "1h" | undefined;
|
|
478
|
+
}>>;
|
|
279
479
|
}, "strip", z.ZodTypeAny, {
|
|
280
480
|
type: "image_url";
|
|
281
481
|
image_url: {
|
|
282
482
|
url: string;
|
|
283
483
|
detail?: "auto" | "low" | "high" | undefined;
|
|
284
484
|
};
|
|
485
|
+
cache_control?: {
|
|
486
|
+
type: "ephemeral";
|
|
487
|
+
ttl?: "5m" | "1h" | undefined;
|
|
488
|
+
} | undefined;
|
|
285
489
|
}, {
|
|
286
490
|
type: "image_url";
|
|
287
491
|
image_url: {
|
|
288
492
|
url: string;
|
|
289
493
|
detail?: "auto" | "low" | "high" | undefined;
|
|
290
494
|
};
|
|
495
|
+
cache_control?: {
|
|
496
|
+
type: "ephemeral";
|
|
497
|
+
ttl?: "5m" | "1h" | undefined;
|
|
498
|
+
} | undefined;
|
|
499
|
+
}>, z.ZodObject<{
|
|
500
|
+
file: z.ZodObject<{
|
|
501
|
+
file_data: z.ZodOptional<z.ZodString>;
|
|
502
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
503
|
+
file_id: z.ZodOptional<z.ZodString>;
|
|
504
|
+
}, "strip", z.ZodTypeAny, {
|
|
505
|
+
filename?: string | undefined;
|
|
506
|
+
file_data?: string | undefined;
|
|
507
|
+
file_id?: string | undefined;
|
|
508
|
+
}, {
|
|
509
|
+
filename?: string | undefined;
|
|
510
|
+
file_data?: string | undefined;
|
|
511
|
+
file_id?: string | undefined;
|
|
512
|
+
}>;
|
|
513
|
+
type: z.ZodLiteral<"file">;
|
|
514
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
515
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
516
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
517
|
+
}, "strip", z.ZodTypeAny, {
|
|
518
|
+
type: "ephemeral";
|
|
519
|
+
ttl?: "5m" | "1h" | undefined;
|
|
520
|
+
}, {
|
|
521
|
+
type: "ephemeral";
|
|
522
|
+
ttl?: "5m" | "1h" | undefined;
|
|
523
|
+
}>>;
|
|
524
|
+
}, "strip", z.ZodTypeAny, {
|
|
525
|
+
type: "file";
|
|
526
|
+
file: {
|
|
527
|
+
filename?: string | undefined;
|
|
528
|
+
file_data?: string | undefined;
|
|
529
|
+
file_id?: string | undefined;
|
|
530
|
+
};
|
|
531
|
+
cache_control?: {
|
|
532
|
+
type: "ephemeral";
|
|
533
|
+
ttl?: "5m" | "1h" | undefined;
|
|
534
|
+
} | undefined;
|
|
535
|
+
}, {
|
|
536
|
+
type: "file";
|
|
537
|
+
file: {
|
|
538
|
+
filename?: string | undefined;
|
|
539
|
+
file_data?: string | undefined;
|
|
540
|
+
file_id?: string | undefined;
|
|
541
|
+
};
|
|
542
|
+
cache_control?: {
|
|
543
|
+
type: "ephemeral";
|
|
544
|
+
ttl?: "5m" | "1h" | undefined;
|
|
545
|
+
} | undefined;
|
|
291
546
|
}>]>, "many">]>;
|
|
292
547
|
role: z.ZodLiteral<"user">;
|
|
293
548
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -298,6 +553,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
298
553
|
text: string;
|
|
299
554
|
cache_control?: {
|
|
300
555
|
type: "ephemeral";
|
|
556
|
+
ttl?: "5m" | "1h" | undefined;
|
|
301
557
|
} | undefined;
|
|
302
558
|
} | {
|
|
303
559
|
type: "image_url";
|
|
@@ -305,6 +561,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
305
561
|
url: string;
|
|
306
562
|
detail?: "auto" | "low" | "high" | undefined;
|
|
307
563
|
};
|
|
564
|
+
cache_control?: {
|
|
565
|
+
type: "ephemeral";
|
|
566
|
+
ttl?: "5m" | "1h" | undefined;
|
|
567
|
+
} | undefined;
|
|
568
|
+
} | {
|
|
569
|
+
type: "file";
|
|
570
|
+
file: {
|
|
571
|
+
filename?: string | undefined;
|
|
572
|
+
file_data?: string | undefined;
|
|
573
|
+
file_id?: string | undefined;
|
|
574
|
+
};
|
|
575
|
+
cache_control?: {
|
|
576
|
+
type: "ephemeral";
|
|
577
|
+
ttl?: "5m" | "1h" | undefined;
|
|
578
|
+
} | undefined;
|
|
308
579
|
})[];
|
|
309
580
|
name?: string | undefined;
|
|
310
581
|
}, {
|
|
@@ -314,6 +585,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
314
585
|
text?: string | undefined;
|
|
315
586
|
cache_control?: {
|
|
316
587
|
type: "ephemeral";
|
|
588
|
+
ttl?: "5m" | "1h" | undefined;
|
|
317
589
|
} | undefined;
|
|
318
590
|
} | {
|
|
319
591
|
type: "image_url";
|
|
@@ -321,6 +593,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
321
593
|
url: string;
|
|
322
594
|
detail?: "auto" | "low" | "high" | undefined;
|
|
323
595
|
};
|
|
596
|
+
cache_control?: {
|
|
597
|
+
type: "ephemeral";
|
|
598
|
+
ttl?: "5m" | "1h" | undefined;
|
|
599
|
+
} | undefined;
|
|
600
|
+
} | {
|
|
601
|
+
type: "file";
|
|
602
|
+
file: {
|
|
603
|
+
filename?: string | undefined;
|
|
604
|
+
file_data?: string | undefined;
|
|
605
|
+
file_id?: string | undefined;
|
|
606
|
+
};
|
|
607
|
+
cache_control?: {
|
|
608
|
+
type: "ephemeral";
|
|
609
|
+
ttl?: "5m" | "1h" | undefined;
|
|
610
|
+
} | undefined;
|
|
324
611
|
})[];
|
|
325
612
|
name?: string | undefined;
|
|
326
613
|
}>, z.ZodObject<{
|
|
@@ -330,22 +617,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
330
617
|
type: z.ZodLiteral<"text">;
|
|
331
618
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
332
619
|
type: z.ZodLiteral<"ephemeral">;
|
|
620
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
333
621
|
}, "strip", z.ZodTypeAny, {
|
|
334
622
|
type: "ephemeral";
|
|
623
|
+
ttl?: "5m" | "1h" | undefined;
|
|
335
624
|
}, {
|
|
336
625
|
type: "ephemeral";
|
|
626
|
+
ttl?: "5m" | "1h" | undefined;
|
|
337
627
|
}>>;
|
|
338
628
|
}, "strip", z.ZodTypeAny, {
|
|
339
629
|
type: "text";
|
|
340
630
|
text: string;
|
|
341
631
|
cache_control?: {
|
|
342
632
|
type: "ephemeral";
|
|
633
|
+
ttl?: "5m" | "1h" | undefined;
|
|
343
634
|
} | undefined;
|
|
344
635
|
}, {
|
|
345
636
|
type: "text";
|
|
346
637
|
text?: string | undefined;
|
|
347
638
|
cache_control?: {
|
|
348
639
|
type: "ephemeral";
|
|
640
|
+
ttl?: "5m" | "1h" | undefined;
|
|
349
641
|
} | undefined;
|
|
350
642
|
}>, "many">, z.ZodNull]>>;
|
|
351
643
|
function_call: z.ZodOptional<z.ZodObject<{
|
|
@@ -397,6 +689,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
397
689
|
id?: string | undefined;
|
|
398
690
|
content?: string | undefined;
|
|
399
691
|
}>, "many">>;
|
|
692
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
400
693
|
}, "strip", z.ZodTypeAny, {
|
|
401
694
|
role: "assistant";
|
|
402
695
|
name?: string | undefined;
|
|
@@ -409,6 +702,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
409
702
|
text: string;
|
|
410
703
|
cache_control?: {
|
|
411
704
|
type: "ephemeral";
|
|
705
|
+
ttl?: "5m" | "1h" | undefined;
|
|
412
706
|
} | undefined;
|
|
413
707
|
}[] | null | undefined;
|
|
414
708
|
tool_calls?: {
|
|
@@ -423,6 +717,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
423
717
|
id?: string | undefined;
|
|
424
718
|
content?: string | undefined;
|
|
425
719
|
}[] | undefined;
|
|
720
|
+
reasoning_signature?: string | undefined;
|
|
426
721
|
}, {
|
|
427
722
|
role: "assistant";
|
|
428
723
|
name?: string | undefined;
|
|
@@ -435,6 +730,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
435
730
|
text?: string | undefined;
|
|
436
731
|
cache_control?: {
|
|
437
732
|
type: "ephemeral";
|
|
733
|
+
ttl?: "5m" | "1h" | undefined;
|
|
438
734
|
} | undefined;
|
|
439
735
|
}[] | null | undefined;
|
|
440
736
|
tool_calls?: {
|
|
@@ -449,28 +745,34 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
449
745
|
id?: string | undefined;
|
|
450
746
|
content?: string | undefined;
|
|
451
747
|
}[] | undefined;
|
|
748
|
+
reasoning_signature?: string | undefined;
|
|
452
749
|
}>, z.ZodObject<{
|
|
453
750
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
454
751
|
text: z.ZodDefault<z.ZodString>;
|
|
455
752
|
type: z.ZodLiteral<"text">;
|
|
456
753
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
457
754
|
type: z.ZodLiteral<"ephemeral">;
|
|
755
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
458
756
|
}, "strip", z.ZodTypeAny, {
|
|
459
757
|
type: "ephemeral";
|
|
758
|
+
ttl?: "5m" | "1h" | undefined;
|
|
460
759
|
}, {
|
|
461
760
|
type: "ephemeral";
|
|
761
|
+
ttl?: "5m" | "1h" | undefined;
|
|
462
762
|
}>>;
|
|
463
763
|
}, "strip", z.ZodTypeAny, {
|
|
464
764
|
type: "text";
|
|
465
765
|
text: string;
|
|
466
766
|
cache_control?: {
|
|
467
767
|
type: "ephemeral";
|
|
768
|
+
ttl?: "5m" | "1h" | undefined;
|
|
468
769
|
} | undefined;
|
|
469
770
|
}, {
|
|
470
771
|
type: "text";
|
|
471
772
|
text?: string | undefined;
|
|
472
773
|
cache_control?: {
|
|
473
774
|
type: "ephemeral";
|
|
775
|
+
ttl?: "5m" | "1h" | undefined;
|
|
474
776
|
} | undefined;
|
|
475
777
|
}>, "many">]>;
|
|
476
778
|
role: z.ZodLiteral<"tool">;
|
|
@@ -482,6 +784,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
482
784
|
text: string;
|
|
483
785
|
cache_control?: {
|
|
484
786
|
type: "ephemeral";
|
|
787
|
+
ttl?: "5m" | "1h" | undefined;
|
|
485
788
|
} | undefined;
|
|
486
789
|
}[];
|
|
487
790
|
tool_call_id: string;
|
|
@@ -492,6 +795,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
492
795
|
text?: string | undefined;
|
|
493
796
|
cache_control?: {
|
|
494
797
|
type: "ephemeral";
|
|
798
|
+
ttl?: "5m" | "1h" | undefined;
|
|
495
799
|
} | undefined;
|
|
496
800
|
}[];
|
|
497
801
|
tool_call_id?: string | undefined;
|
|
@@ -513,22 +817,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
513
817
|
type: z.ZodLiteral<"text">;
|
|
514
818
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
515
819
|
type: z.ZodLiteral<"ephemeral">;
|
|
820
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
516
821
|
}, "strip", z.ZodTypeAny, {
|
|
517
822
|
type: "ephemeral";
|
|
823
|
+
ttl?: "5m" | "1h" | undefined;
|
|
518
824
|
}, {
|
|
519
825
|
type: "ephemeral";
|
|
826
|
+
ttl?: "5m" | "1h" | undefined;
|
|
520
827
|
}>>;
|
|
521
828
|
}, "strip", z.ZodTypeAny, {
|
|
522
829
|
type: "text";
|
|
523
830
|
text: string;
|
|
524
831
|
cache_control?: {
|
|
525
832
|
type: "ephemeral";
|
|
833
|
+
ttl?: "5m" | "1h" | undefined;
|
|
526
834
|
} | undefined;
|
|
527
835
|
}, {
|
|
528
836
|
type: "text";
|
|
529
837
|
text?: string | undefined;
|
|
530
838
|
cache_control?: {
|
|
531
839
|
type: "ephemeral";
|
|
840
|
+
ttl?: "5m" | "1h" | undefined;
|
|
532
841
|
} | undefined;
|
|
533
842
|
}>, "many">]>;
|
|
534
843
|
role: z.ZodLiteral<"developer">;
|
|
@@ -540,6 +849,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
540
849
|
text: string;
|
|
541
850
|
cache_control?: {
|
|
542
851
|
type: "ephemeral";
|
|
852
|
+
ttl?: "5m" | "1h" | undefined;
|
|
543
853
|
} | undefined;
|
|
544
854
|
}[];
|
|
545
855
|
name?: string | undefined;
|
|
@@ -550,6 +860,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
550
860
|
text?: string | undefined;
|
|
551
861
|
cache_control?: {
|
|
552
862
|
type: "ephemeral";
|
|
863
|
+
ttl?: "5m" | "1h" | undefined;
|
|
553
864
|
} | undefined;
|
|
554
865
|
}[];
|
|
555
866
|
name?: string | undefined;
|
|
@@ -573,6 +884,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
573
884
|
text: string;
|
|
574
885
|
cache_control?: {
|
|
575
886
|
type: "ephemeral";
|
|
887
|
+
ttl?: "5m" | "1h" | undefined;
|
|
576
888
|
} | undefined;
|
|
577
889
|
}[];
|
|
578
890
|
name?: string | undefined;
|
|
@@ -583,6 +895,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
583
895
|
text: string;
|
|
584
896
|
cache_control?: {
|
|
585
897
|
type: "ephemeral";
|
|
898
|
+
ttl?: "5m" | "1h" | undefined;
|
|
586
899
|
} | undefined;
|
|
587
900
|
} | {
|
|
588
901
|
type: "image_url";
|
|
@@ -590,6 +903,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
590
903
|
url: string;
|
|
591
904
|
detail?: "auto" | "low" | "high" | undefined;
|
|
592
905
|
};
|
|
906
|
+
cache_control?: {
|
|
907
|
+
type: "ephemeral";
|
|
908
|
+
ttl?: "5m" | "1h" | undefined;
|
|
909
|
+
} | undefined;
|
|
910
|
+
} | {
|
|
911
|
+
type: "file";
|
|
912
|
+
file: {
|
|
913
|
+
filename?: string | undefined;
|
|
914
|
+
file_data?: string | undefined;
|
|
915
|
+
file_id?: string | undefined;
|
|
916
|
+
};
|
|
917
|
+
cache_control?: {
|
|
918
|
+
type: "ephemeral";
|
|
919
|
+
ttl?: "5m" | "1h" | undefined;
|
|
920
|
+
} | undefined;
|
|
593
921
|
})[];
|
|
594
922
|
name?: string | undefined;
|
|
595
923
|
} | {
|
|
@@ -604,6 +932,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
604
932
|
text: string;
|
|
605
933
|
cache_control?: {
|
|
606
934
|
type: "ephemeral";
|
|
935
|
+
ttl?: "5m" | "1h" | undefined;
|
|
607
936
|
} | undefined;
|
|
608
937
|
}[] | null | undefined;
|
|
609
938
|
tool_calls?: {
|
|
@@ -618,6 +947,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
618
947
|
id?: string | undefined;
|
|
619
948
|
content?: string | undefined;
|
|
620
949
|
}[] | undefined;
|
|
950
|
+
reasoning_signature?: string | undefined;
|
|
621
951
|
} | {
|
|
622
952
|
role: "tool";
|
|
623
953
|
content: string | {
|
|
@@ -625,6 +955,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
625
955
|
text: string;
|
|
626
956
|
cache_control?: {
|
|
627
957
|
type: "ephemeral";
|
|
958
|
+
ttl?: "5m" | "1h" | undefined;
|
|
628
959
|
} | undefined;
|
|
629
960
|
}[];
|
|
630
961
|
tool_call_id: string;
|
|
@@ -639,6 +970,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
639
970
|
text: string;
|
|
640
971
|
cache_control?: {
|
|
641
972
|
type: "ephemeral";
|
|
973
|
+
ttl?: "5m" | "1h" | undefined;
|
|
642
974
|
} | undefined;
|
|
643
975
|
}[];
|
|
644
976
|
name?: string | undefined;
|
|
@@ -656,6 +988,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
656
988
|
text?: string | undefined;
|
|
657
989
|
cache_control?: {
|
|
658
990
|
type: "ephemeral";
|
|
991
|
+
ttl?: "5m" | "1h" | undefined;
|
|
659
992
|
} | undefined;
|
|
660
993
|
}[];
|
|
661
994
|
name?: string | undefined;
|
|
@@ -666,6 +999,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
666
999
|
text?: string | undefined;
|
|
667
1000
|
cache_control?: {
|
|
668
1001
|
type: "ephemeral";
|
|
1002
|
+
ttl?: "5m" | "1h" | undefined;
|
|
669
1003
|
} | undefined;
|
|
670
1004
|
} | {
|
|
671
1005
|
type: "image_url";
|
|
@@ -673,6 +1007,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
673
1007
|
url: string;
|
|
674
1008
|
detail?: "auto" | "low" | "high" | undefined;
|
|
675
1009
|
};
|
|
1010
|
+
cache_control?: {
|
|
1011
|
+
type: "ephemeral";
|
|
1012
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1013
|
+
} | undefined;
|
|
1014
|
+
} | {
|
|
1015
|
+
type: "file";
|
|
1016
|
+
file: {
|
|
1017
|
+
filename?: string | undefined;
|
|
1018
|
+
file_data?: string | undefined;
|
|
1019
|
+
file_id?: string | undefined;
|
|
1020
|
+
};
|
|
1021
|
+
cache_control?: {
|
|
1022
|
+
type: "ephemeral";
|
|
1023
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1024
|
+
} | undefined;
|
|
676
1025
|
})[];
|
|
677
1026
|
name?: string | undefined;
|
|
678
1027
|
} | {
|
|
@@ -687,6 +1036,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
687
1036
|
text?: string | undefined;
|
|
688
1037
|
cache_control?: {
|
|
689
1038
|
type: "ephemeral";
|
|
1039
|
+
ttl?: "5m" | "1h" | undefined;
|
|
690
1040
|
} | undefined;
|
|
691
1041
|
}[] | null | undefined;
|
|
692
1042
|
tool_calls?: {
|
|
@@ -701,6 +1051,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
701
1051
|
id?: string | undefined;
|
|
702
1052
|
content?: string | undefined;
|
|
703
1053
|
}[] | undefined;
|
|
1054
|
+
reasoning_signature?: string | undefined;
|
|
704
1055
|
} | {
|
|
705
1056
|
role: "tool";
|
|
706
1057
|
content: string | {
|
|
@@ -708,6 +1059,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
708
1059
|
text?: string | undefined;
|
|
709
1060
|
cache_control?: {
|
|
710
1061
|
type: "ephemeral";
|
|
1062
|
+
ttl?: "5m" | "1h" | undefined;
|
|
711
1063
|
} | undefined;
|
|
712
1064
|
}[];
|
|
713
1065
|
tool_call_id?: string | undefined;
|
|
@@ -722,6 +1074,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
722
1074
|
text?: string | undefined;
|
|
723
1075
|
cache_control?: {
|
|
724
1076
|
type: "ephemeral";
|
|
1077
|
+
ttl?: "5m" | "1h" | undefined;
|
|
725
1078
|
} | undefined;
|
|
726
1079
|
}[];
|
|
727
1080
|
name?: string | undefined;
|
|
@@ -730,11 +1083,22 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
730
1083
|
content?: string | null | undefined;
|
|
731
1084
|
})[];
|
|
732
1085
|
tools?: string | undefined;
|
|
1086
|
+
}>, z.ZodObject<{
|
|
1087
|
+
type: z.ZodLiteral<"completion">;
|
|
1088
|
+
content: z.ZodString;
|
|
1089
|
+
}, "strip", z.ZodTypeAny, {
|
|
1090
|
+
type: "completion";
|
|
1091
|
+
content: string;
|
|
1092
|
+
}, {
|
|
1093
|
+
type: "completion";
|
|
1094
|
+
content: string;
|
|
733
1095
|
}>, z.ZodNull]>>;
|
|
734
1096
|
options: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
735
1097
|
model: z.ZodOptional<z.ZodString>;
|
|
736
1098
|
params: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
737
1099
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1100
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1101
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
738
1102
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
739
1103
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
740
1104
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -817,10 +1181,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
817
1181
|
}>]>>;
|
|
818
1182
|
n: z.ZodOptional<z.ZodNumber>;
|
|
819
1183
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
820
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
1184
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
821
1185
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
822
1186
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
823
1187
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1188
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1189
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
824
1190
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
825
1191
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
826
1192
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -903,10 +1269,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
903
1269
|
}>]>>;
|
|
904
1270
|
n: z.ZodOptional<z.ZodNumber>;
|
|
905
1271
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
906
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
1272
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
907
1273
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
908
1274
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
909
1275
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1276
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1277
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
910
1278
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
911
1279
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
912
1280
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -989,10 +1357,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
989
1357
|
}>]>>;
|
|
990
1358
|
n: z.ZodOptional<z.ZodNumber>;
|
|
991
1359
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
992
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
1360
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
993
1361
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
994
1362
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
995
1363
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1364
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1365
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
996
1366
|
max_tokens: z.ZodNumber;
|
|
997
1367
|
temperature: z.ZodNumber;
|
|
998
1368
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1001,6 +1371,8 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1001
1371
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
1002
1372
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1003
1373
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1374
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1375
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1004
1376
|
max_tokens: z.ZodNumber;
|
|
1005
1377
|
temperature: z.ZodNumber;
|
|
1006
1378
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1009,6 +1381,8 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1009
1381
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
1010
1382
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1011
1383
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1384
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1385
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1012
1386
|
max_tokens: z.ZodNumber;
|
|
1013
1387
|
temperature: z.ZodNumber;
|
|
1014
1388
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1017,45 +1391,66 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1017
1391
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
1018
1392
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1019
1393
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1394
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1395
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1020
1396
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1021
1397
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1022
1398
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
1023
1399
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1024
1400
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1025
1401
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1402
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1403
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1026
1404
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1027
1405
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1028
1406
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
1029
1407
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1030
1408
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1031
1409
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1410
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1411
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1032
1412
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1033
1413
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1034
1414
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
1035
1415
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1036
1416
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1037
1417
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1418
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1419
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1038
1420
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1039
1421
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1040
1422
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1041
1423
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1424
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1425
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1042
1426
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1043
1427
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1044
1428
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1045
1429
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1430
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1431
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1046
1432
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1047
1433
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1048
1434
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1049
1435
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1436
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1437
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1050
1438
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1051
1439
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1440
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1441
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1052
1442
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1053
1443
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1444
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1445
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1054
1446
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
1055
1447
|
position: z.ZodOptional<z.ZodString>;
|
|
1448
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1056
1449
|
}, "strip", z.ZodTypeAny, {
|
|
1057
1450
|
params?: z.objectOutputType<{
|
|
1058
1451
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1452
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1453
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1059
1454
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1060
1455
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
1061
1456
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1138,10 +1533,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1138
1533
|
}>]>>;
|
|
1139
1534
|
n: z.ZodOptional<z.ZodNumber>;
|
|
1140
1535
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1141
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
1536
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
1142
1537
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1143
1538
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1144
1539
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1540
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1541
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1145
1542
|
max_tokens: z.ZodNumber;
|
|
1146
1543
|
temperature: z.ZodNumber;
|
|
1147
1544
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1150,22 +1547,31 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1150
1547
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
1151
1548
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1152
1549
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1550
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1551
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1153
1552
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1154
1553
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1155
1554
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
1156
1555
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1157
1556
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1158
1557
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1558
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1559
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1159
1560
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1160
1561
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1161
1562
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1162
1563
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1564
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1565
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1163
1566
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1164
1567
|
model?: string | undefined;
|
|
1165
1568
|
position?: string | undefined;
|
|
1569
|
+
endpoint_name?: string | null | undefined;
|
|
1166
1570
|
}, {
|
|
1167
1571
|
params?: z.objectInputType<{
|
|
1168
1572
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1573
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1574
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1169
1575
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1170
1576
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
1171
1577
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1248,10 +1654,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1248
1654
|
}>]>>;
|
|
1249
1655
|
n: z.ZodOptional<z.ZodNumber>;
|
|
1250
1656
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1251
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
1657
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
1252
1658
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1253
1659
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1254
1660
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1661
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1662
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1255
1663
|
max_tokens: z.ZodNumber;
|
|
1256
1664
|
temperature: z.ZodNumber;
|
|
1257
1665
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1260,52 +1668,131 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1260
1668
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
1261
1669
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1262
1670
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1671
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1672
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1263
1673
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1264
1674
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1265
1675
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
1266
1676
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1267
1677
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1268
1678
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1679
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1680
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1269
1681
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1270
1682
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1271
1683
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1272
1684
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1685
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1686
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1273
1687
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1274
1688
|
model?: string | undefined;
|
|
1275
1689
|
position?: string | undefined;
|
|
1690
|
+
endpoint_name?: string | null | undefined;
|
|
1276
1691
|
}>, z.ZodNull]>>;
|
|
1277
1692
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1278
1693
|
type: z.ZodLiteral<"llm_classifier">;
|
|
1279
1694
|
use_cot: z.ZodBoolean;
|
|
1280
|
-
choice_scores: z.ZodRecord<z.ZodString, z.ZodNumber
|
|
1695
|
+
choice_scores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1696
|
+
choice: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1697
|
+
allow_no_match: z.ZodOptional<z.ZodBoolean>;
|
|
1698
|
+
allow_skip: z.ZodOptional<z.ZodBoolean>;
|
|
1281
1699
|
}, "strip", z.ZodTypeAny, {
|
|
1282
1700
|
type: "llm_classifier";
|
|
1283
1701
|
use_cot: boolean;
|
|
1284
|
-
choice_scores
|
|
1702
|
+
choice_scores?: Record<string, number> | undefined;
|
|
1703
|
+
choice?: string[] | undefined;
|
|
1704
|
+
allow_no_match?: boolean | undefined;
|
|
1705
|
+
allow_skip?: boolean | undefined;
|
|
1285
1706
|
}, {
|
|
1286
1707
|
type: "llm_classifier";
|
|
1287
1708
|
use_cot: boolean;
|
|
1288
|
-
choice_scores
|
|
1709
|
+
choice_scores?: Record<string, number> | undefined;
|
|
1710
|
+
choice?: string[] | undefined;
|
|
1711
|
+
allow_no_match?: boolean | undefined;
|
|
1712
|
+
allow_skip?: boolean | undefined;
|
|
1713
|
+
}>, z.ZodNull]>>;
|
|
1714
|
+
preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1715
|
+
type: z.ZodLiteral<"function">;
|
|
1716
|
+
id: z.ZodString;
|
|
1717
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1718
|
+
}, "strip", z.ZodTypeAny, {
|
|
1719
|
+
id: string;
|
|
1720
|
+
type: "function";
|
|
1721
|
+
version?: string | undefined;
|
|
1722
|
+
}, {
|
|
1723
|
+
id: string;
|
|
1724
|
+
type: "function";
|
|
1725
|
+
version?: string | undefined;
|
|
1726
|
+
}>, z.ZodObject<{
|
|
1727
|
+
type: z.ZodLiteral<"global">;
|
|
1728
|
+
name: z.ZodString;
|
|
1729
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
|
|
1730
|
+
}, "strip", z.ZodTypeAny, {
|
|
1731
|
+
type: "global";
|
|
1732
|
+
name: string;
|
|
1733
|
+
function_type: "preprocessor";
|
|
1734
|
+
}, {
|
|
1735
|
+
type: "global";
|
|
1736
|
+
name: string;
|
|
1737
|
+
function_type?: "preprocessor" | undefined;
|
|
1289
1738
|
}>, z.ZodNull]>>;
|
|
1290
1739
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1291
1740
|
type: z.ZodLiteral<"function">;
|
|
1292
1741
|
id: z.ZodString;
|
|
1742
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1293
1743
|
}, "strip", z.ZodTypeAny, {
|
|
1294
1744
|
id: string;
|
|
1295
1745
|
type: "function";
|
|
1746
|
+
version?: string | undefined;
|
|
1296
1747
|
}, {
|
|
1297
1748
|
id: string;
|
|
1298
1749
|
type: "function";
|
|
1750
|
+
version?: string | undefined;
|
|
1299
1751
|
}>, z.ZodObject<{
|
|
1300
1752
|
type: z.ZodLiteral<"global">;
|
|
1301
1753
|
name: z.ZodString;
|
|
1754
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
|
|
1302
1755
|
}, "strip", z.ZodTypeAny, {
|
|
1303
1756
|
type: "global";
|
|
1304
1757
|
name: string;
|
|
1758
|
+
function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
|
|
1305
1759
|
}, {
|
|
1306
1760
|
type: "global";
|
|
1307
1761
|
name: string;
|
|
1762
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
1308
1763
|
}>]>, "many">, z.ZodNull]>>;
|
|
1764
|
+
template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
|
|
1765
|
+
mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
1766
|
+
type: z.ZodLiteral<"id">;
|
|
1767
|
+
id: z.ZodString;
|
|
1768
|
+
is_disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1769
|
+
enabled_tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
|
|
1770
|
+
}, "strip", z.ZodTypeAny, {
|
|
1771
|
+
id: string;
|
|
1772
|
+
type: "id";
|
|
1773
|
+
is_disabled?: boolean | undefined;
|
|
1774
|
+
enabled_tools?: string[] | null | undefined;
|
|
1775
|
+
}, {
|
|
1776
|
+
id: string;
|
|
1777
|
+
type: "id";
|
|
1778
|
+
is_disabled?: boolean | undefined;
|
|
1779
|
+
enabled_tools?: string[] | null | undefined;
|
|
1780
|
+
}>, z.ZodObject<{
|
|
1781
|
+
type: z.ZodLiteral<"url">;
|
|
1782
|
+
url: z.ZodString;
|
|
1783
|
+
is_disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1784
|
+
enabled_tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
|
|
1785
|
+
}, "strip", z.ZodTypeAny, {
|
|
1786
|
+
type: "url";
|
|
1787
|
+
url: string;
|
|
1788
|
+
is_disabled?: boolean | undefined;
|
|
1789
|
+
enabled_tools?: string[] | null | undefined;
|
|
1790
|
+
}, {
|
|
1791
|
+
type: "url";
|
|
1792
|
+
url: string;
|
|
1793
|
+
is_disabled?: boolean | undefined;
|
|
1794
|
+
enabled_tools?: string[] | null | undefined;
|
|
1795
|
+
}>]>>, z.ZodNull]>>;
|
|
1309
1796
|
origin: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1310
1797
|
prompt_id: z.ZodOptional<z.ZodString>;
|
|
1311
1798
|
project_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1323,6 +1810,8 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1323
1810
|
options?: {
|
|
1324
1811
|
params?: z.objectOutputType<{
|
|
1325
1812
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1813
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1814
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1326
1815
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1327
1816
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
1328
1817
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1405,10 +1894,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1405
1894
|
}>]>>;
|
|
1406
1895
|
n: z.ZodOptional<z.ZodNumber>;
|
|
1407
1896
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1408
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
1897
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
1409
1898
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1410
1899
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1411
1900
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1901
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1902
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1412
1903
|
max_tokens: z.ZodNumber;
|
|
1413
1904
|
temperature: z.ZodNumber;
|
|
1414
1905
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1417,24 +1908,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1417
1908
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
1418
1909
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1419
1910
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1911
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1912
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1420
1913
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1421
1914
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1422
1915
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
1423
1916
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1424
1917
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1425
1918
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1919
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1920
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1426
1921
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1427
1922
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1428
1923
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1429
1924
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
1925
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1926
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1430
1927
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1431
1928
|
model?: string | undefined;
|
|
1432
1929
|
position?: string | undefined;
|
|
1930
|
+
endpoint_name?: string | null | undefined;
|
|
1433
1931
|
} | null | undefined;
|
|
1434
1932
|
prompt?: {
|
|
1435
|
-
type: "completion";
|
|
1436
|
-
content: string;
|
|
1437
|
-
} | {
|
|
1438
1933
|
type: "chat";
|
|
1439
1934
|
messages: ({
|
|
1440
1935
|
role: "system";
|
|
@@ -1443,6 +1938,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1443
1938
|
text: string;
|
|
1444
1939
|
cache_control?: {
|
|
1445
1940
|
type: "ephemeral";
|
|
1941
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1446
1942
|
} | undefined;
|
|
1447
1943
|
}[];
|
|
1448
1944
|
name?: string | undefined;
|
|
@@ -1453,6 +1949,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1453
1949
|
text: string;
|
|
1454
1950
|
cache_control?: {
|
|
1455
1951
|
type: "ephemeral";
|
|
1952
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1456
1953
|
} | undefined;
|
|
1457
1954
|
} | {
|
|
1458
1955
|
type: "image_url";
|
|
@@ -1460,6 +1957,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1460
1957
|
url: string;
|
|
1461
1958
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1462
1959
|
};
|
|
1960
|
+
cache_control?: {
|
|
1961
|
+
type: "ephemeral";
|
|
1962
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1963
|
+
} | undefined;
|
|
1964
|
+
} | {
|
|
1965
|
+
type: "file";
|
|
1966
|
+
file: {
|
|
1967
|
+
filename?: string | undefined;
|
|
1968
|
+
file_data?: string | undefined;
|
|
1969
|
+
file_id?: string | undefined;
|
|
1970
|
+
};
|
|
1971
|
+
cache_control?: {
|
|
1972
|
+
type: "ephemeral";
|
|
1973
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1974
|
+
} | undefined;
|
|
1463
1975
|
})[];
|
|
1464
1976
|
name?: string | undefined;
|
|
1465
1977
|
} | {
|
|
@@ -1474,6 +1986,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1474
1986
|
text: string;
|
|
1475
1987
|
cache_control?: {
|
|
1476
1988
|
type: "ephemeral";
|
|
1989
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1477
1990
|
} | undefined;
|
|
1478
1991
|
}[] | null | undefined;
|
|
1479
1992
|
tool_calls?: {
|
|
@@ -1488,6 +2001,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1488
2001
|
id?: string | undefined;
|
|
1489
2002
|
content?: string | undefined;
|
|
1490
2003
|
}[] | undefined;
|
|
2004
|
+
reasoning_signature?: string | undefined;
|
|
1491
2005
|
} | {
|
|
1492
2006
|
role: "tool";
|
|
1493
2007
|
content: string | {
|
|
@@ -1495,6 +2009,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1495
2009
|
text: string;
|
|
1496
2010
|
cache_control?: {
|
|
1497
2011
|
type: "ephemeral";
|
|
2012
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1498
2013
|
} | undefined;
|
|
1499
2014
|
}[];
|
|
1500
2015
|
tool_call_id: string;
|
|
@@ -1509,6 +2024,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1509
2024
|
text: string;
|
|
1510
2025
|
cache_control?: {
|
|
1511
2026
|
type: "ephemeral";
|
|
2027
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1512
2028
|
} | undefined;
|
|
1513
2029
|
}[];
|
|
1514
2030
|
name?: string | undefined;
|
|
@@ -1517,6 +2033,18 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1517
2033
|
content?: string | null | undefined;
|
|
1518
2034
|
})[];
|
|
1519
2035
|
tools?: string | undefined;
|
|
2036
|
+
} | {
|
|
2037
|
+
type: "completion";
|
|
2038
|
+
content: string;
|
|
2039
|
+
} | null | undefined;
|
|
2040
|
+
preprocessor?: {
|
|
2041
|
+
id: string;
|
|
2042
|
+
type: "function";
|
|
2043
|
+
version?: string | undefined;
|
|
2044
|
+
} | {
|
|
2045
|
+
type: "global";
|
|
2046
|
+
name: string;
|
|
2047
|
+
function_type: "preprocessor";
|
|
1520
2048
|
} | null | undefined;
|
|
1521
2049
|
origin?: {
|
|
1522
2050
|
project_id?: string | undefined;
|
|
@@ -1526,19 +2054,38 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1526
2054
|
parser?: {
|
|
1527
2055
|
type: "llm_classifier";
|
|
1528
2056
|
use_cot: boolean;
|
|
1529
|
-
choice_scores
|
|
2057
|
+
choice_scores?: Record<string, number> | undefined;
|
|
2058
|
+
choice?: string[] | undefined;
|
|
2059
|
+
allow_no_match?: boolean | undefined;
|
|
2060
|
+
allow_skip?: boolean | undefined;
|
|
1530
2061
|
} | null | undefined;
|
|
1531
2062
|
tool_functions?: ({
|
|
1532
2063
|
id: string;
|
|
1533
2064
|
type: "function";
|
|
2065
|
+
version?: string | undefined;
|
|
1534
2066
|
} | {
|
|
1535
2067
|
type: "global";
|
|
1536
2068
|
name: string;
|
|
2069
|
+
function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
|
|
1537
2070
|
})[] | null | undefined;
|
|
2071
|
+
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
2072
|
+
mcp?: Record<string, {
|
|
2073
|
+
id: string;
|
|
2074
|
+
type: "id";
|
|
2075
|
+
is_disabled?: boolean | undefined;
|
|
2076
|
+
enabled_tools?: string[] | null | undefined;
|
|
2077
|
+
} | {
|
|
2078
|
+
type: "url";
|
|
2079
|
+
url: string;
|
|
2080
|
+
is_disabled?: boolean | undefined;
|
|
2081
|
+
enabled_tools?: string[] | null | undefined;
|
|
2082
|
+
}> | null | undefined;
|
|
1538
2083
|
}, {
|
|
1539
2084
|
options?: {
|
|
1540
2085
|
params?: z.objectInputType<{
|
|
1541
2086
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2087
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2088
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1542
2089
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1543
2090
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
1544
2091
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1621,10 +2168,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1621
2168
|
}>]>>;
|
|
1622
2169
|
n: z.ZodOptional<z.ZodNumber>;
|
|
1623
2170
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1624
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
2171
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
1625
2172
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1626
2173
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1627
2174
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2175
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2176
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1628
2177
|
max_tokens: z.ZodNumber;
|
|
1629
2178
|
temperature: z.ZodNumber;
|
|
1630
2179
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1633,24 +2182,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1633
2182
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
1634
2183
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1635
2184
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2185
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2186
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1636
2187
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1637
2188
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1638
2189
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
1639
2190
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1640
2191
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1641
2192
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2193
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2194
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1642
2195
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1643
2196
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1644
2197
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1645
2198
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2199
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2200
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1646
2201
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1647
2202
|
model?: string | undefined;
|
|
1648
2203
|
position?: string | undefined;
|
|
2204
|
+
endpoint_name?: string | null | undefined;
|
|
1649
2205
|
} | null | undefined;
|
|
1650
2206
|
prompt?: {
|
|
1651
|
-
type: "completion";
|
|
1652
|
-
content: string;
|
|
1653
|
-
} | {
|
|
1654
2207
|
type: "chat";
|
|
1655
2208
|
messages: ({
|
|
1656
2209
|
role: "system";
|
|
@@ -1659,6 +2212,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1659
2212
|
text?: string | undefined;
|
|
1660
2213
|
cache_control?: {
|
|
1661
2214
|
type: "ephemeral";
|
|
2215
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1662
2216
|
} | undefined;
|
|
1663
2217
|
}[];
|
|
1664
2218
|
name?: string | undefined;
|
|
@@ -1669,6 +2223,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1669
2223
|
text?: string | undefined;
|
|
1670
2224
|
cache_control?: {
|
|
1671
2225
|
type: "ephemeral";
|
|
2226
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1672
2227
|
} | undefined;
|
|
1673
2228
|
} | {
|
|
1674
2229
|
type: "image_url";
|
|
@@ -1676,6 +2231,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1676
2231
|
url: string;
|
|
1677
2232
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1678
2233
|
};
|
|
2234
|
+
cache_control?: {
|
|
2235
|
+
type: "ephemeral";
|
|
2236
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2237
|
+
} | undefined;
|
|
2238
|
+
} | {
|
|
2239
|
+
type: "file";
|
|
2240
|
+
file: {
|
|
2241
|
+
filename?: string | undefined;
|
|
2242
|
+
file_data?: string | undefined;
|
|
2243
|
+
file_id?: string | undefined;
|
|
2244
|
+
};
|
|
2245
|
+
cache_control?: {
|
|
2246
|
+
type: "ephemeral";
|
|
2247
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2248
|
+
} | undefined;
|
|
1679
2249
|
})[];
|
|
1680
2250
|
name?: string | undefined;
|
|
1681
2251
|
} | {
|
|
@@ -1690,6 +2260,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1690
2260
|
text?: string | undefined;
|
|
1691
2261
|
cache_control?: {
|
|
1692
2262
|
type: "ephemeral";
|
|
2263
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1693
2264
|
} | undefined;
|
|
1694
2265
|
}[] | null | undefined;
|
|
1695
2266
|
tool_calls?: {
|
|
@@ -1704,6 +2275,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1704
2275
|
id?: string | undefined;
|
|
1705
2276
|
content?: string | undefined;
|
|
1706
2277
|
}[] | undefined;
|
|
2278
|
+
reasoning_signature?: string | undefined;
|
|
1707
2279
|
} | {
|
|
1708
2280
|
role: "tool";
|
|
1709
2281
|
content: string | {
|
|
@@ -1711,6 +2283,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1711
2283
|
text?: string | undefined;
|
|
1712
2284
|
cache_control?: {
|
|
1713
2285
|
type: "ephemeral";
|
|
2286
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1714
2287
|
} | undefined;
|
|
1715
2288
|
}[];
|
|
1716
2289
|
tool_call_id?: string | undefined;
|
|
@@ -1725,6 +2298,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1725
2298
|
text?: string | undefined;
|
|
1726
2299
|
cache_control?: {
|
|
1727
2300
|
type: "ephemeral";
|
|
2301
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1728
2302
|
} | undefined;
|
|
1729
2303
|
}[];
|
|
1730
2304
|
name?: string | undefined;
|
|
@@ -1733,6 +2307,18 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1733
2307
|
content?: string | null | undefined;
|
|
1734
2308
|
})[];
|
|
1735
2309
|
tools?: string | undefined;
|
|
2310
|
+
} | {
|
|
2311
|
+
type: "completion";
|
|
2312
|
+
content: string;
|
|
2313
|
+
} | null | undefined;
|
|
2314
|
+
preprocessor?: {
|
|
2315
|
+
id: string;
|
|
2316
|
+
type: "function";
|
|
2317
|
+
version?: string | undefined;
|
|
2318
|
+
} | {
|
|
2319
|
+
type: "global";
|
|
2320
|
+
name: string;
|
|
2321
|
+
function_type?: "preprocessor" | undefined;
|
|
1736
2322
|
} | null | undefined;
|
|
1737
2323
|
origin?: {
|
|
1738
2324
|
project_id?: string | undefined;
|
|
@@ -1742,29 +2328,48 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1742
2328
|
parser?: {
|
|
1743
2329
|
type: "llm_classifier";
|
|
1744
2330
|
use_cot: boolean;
|
|
1745
|
-
choice_scores
|
|
2331
|
+
choice_scores?: Record<string, number> | undefined;
|
|
2332
|
+
choice?: string[] | undefined;
|
|
2333
|
+
allow_no_match?: boolean | undefined;
|
|
2334
|
+
allow_skip?: boolean | undefined;
|
|
1746
2335
|
} | null | undefined;
|
|
1747
2336
|
tool_functions?: ({
|
|
1748
2337
|
id: string;
|
|
1749
2338
|
type: "function";
|
|
2339
|
+
version?: string | undefined;
|
|
1750
2340
|
} | {
|
|
1751
2341
|
type: "global";
|
|
1752
2342
|
name: string;
|
|
2343
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
1753
2344
|
})[] | null | undefined;
|
|
2345
|
+
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
2346
|
+
mcp?: Record<string, {
|
|
2347
|
+
id: string;
|
|
2348
|
+
type: "id";
|
|
2349
|
+
is_disabled?: boolean | undefined;
|
|
2350
|
+
enabled_tools?: string[] | null | undefined;
|
|
2351
|
+
} | {
|
|
2352
|
+
type: "url";
|
|
2353
|
+
url: string;
|
|
2354
|
+
is_disabled?: boolean | undefined;
|
|
2355
|
+
enabled_tools?: string[] | null | undefined;
|
|
2356
|
+
}> | null | undefined;
|
|
1754
2357
|
}>>;
|
|
1755
2358
|
inline_function: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
1756
|
-
function_type: z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool"]
|
|
2359
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
|
|
1757
2360
|
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1758
2361
|
}, "strip", z.ZodTypeAny, {
|
|
2362
|
+
function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
|
|
1759
2363
|
inline_function: {} & {
|
|
1760
2364
|
[k: string]: unknown;
|
|
1761
2365
|
};
|
|
1762
2366
|
name?: string | null | undefined;
|
|
1763
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | undefined;
|
|
1764
2367
|
inline_prompt?: {
|
|
1765
2368
|
options?: {
|
|
1766
2369
|
params?: z.objectOutputType<{
|
|
1767
2370
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2371
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2372
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1768
2373
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1769
2374
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
1770
2375
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1847,10 +2452,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1847
2452
|
}>]>>;
|
|
1848
2453
|
n: z.ZodOptional<z.ZodNumber>;
|
|
1849
2454
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1850
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
2455
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
1851
2456
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1852
2457
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1853
2458
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2459
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2460
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1854
2461
|
max_tokens: z.ZodNumber;
|
|
1855
2462
|
temperature: z.ZodNumber;
|
|
1856
2463
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1859,24 +2466,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1859
2466
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
1860
2467
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1861
2468
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2469
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2470
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1862
2471
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1863
2472
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1864
2473
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
1865
2474
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1866
2475
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1867
2476
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2477
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2478
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1868
2479
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1869
2480
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1870
2481
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
1871
2482
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2483
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2484
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1872
2485
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1873
2486
|
model?: string | undefined;
|
|
1874
2487
|
position?: string | undefined;
|
|
2488
|
+
endpoint_name?: string | null | undefined;
|
|
1875
2489
|
} | null | undefined;
|
|
1876
2490
|
prompt?: {
|
|
1877
|
-
type: "completion";
|
|
1878
|
-
content: string;
|
|
1879
|
-
} | {
|
|
1880
2491
|
type: "chat";
|
|
1881
2492
|
messages: ({
|
|
1882
2493
|
role: "system";
|
|
@@ -1885,6 +2496,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1885
2496
|
text: string;
|
|
1886
2497
|
cache_control?: {
|
|
1887
2498
|
type: "ephemeral";
|
|
2499
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1888
2500
|
} | undefined;
|
|
1889
2501
|
}[];
|
|
1890
2502
|
name?: string | undefined;
|
|
@@ -1895,6 +2507,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1895
2507
|
text: string;
|
|
1896
2508
|
cache_control?: {
|
|
1897
2509
|
type: "ephemeral";
|
|
2510
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1898
2511
|
} | undefined;
|
|
1899
2512
|
} | {
|
|
1900
2513
|
type: "image_url";
|
|
@@ -1902,6 +2515,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1902
2515
|
url: string;
|
|
1903
2516
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1904
2517
|
};
|
|
2518
|
+
cache_control?: {
|
|
2519
|
+
type: "ephemeral";
|
|
2520
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2521
|
+
} | undefined;
|
|
2522
|
+
} | {
|
|
2523
|
+
type: "file";
|
|
2524
|
+
file: {
|
|
2525
|
+
filename?: string | undefined;
|
|
2526
|
+
file_data?: string | undefined;
|
|
2527
|
+
file_id?: string | undefined;
|
|
2528
|
+
};
|
|
2529
|
+
cache_control?: {
|
|
2530
|
+
type: "ephemeral";
|
|
2531
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2532
|
+
} | undefined;
|
|
1905
2533
|
})[];
|
|
1906
2534
|
name?: string | undefined;
|
|
1907
2535
|
} | {
|
|
@@ -1916,6 +2544,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1916
2544
|
text: string;
|
|
1917
2545
|
cache_control?: {
|
|
1918
2546
|
type: "ephemeral";
|
|
2547
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1919
2548
|
} | undefined;
|
|
1920
2549
|
}[] | null | undefined;
|
|
1921
2550
|
tool_calls?: {
|
|
@@ -1930,6 +2559,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1930
2559
|
id?: string | undefined;
|
|
1931
2560
|
content?: string | undefined;
|
|
1932
2561
|
}[] | undefined;
|
|
2562
|
+
reasoning_signature?: string | undefined;
|
|
1933
2563
|
} | {
|
|
1934
2564
|
role: "tool";
|
|
1935
2565
|
content: string | {
|
|
@@ -1937,6 +2567,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1937
2567
|
text: string;
|
|
1938
2568
|
cache_control?: {
|
|
1939
2569
|
type: "ephemeral";
|
|
2570
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1940
2571
|
} | undefined;
|
|
1941
2572
|
}[];
|
|
1942
2573
|
tool_call_id: string;
|
|
@@ -1951,6 +2582,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1951
2582
|
text: string;
|
|
1952
2583
|
cache_control?: {
|
|
1953
2584
|
type: "ephemeral";
|
|
2585
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1954
2586
|
} | undefined;
|
|
1955
2587
|
}[];
|
|
1956
2588
|
name?: string | undefined;
|
|
@@ -1959,6 +2591,18 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1959
2591
|
content?: string | null | undefined;
|
|
1960
2592
|
})[];
|
|
1961
2593
|
tools?: string | undefined;
|
|
2594
|
+
} | {
|
|
2595
|
+
type: "completion";
|
|
2596
|
+
content: string;
|
|
2597
|
+
} | null | undefined;
|
|
2598
|
+
preprocessor?: {
|
|
2599
|
+
id: string;
|
|
2600
|
+
type: "function";
|
|
2601
|
+
version?: string | undefined;
|
|
2602
|
+
} | {
|
|
2603
|
+
type: "global";
|
|
2604
|
+
name: string;
|
|
2605
|
+
function_type: "preprocessor";
|
|
1962
2606
|
} | null | undefined;
|
|
1963
2607
|
origin?: {
|
|
1964
2608
|
project_id?: string | undefined;
|
|
@@ -1968,26 +2612,45 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1968
2612
|
parser?: {
|
|
1969
2613
|
type: "llm_classifier";
|
|
1970
2614
|
use_cot: boolean;
|
|
1971
|
-
choice_scores
|
|
2615
|
+
choice_scores?: Record<string, number> | undefined;
|
|
2616
|
+
choice?: string[] | undefined;
|
|
2617
|
+
allow_no_match?: boolean | undefined;
|
|
2618
|
+
allow_skip?: boolean | undefined;
|
|
1972
2619
|
} | null | undefined;
|
|
1973
2620
|
tool_functions?: ({
|
|
1974
2621
|
id: string;
|
|
1975
2622
|
type: "function";
|
|
2623
|
+
version?: string | undefined;
|
|
1976
2624
|
} | {
|
|
1977
2625
|
type: "global";
|
|
1978
2626
|
name: string;
|
|
2627
|
+
function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
|
|
1979
2628
|
})[] | null | undefined;
|
|
2629
|
+
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
2630
|
+
mcp?: Record<string, {
|
|
2631
|
+
id: string;
|
|
2632
|
+
type: "id";
|
|
2633
|
+
is_disabled?: boolean | undefined;
|
|
2634
|
+
enabled_tools?: string[] | null | undefined;
|
|
2635
|
+
} | {
|
|
2636
|
+
type: "url";
|
|
2637
|
+
url: string;
|
|
2638
|
+
is_disabled?: boolean | undefined;
|
|
2639
|
+
enabled_tools?: string[] | null | undefined;
|
|
2640
|
+
}> | null | undefined;
|
|
1980
2641
|
} | undefined;
|
|
1981
2642
|
}, {
|
|
1982
2643
|
inline_function: {} & {
|
|
1983
2644
|
[k: string]: unknown;
|
|
1984
2645
|
};
|
|
1985
2646
|
name?: string | null | undefined;
|
|
1986
|
-
function_type?: "
|
|
2647
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
1987
2648
|
inline_prompt?: {
|
|
1988
2649
|
options?: {
|
|
1989
2650
|
params?: z.objectInputType<{
|
|
1990
2651
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2652
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2653
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
1991
2654
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1992
2655
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
1993
2656
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2070,10 +2733,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2070
2733
|
}>]>>;
|
|
2071
2734
|
n: z.ZodOptional<z.ZodNumber>;
|
|
2072
2735
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2073
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
2736
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
2074
2737
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
2075
2738
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2076
2739
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2740
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2741
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
2077
2742
|
max_tokens: z.ZodNumber;
|
|
2078
2743
|
temperature: z.ZodNumber;
|
|
2079
2744
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2082,24 +2747,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2082
2747
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
2083
2748
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2084
2749
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2750
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2751
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
2085
2752
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
2086
2753
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2087
2754
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
2088
2755
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
2089
2756
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2090
2757
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2758
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2759
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
2091
2760
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
2092
2761
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
2093
2762
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2094
2763
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2764
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2765
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
2095
2766
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2096
2767
|
model?: string | undefined;
|
|
2097
2768
|
position?: string | undefined;
|
|
2769
|
+
endpoint_name?: string | null | undefined;
|
|
2098
2770
|
} | null | undefined;
|
|
2099
2771
|
prompt?: {
|
|
2100
|
-
type: "completion";
|
|
2101
|
-
content: string;
|
|
2102
|
-
} | {
|
|
2103
2772
|
type: "chat";
|
|
2104
2773
|
messages: ({
|
|
2105
2774
|
role: "system";
|
|
@@ -2108,6 +2777,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2108
2777
|
text?: string | undefined;
|
|
2109
2778
|
cache_control?: {
|
|
2110
2779
|
type: "ephemeral";
|
|
2780
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2111
2781
|
} | undefined;
|
|
2112
2782
|
}[];
|
|
2113
2783
|
name?: string | undefined;
|
|
@@ -2118,6 +2788,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2118
2788
|
text?: string | undefined;
|
|
2119
2789
|
cache_control?: {
|
|
2120
2790
|
type: "ephemeral";
|
|
2791
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2121
2792
|
} | undefined;
|
|
2122
2793
|
} | {
|
|
2123
2794
|
type: "image_url";
|
|
@@ -2125,6 +2796,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2125
2796
|
url: string;
|
|
2126
2797
|
detail?: "auto" | "low" | "high" | undefined;
|
|
2127
2798
|
};
|
|
2799
|
+
cache_control?: {
|
|
2800
|
+
type: "ephemeral";
|
|
2801
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2802
|
+
} | undefined;
|
|
2803
|
+
} | {
|
|
2804
|
+
type: "file";
|
|
2805
|
+
file: {
|
|
2806
|
+
filename?: string | undefined;
|
|
2807
|
+
file_data?: string | undefined;
|
|
2808
|
+
file_id?: string | undefined;
|
|
2809
|
+
};
|
|
2810
|
+
cache_control?: {
|
|
2811
|
+
type: "ephemeral";
|
|
2812
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2813
|
+
} | undefined;
|
|
2128
2814
|
})[];
|
|
2129
2815
|
name?: string | undefined;
|
|
2130
2816
|
} | {
|
|
@@ -2139,6 +2825,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2139
2825
|
text?: string | undefined;
|
|
2140
2826
|
cache_control?: {
|
|
2141
2827
|
type: "ephemeral";
|
|
2828
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2142
2829
|
} | undefined;
|
|
2143
2830
|
}[] | null | undefined;
|
|
2144
2831
|
tool_calls?: {
|
|
@@ -2153,6 +2840,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2153
2840
|
id?: string | undefined;
|
|
2154
2841
|
content?: string | undefined;
|
|
2155
2842
|
}[] | undefined;
|
|
2843
|
+
reasoning_signature?: string | undefined;
|
|
2156
2844
|
} | {
|
|
2157
2845
|
role: "tool";
|
|
2158
2846
|
content: string | {
|
|
@@ -2160,6 +2848,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2160
2848
|
text?: string | undefined;
|
|
2161
2849
|
cache_control?: {
|
|
2162
2850
|
type: "ephemeral";
|
|
2851
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2163
2852
|
} | undefined;
|
|
2164
2853
|
}[];
|
|
2165
2854
|
tool_call_id?: string | undefined;
|
|
@@ -2174,6 +2863,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2174
2863
|
text?: string | undefined;
|
|
2175
2864
|
cache_control?: {
|
|
2176
2865
|
type: "ephemeral";
|
|
2866
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2177
2867
|
} | undefined;
|
|
2178
2868
|
}[];
|
|
2179
2869
|
name?: string | undefined;
|
|
@@ -2182,6 +2872,18 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2182
2872
|
content?: string | null | undefined;
|
|
2183
2873
|
})[];
|
|
2184
2874
|
tools?: string | undefined;
|
|
2875
|
+
} | {
|
|
2876
|
+
type: "completion";
|
|
2877
|
+
content: string;
|
|
2878
|
+
} | null | undefined;
|
|
2879
|
+
preprocessor?: {
|
|
2880
|
+
id: string;
|
|
2881
|
+
type: "function";
|
|
2882
|
+
version?: string | undefined;
|
|
2883
|
+
} | {
|
|
2884
|
+
type: "global";
|
|
2885
|
+
name: string;
|
|
2886
|
+
function_type?: "preprocessor" | undefined;
|
|
2185
2887
|
} | null | undefined;
|
|
2186
2888
|
origin?: {
|
|
2187
2889
|
project_id?: string | undefined;
|
|
@@ -2191,28 +2893,36 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2191
2893
|
parser?: {
|
|
2192
2894
|
type: "llm_classifier";
|
|
2193
2895
|
use_cot: boolean;
|
|
2194
|
-
choice_scores
|
|
2896
|
+
choice_scores?: Record<string, number> | undefined;
|
|
2897
|
+
choice?: string[] | undefined;
|
|
2898
|
+
allow_no_match?: boolean | undefined;
|
|
2899
|
+
allow_skip?: boolean | undefined;
|
|
2195
2900
|
} | null | undefined;
|
|
2196
2901
|
tool_functions?: ({
|
|
2197
2902
|
id: string;
|
|
2198
2903
|
type: "function";
|
|
2904
|
+
version?: string | undefined;
|
|
2199
2905
|
} | {
|
|
2200
2906
|
type: "global";
|
|
2201
2907
|
name: string;
|
|
2908
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
2202
2909
|
})[] | null | undefined;
|
|
2910
|
+
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
2911
|
+
mcp?: Record<string, {
|
|
2912
|
+
id: string;
|
|
2913
|
+
type: "id";
|
|
2914
|
+
is_disabled?: boolean | undefined;
|
|
2915
|
+
enabled_tools?: string[] | null | undefined;
|
|
2916
|
+
} | {
|
|
2917
|
+
type: "url";
|
|
2918
|
+
url: string;
|
|
2919
|
+
is_disabled?: boolean | undefined;
|
|
2920
|
+
enabled_tools?: string[] | null | undefined;
|
|
2921
|
+
}> | null | undefined;
|
|
2203
2922
|
} | undefined;
|
|
2204
2923
|
}>, z.ZodObject<{
|
|
2205
2924
|
inline_prompt: z.ZodObject<{
|
|
2206
2925
|
prompt: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2207
|
-
type: z.ZodLiteral<"completion">;
|
|
2208
|
-
content: z.ZodString;
|
|
2209
|
-
}, "strip", z.ZodTypeAny, {
|
|
2210
|
-
type: "completion";
|
|
2211
|
-
content: string;
|
|
2212
|
-
}, {
|
|
2213
|
-
type: "completion";
|
|
2214
|
-
content: string;
|
|
2215
|
-
}>, z.ZodObject<{
|
|
2216
2926
|
type: z.ZodLiteral<"chat">;
|
|
2217
2927
|
messages: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2218
2928
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
@@ -2220,22 +2930,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2220
2930
|
type: z.ZodLiteral<"text">;
|
|
2221
2931
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2222
2932
|
type: z.ZodLiteral<"ephemeral">;
|
|
2933
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
2223
2934
|
}, "strip", z.ZodTypeAny, {
|
|
2224
2935
|
type: "ephemeral";
|
|
2936
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2225
2937
|
}, {
|
|
2226
2938
|
type: "ephemeral";
|
|
2939
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2227
2940
|
}>>;
|
|
2228
2941
|
}, "strip", z.ZodTypeAny, {
|
|
2229
2942
|
type: "text";
|
|
2230
2943
|
text: string;
|
|
2231
2944
|
cache_control?: {
|
|
2232
2945
|
type: "ephemeral";
|
|
2946
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2233
2947
|
} | undefined;
|
|
2234
2948
|
}, {
|
|
2235
2949
|
type: "text";
|
|
2236
2950
|
text?: string | undefined;
|
|
2237
2951
|
cache_control?: {
|
|
2238
2952
|
type: "ephemeral";
|
|
2953
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2239
2954
|
} | undefined;
|
|
2240
2955
|
}>, "many">]>;
|
|
2241
2956
|
role: z.ZodLiteral<"system">;
|
|
@@ -2247,6 +2962,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2247
2962
|
text: string;
|
|
2248
2963
|
cache_control?: {
|
|
2249
2964
|
type: "ephemeral";
|
|
2965
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2250
2966
|
} | undefined;
|
|
2251
2967
|
}[];
|
|
2252
2968
|
name?: string | undefined;
|
|
@@ -2257,6 +2973,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2257
2973
|
text?: string | undefined;
|
|
2258
2974
|
cache_control?: {
|
|
2259
2975
|
type: "ephemeral";
|
|
2976
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2260
2977
|
} | undefined;
|
|
2261
2978
|
}[];
|
|
2262
2979
|
name?: string | undefined;
|
|
@@ -2266,22 +2983,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2266
2983
|
type: z.ZodLiteral<"text">;
|
|
2267
2984
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2268
2985
|
type: z.ZodLiteral<"ephemeral">;
|
|
2986
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
2269
2987
|
}, "strip", z.ZodTypeAny, {
|
|
2270
2988
|
type: "ephemeral";
|
|
2989
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2271
2990
|
}, {
|
|
2272
2991
|
type: "ephemeral";
|
|
2992
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2273
2993
|
}>>;
|
|
2274
2994
|
}, "strip", z.ZodTypeAny, {
|
|
2275
2995
|
type: "text";
|
|
2276
2996
|
text: string;
|
|
2277
2997
|
cache_control?: {
|
|
2278
2998
|
type: "ephemeral";
|
|
2999
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2279
3000
|
} | undefined;
|
|
2280
3001
|
}, {
|
|
2281
3002
|
type: "text";
|
|
2282
3003
|
text?: string | undefined;
|
|
2283
3004
|
cache_control?: {
|
|
2284
3005
|
type: "ephemeral";
|
|
3006
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2285
3007
|
} | undefined;
|
|
2286
3008
|
}>, z.ZodObject<{
|
|
2287
3009
|
image_url: z.ZodObject<{
|
|
@@ -2295,18 +3017,83 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2295
3017
|
detail?: "auto" | "low" | "high" | undefined;
|
|
2296
3018
|
}>;
|
|
2297
3019
|
type: z.ZodLiteral<"image_url">;
|
|
3020
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3021
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
3022
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
3023
|
+
}, "strip", z.ZodTypeAny, {
|
|
3024
|
+
type: "ephemeral";
|
|
3025
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3026
|
+
}, {
|
|
3027
|
+
type: "ephemeral";
|
|
3028
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3029
|
+
}>>;
|
|
2298
3030
|
}, "strip", z.ZodTypeAny, {
|
|
2299
3031
|
type: "image_url";
|
|
2300
3032
|
image_url: {
|
|
2301
3033
|
url: string;
|
|
2302
3034
|
detail?: "auto" | "low" | "high" | undefined;
|
|
2303
3035
|
};
|
|
3036
|
+
cache_control?: {
|
|
3037
|
+
type: "ephemeral";
|
|
3038
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3039
|
+
} | undefined;
|
|
2304
3040
|
}, {
|
|
2305
3041
|
type: "image_url";
|
|
2306
3042
|
image_url: {
|
|
2307
3043
|
url: string;
|
|
2308
3044
|
detail?: "auto" | "low" | "high" | undefined;
|
|
2309
3045
|
};
|
|
3046
|
+
cache_control?: {
|
|
3047
|
+
type: "ephemeral";
|
|
3048
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3049
|
+
} | undefined;
|
|
3050
|
+
}>, z.ZodObject<{
|
|
3051
|
+
file: z.ZodObject<{
|
|
3052
|
+
file_data: z.ZodOptional<z.ZodString>;
|
|
3053
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
3054
|
+
file_id: z.ZodOptional<z.ZodString>;
|
|
3055
|
+
}, "strip", z.ZodTypeAny, {
|
|
3056
|
+
filename?: string | undefined;
|
|
3057
|
+
file_data?: string | undefined;
|
|
3058
|
+
file_id?: string | undefined;
|
|
3059
|
+
}, {
|
|
3060
|
+
filename?: string | undefined;
|
|
3061
|
+
file_data?: string | undefined;
|
|
3062
|
+
file_id?: string | undefined;
|
|
3063
|
+
}>;
|
|
3064
|
+
type: z.ZodLiteral<"file">;
|
|
3065
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3066
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
3067
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
3068
|
+
}, "strip", z.ZodTypeAny, {
|
|
3069
|
+
type: "ephemeral";
|
|
3070
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3071
|
+
}, {
|
|
3072
|
+
type: "ephemeral";
|
|
3073
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3074
|
+
}>>;
|
|
3075
|
+
}, "strip", z.ZodTypeAny, {
|
|
3076
|
+
type: "file";
|
|
3077
|
+
file: {
|
|
3078
|
+
filename?: string | undefined;
|
|
3079
|
+
file_data?: string | undefined;
|
|
3080
|
+
file_id?: string | undefined;
|
|
3081
|
+
};
|
|
3082
|
+
cache_control?: {
|
|
3083
|
+
type: "ephemeral";
|
|
3084
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3085
|
+
} | undefined;
|
|
3086
|
+
}, {
|
|
3087
|
+
type: "file";
|
|
3088
|
+
file: {
|
|
3089
|
+
filename?: string | undefined;
|
|
3090
|
+
file_data?: string | undefined;
|
|
3091
|
+
file_id?: string | undefined;
|
|
3092
|
+
};
|
|
3093
|
+
cache_control?: {
|
|
3094
|
+
type: "ephemeral";
|
|
3095
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3096
|
+
} | undefined;
|
|
2310
3097
|
}>]>, "many">]>;
|
|
2311
3098
|
role: z.ZodLiteral<"user">;
|
|
2312
3099
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2317,6 +3104,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2317
3104
|
text: string;
|
|
2318
3105
|
cache_control?: {
|
|
2319
3106
|
type: "ephemeral";
|
|
3107
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2320
3108
|
} | undefined;
|
|
2321
3109
|
} | {
|
|
2322
3110
|
type: "image_url";
|
|
@@ -2324,6 +3112,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2324
3112
|
url: string;
|
|
2325
3113
|
detail?: "auto" | "low" | "high" | undefined;
|
|
2326
3114
|
};
|
|
3115
|
+
cache_control?: {
|
|
3116
|
+
type: "ephemeral";
|
|
3117
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3118
|
+
} | undefined;
|
|
3119
|
+
} | {
|
|
3120
|
+
type: "file";
|
|
3121
|
+
file: {
|
|
3122
|
+
filename?: string | undefined;
|
|
3123
|
+
file_data?: string | undefined;
|
|
3124
|
+
file_id?: string | undefined;
|
|
3125
|
+
};
|
|
3126
|
+
cache_control?: {
|
|
3127
|
+
type: "ephemeral";
|
|
3128
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3129
|
+
} | undefined;
|
|
2327
3130
|
})[];
|
|
2328
3131
|
name?: string | undefined;
|
|
2329
3132
|
}, {
|
|
@@ -2333,6 +3136,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2333
3136
|
text?: string | undefined;
|
|
2334
3137
|
cache_control?: {
|
|
2335
3138
|
type: "ephemeral";
|
|
3139
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2336
3140
|
} | undefined;
|
|
2337
3141
|
} | {
|
|
2338
3142
|
type: "image_url";
|
|
@@ -2340,6 +3144,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2340
3144
|
url: string;
|
|
2341
3145
|
detail?: "auto" | "low" | "high" | undefined;
|
|
2342
3146
|
};
|
|
3147
|
+
cache_control?: {
|
|
3148
|
+
type: "ephemeral";
|
|
3149
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3150
|
+
} | undefined;
|
|
3151
|
+
} | {
|
|
3152
|
+
type: "file";
|
|
3153
|
+
file: {
|
|
3154
|
+
filename?: string | undefined;
|
|
3155
|
+
file_data?: string | undefined;
|
|
3156
|
+
file_id?: string | undefined;
|
|
3157
|
+
};
|
|
3158
|
+
cache_control?: {
|
|
3159
|
+
type: "ephemeral";
|
|
3160
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3161
|
+
} | undefined;
|
|
2343
3162
|
})[];
|
|
2344
3163
|
name?: string | undefined;
|
|
2345
3164
|
}>, z.ZodObject<{
|
|
@@ -2349,22 +3168,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2349
3168
|
type: z.ZodLiteral<"text">;
|
|
2350
3169
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2351
3170
|
type: z.ZodLiteral<"ephemeral">;
|
|
3171
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
2352
3172
|
}, "strip", z.ZodTypeAny, {
|
|
2353
3173
|
type: "ephemeral";
|
|
3174
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2354
3175
|
}, {
|
|
2355
3176
|
type: "ephemeral";
|
|
3177
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2356
3178
|
}>>;
|
|
2357
3179
|
}, "strip", z.ZodTypeAny, {
|
|
2358
3180
|
type: "text";
|
|
2359
3181
|
text: string;
|
|
2360
3182
|
cache_control?: {
|
|
2361
3183
|
type: "ephemeral";
|
|
3184
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2362
3185
|
} | undefined;
|
|
2363
3186
|
}, {
|
|
2364
3187
|
type: "text";
|
|
2365
3188
|
text?: string | undefined;
|
|
2366
3189
|
cache_control?: {
|
|
2367
3190
|
type: "ephemeral";
|
|
3191
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2368
3192
|
} | undefined;
|
|
2369
3193
|
}>, "many">, z.ZodNull]>>;
|
|
2370
3194
|
function_call: z.ZodOptional<z.ZodObject<{
|
|
@@ -2416,6 +3240,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2416
3240
|
id?: string | undefined;
|
|
2417
3241
|
content?: string | undefined;
|
|
2418
3242
|
}>, "many">>;
|
|
3243
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
2419
3244
|
}, "strip", z.ZodTypeAny, {
|
|
2420
3245
|
role: "assistant";
|
|
2421
3246
|
name?: string | undefined;
|
|
@@ -2428,6 +3253,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2428
3253
|
text: string;
|
|
2429
3254
|
cache_control?: {
|
|
2430
3255
|
type: "ephemeral";
|
|
3256
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2431
3257
|
} | undefined;
|
|
2432
3258
|
}[] | null | undefined;
|
|
2433
3259
|
tool_calls?: {
|
|
@@ -2442,6 +3268,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2442
3268
|
id?: string | undefined;
|
|
2443
3269
|
content?: string | undefined;
|
|
2444
3270
|
}[] | undefined;
|
|
3271
|
+
reasoning_signature?: string | undefined;
|
|
2445
3272
|
}, {
|
|
2446
3273
|
role: "assistant";
|
|
2447
3274
|
name?: string | undefined;
|
|
@@ -2454,6 +3281,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2454
3281
|
text?: string | undefined;
|
|
2455
3282
|
cache_control?: {
|
|
2456
3283
|
type: "ephemeral";
|
|
3284
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2457
3285
|
} | undefined;
|
|
2458
3286
|
}[] | null | undefined;
|
|
2459
3287
|
tool_calls?: {
|
|
@@ -2468,28 +3296,34 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2468
3296
|
id?: string | undefined;
|
|
2469
3297
|
content?: string | undefined;
|
|
2470
3298
|
}[] | undefined;
|
|
3299
|
+
reasoning_signature?: string | undefined;
|
|
2471
3300
|
}>, z.ZodObject<{
|
|
2472
3301
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
2473
3302
|
text: z.ZodDefault<z.ZodString>;
|
|
2474
3303
|
type: z.ZodLiteral<"text">;
|
|
2475
3304
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2476
3305
|
type: z.ZodLiteral<"ephemeral">;
|
|
3306
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
2477
3307
|
}, "strip", z.ZodTypeAny, {
|
|
2478
3308
|
type: "ephemeral";
|
|
3309
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2479
3310
|
}, {
|
|
2480
3311
|
type: "ephemeral";
|
|
3312
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2481
3313
|
}>>;
|
|
2482
3314
|
}, "strip", z.ZodTypeAny, {
|
|
2483
3315
|
type: "text";
|
|
2484
3316
|
text: string;
|
|
2485
3317
|
cache_control?: {
|
|
2486
3318
|
type: "ephemeral";
|
|
3319
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2487
3320
|
} | undefined;
|
|
2488
3321
|
}, {
|
|
2489
3322
|
type: "text";
|
|
2490
3323
|
text?: string | undefined;
|
|
2491
3324
|
cache_control?: {
|
|
2492
3325
|
type: "ephemeral";
|
|
3326
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2493
3327
|
} | undefined;
|
|
2494
3328
|
}>, "many">]>;
|
|
2495
3329
|
role: z.ZodLiteral<"tool">;
|
|
@@ -2501,6 +3335,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2501
3335
|
text: string;
|
|
2502
3336
|
cache_control?: {
|
|
2503
3337
|
type: "ephemeral";
|
|
3338
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2504
3339
|
} | undefined;
|
|
2505
3340
|
}[];
|
|
2506
3341
|
tool_call_id: string;
|
|
@@ -2511,6 +3346,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2511
3346
|
text?: string | undefined;
|
|
2512
3347
|
cache_control?: {
|
|
2513
3348
|
type: "ephemeral";
|
|
3349
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2514
3350
|
} | undefined;
|
|
2515
3351
|
}[];
|
|
2516
3352
|
tool_call_id?: string | undefined;
|
|
@@ -2532,22 +3368,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2532
3368
|
type: z.ZodLiteral<"text">;
|
|
2533
3369
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2534
3370
|
type: z.ZodLiteral<"ephemeral">;
|
|
3371
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
2535
3372
|
}, "strip", z.ZodTypeAny, {
|
|
2536
3373
|
type: "ephemeral";
|
|
3374
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2537
3375
|
}, {
|
|
2538
3376
|
type: "ephemeral";
|
|
3377
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2539
3378
|
}>>;
|
|
2540
3379
|
}, "strip", z.ZodTypeAny, {
|
|
2541
3380
|
type: "text";
|
|
2542
3381
|
text: string;
|
|
2543
3382
|
cache_control?: {
|
|
2544
3383
|
type: "ephemeral";
|
|
3384
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2545
3385
|
} | undefined;
|
|
2546
3386
|
}, {
|
|
2547
3387
|
type: "text";
|
|
2548
3388
|
text?: string | undefined;
|
|
2549
3389
|
cache_control?: {
|
|
2550
3390
|
type: "ephemeral";
|
|
3391
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2551
3392
|
} | undefined;
|
|
2552
3393
|
}>, "many">]>;
|
|
2553
3394
|
role: z.ZodLiteral<"developer">;
|
|
@@ -2559,6 +3400,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2559
3400
|
text: string;
|
|
2560
3401
|
cache_control?: {
|
|
2561
3402
|
type: "ephemeral";
|
|
3403
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2562
3404
|
} | undefined;
|
|
2563
3405
|
}[];
|
|
2564
3406
|
name?: string | undefined;
|
|
@@ -2569,6 +3411,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2569
3411
|
text?: string | undefined;
|
|
2570
3412
|
cache_control?: {
|
|
2571
3413
|
type: "ephemeral";
|
|
3414
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2572
3415
|
} | undefined;
|
|
2573
3416
|
}[];
|
|
2574
3417
|
name?: string | undefined;
|
|
@@ -2592,6 +3435,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2592
3435
|
text: string;
|
|
2593
3436
|
cache_control?: {
|
|
2594
3437
|
type: "ephemeral";
|
|
3438
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2595
3439
|
} | undefined;
|
|
2596
3440
|
}[];
|
|
2597
3441
|
name?: string | undefined;
|
|
@@ -2602,6 +3446,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2602
3446
|
text: string;
|
|
2603
3447
|
cache_control?: {
|
|
2604
3448
|
type: "ephemeral";
|
|
3449
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2605
3450
|
} | undefined;
|
|
2606
3451
|
} | {
|
|
2607
3452
|
type: "image_url";
|
|
@@ -2609,6 +3454,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2609
3454
|
url: string;
|
|
2610
3455
|
detail?: "auto" | "low" | "high" | undefined;
|
|
2611
3456
|
};
|
|
3457
|
+
cache_control?: {
|
|
3458
|
+
type: "ephemeral";
|
|
3459
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3460
|
+
} | undefined;
|
|
3461
|
+
} | {
|
|
3462
|
+
type: "file";
|
|
3463
|
+
file: {
|
|
3464
|
+
filename?: string | undefined;
|
|
3465
|
+
file_data?: string | undefined;
|
|
3466
|
+
file_id?: string | undefined;
|
|
3467
|
+
};
|
|
3468
|
+
cache_control?: {
|
|
3469
|
+
type: "ephemeral";
|
|
3470
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3471
|
+
} | undefined;
|
|
2612
3472
|
})[];
|
|
2613
3473
|
name?: string | undefined;
|
|
2614
3474
|
} | {
|
|
@@ -2623,6 +3483,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2623
3483
|
text: string;
|
|
2624
3484
|
cache_control?: {
|
|
2625
3485
|
type: "ephemeral";
|
|
3486
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2626
3487
|
} | undefined;
|
|
2627
3488
|
}[] | null | undefined;
|
|
2628
3489
|
tool_calls?: {
|
|
@@ -2637,6 +3498,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2637
3498
|
id?: string | undefined;
|
|
2638
3499
|
content?: string | undefined;
|
|
2639
3500
|
}[] | undefined;
|
|
3501
|
+
reasoning_signature?: string | undefined;
|
|
2640
3502
|
} | {
|
|
2641
3503
|
role: "tool";
|
|
2642
3504
|
content: string | {
|
|
@@ -2644,6 +3506,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2644
3506
|
text: string;
|
|
2645
3507
|
cache_control?: {
|
|
2646
3508
|
type: "ephemeral";
|
|
3509
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2647
3510
|
} | undefined;
|
|
2648
3511
|
}[];
|
|
2649
3512
|
tool_call_id: string;
|
|
@@ -2658,6 +3521,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2658
3521
|
text: string;
|
|
2659
3522
|
cache_control?: {
|
|
2660
3523
|
type: "ephemeral";
|
|
3524
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2661
3525
|
} | undefined;
|
|
2662
3526
|
}[];
|
|
2663
3527
|
name?: string | undefined;
|
|
@@ -2675,6 +3539,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2675
3539
|
text?: string | undefined;
|
|
2676
3540
|
cache_control?: {
|
|
2677
3541
|
type: "ephemeral";
|
|
3542
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2678
3543
|
} | undefined;
|
|
2679
3544
|
}[];
|
|
2680
3545
|
name?: string | undefined;
|
|
@@ -2685,6 +3550,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2685
3550
|
text?: string | undefined;
|
|
2686
3551
|
cache_control?: {
|
|
2687
3552
|
type: "ephemeral";
|
|
3553
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2688
3554
|
} | undefined;
|
|
2689
3555
|
} | {
|
|
2690
3556
|
type: "image_url";
|
|
@@ -2692,6 +3558,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2692
3558
|
url: string;
|
|
2693
3559
|
detail?: "auto" | "low" | "high" | undefined;
|
|
2694
3560
|
};
|
|
3561
|
+
cache_control?: {
|
|
3562
|
+
type: "ephemeral";
|
|
3563
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3564
|
+
} | undefined;
|
|
3565
|
+
} | {
|
|
3566
|
+
type: "file";
|
|
3567
|
+
file: {
|
|
3568
|
+
filename?: string | undefined;
|
|
3569
|
+
file_data?: string | undefined;
|
|
3570
|
+
file_id?: string | undefined;
|
|
3571
|
+
};
|
|
3572
|
+
cache_control?: {
|
|
3573
|
+
type: "ephemeral";
|
|
3574
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3575
|
+
} | undefined;
|
|
2695
3576
|
})[];
|
|
2696
3577
|
name?: string | undefined;
|
|
2697
3578
|
} | {
|
|
@@ -2706,6 +3587,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2706
3587
|
text?: string | undefined;
|
|
2707
3588
|
cache_control?: {
|
|
2708
3589
|
type: "ephemeral";
|
|
3590
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2709
3591
|
} | undefined;
|
|
2710
3592
|
}[] | null | undefined;
|
|
2711
3593
|
tool_calls?: {
|
|
@@ -2720,6 +3602,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2720
3602
|
id?: string | undefined;
|
|
2721
3603
|
content?: string | undefined;
|
|
2722
3604
|
}[] | undefined;
|
|
3605
|
+
reasoning_signature?: string | undefined;
|
|
2723
3606
|
} | {
|
|
2724
3607
|
role: "tool";
|
|
2725
3608
|
content: string | {
|
|
@@ -2727,6 +3610,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2727
3610
|
text?: string | undefined;
|
|
2728
3611
|
cache_control?: {
|
|
2729
3612
|
type: "ephemeral";
|
|
3613
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2730
3614
|
} | undefined;
|
|
2731
3615
|
}[];
|
|
2732
3616
|
tool_call_id?: string | undefined;
|
|
@@ -2741,6 +3625,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2741
3625
|
text?: string | undefined;
|
|
2742
3626
|
cache_control?: {
|
|
2743
3627
|
type: "ephemeral";
|
|
3628
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2744
3629
|
} | undefined;
|
|
2745
3630
|
}[];
|
|
2746
3631
|
name?: string | undefined;
|
|
@@ -2749,11 +3634,22 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2749
3634
|
content?: string | null | undefined;
|
|
2750
3635
|
})[];
|
|
2751
3636
|
tools?: string | undefined;
|
|
3637
|
+
}>, z.ZodObject<{
|
|
3638
|
+
type: z.ZodLiteral<"completion">;
|
|
3639
|
+
content: z.ZodString;
|
|
3640
|
+
}, "strip", z.ZodTypeAny, {
|
|
3641
|
+
type: "completion";
|
|
3642
|
+
content: string;
|
|
3643
|
+
}, {
|
|
3644
|
+
type: "completion";
|
|
3645
|
+
content: string;
|
|
2752
3646
|
}>, z.ZodNull]>>;
|
|
2753
3647
|
options: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2754
3648
|
model: z.ZodOptional<z.ZodString>;
|
|
2755
3649
|
params: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2756
3650
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3651
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3652
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
2757
3653
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
2758
3654
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
2759
3655
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2836,10 +3732,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2836
3732
|
}>]>>;
|
|
2837
3733
|
n: z.ZodOptional<z.ZodNumber>;
|
|
2838
3734
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2839
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
3735
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
2840
3736
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
2841
3737
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2842
3738
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3739
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3740
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
2843
3741
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
2844
3742
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
2845
3743
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2922,10 +3820,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2922
3820
|
}>]>>;
|
|
2923
3821
|
n: z.ZodOptional<z.ZodNumber>;
|
|
2924
3822
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2925
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
3823
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
2926
3824
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
2927
3825
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2928
3826
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3827
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3828
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
2929
3829
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
2930
3830
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
2931
3831
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3008,10 +3908,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3008
3908
|
}>]>>;
|
|
3009
3909
|
n: z.ZodOptional<z.ZodNumber>;
|
|
3010
3910
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3011
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
3911
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
3012
3912
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
3013
3913
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
3014
3914
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3915
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3916
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3015
3917
|
max_tokens: z.ZodNumber;
|
|
3016
3918
|
temperature: z.ZodNumber;
|
|
3017
3919
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3020,6 +3922,8 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3020
3922
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
3021
3923
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3022
3924
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3925
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3926
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3023
3927
|
max_tokens: z.ZodNumber;
|
|
3024
3928
|
temperature: z.ZodNumber;
|
|
3025
3929
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3028,6 +3932,8 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3028
3932
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
3029
3933
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3030
3934
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3935
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3936
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3031
3937
|
max_tokens: z.ZodNumber;
|
|
3032
3938
|
temperature: z.ZodNumber;
|
|
3033
3939
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3036,45 +3942,66 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3036
3942
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
3037
3943
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
3038
3944
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3945
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3946
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3039
3947
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3040
3948
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3041
3949
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
3042
3950
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3043
3951
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3044
3952
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3953
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3954
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3045
3955
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3046
3956
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3047
3957
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
3048
3958
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3049
3959
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3050
3960
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3961
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3962
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3051
3963
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3052
3964
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3053
3965
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
3054
3966
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3055
3967
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
3056
3968
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3969
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3970
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3057
3971
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3058
3972
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3059
3973
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3060
3974
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3975
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3976
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3061
3977
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3062
3978
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3063
3979
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3064
3980
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3981
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3982
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3065
3983
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3066
3984
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3067
3985
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
3068
3986
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3987
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3988
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3069
3989
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3070
3990
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3991
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3992
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3071
3993
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3072
3994
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
3995
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3996
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3073
3997
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
3074
3998
|
position: z.ZodOptional<z.ZodString>;
|
|
3999
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
3075
4000
|
}, "strip", z.ZodTypeAny, {
|
|
3076
4001
|
params?: z.objectOutputType<{
|
|
3077
4002
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4003
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4004
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3078
4005
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3079
4006
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
3080
4007
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3157,10 +4084,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3157
4084
|
}>]>>;
|
|
3158
4085
|
n: z.ZodOptional<z.ZodNumber>;
|
|
3159
4086
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3160
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
4087
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
3161
4088
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
3162
4089
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3163
4090
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4091
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4092
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3164
4093
|
max_tokens: z.ZodNumber;
|
|
3165
4094
|
temperature: z.ZodNumber;
|
|
3166
4095
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3169,22 +4098,31 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3169
4098
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
3170
4099
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3171
4100
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4101
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4102
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3172
4103
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3173
4104
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3174
4105
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
3175
4106
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3176
4107
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3177
4108
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4109
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4110
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3178
4111
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3179
4112
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3180
4113
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3181
4114
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4115
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4116
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3182
4117
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3183
4118
|
model?: string | undefined;
|
|
3184
4119
|
position?: string | undefined;
|
|
4120
|
+
endpoint_name?: string | null | undefined;
|
|
3185
4121
|
}, {
|
|
3186
4122
|
params?: z.objectInputType<{
|
|
3187
4123
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4124
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4125
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3188
4126
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3189
4127
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
3190
4128
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3267,10 +4205,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3267
4205
|
}>]>>;
|
|
3268
4206
|
n: z.ZodOptional<z.ZodNumber>;
|
|
3269
4207
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3270
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
4208
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
3271
4209
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
3272
4210
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3273
4211
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4212
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4213
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3274
4214
|
max_tokens: z.ZodNumber;
|
|
3275
4215
|
temperature: z.ZodNumber;
|
|
3276
4216
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3279,52 +4219,131 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3279
4219
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
3280
4220
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3281
4221
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4222
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4223
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3282
4224
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3283
4225
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3284
4226
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
3285
4227
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3286
4228
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3287
4229
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4230
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4231
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3288
4232
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3289
4233
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3290
4234
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3291
4235
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4236
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4237
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3292
4238
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3293
4239
|
model?: string | undefined;
|
|
3294
4240
|
position?: string | undefined;
|
|
4241
|
+
endpoint_name?: string | null | undefined;
|
|
3295
4242
|
}>, z.ZodNull]>>;
|
|
3296
4243
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
3297
4244
|
type: z.ZodLiteral<"llm_classifier">;
|
|
3298
4245
|
use_cot: z.ZodBoolean;
|
|
3299
|
-
choice_scores: z.ZodRecord<z.ZodString, z.ZodNumber
|
|
4246
|
+
choice_scores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
4247
|
+
choice: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4248
|
+
allow_no_match: z.ZodOptional<z.ZodBoolean>;
|
|
4249
|
+
allow_skip: z.ZodOptional<z.ZodBoolean>;
|
|
3300
4250
|
}, "strip", z.ZodTypeAny, {
|
|
3301
4251
|
type: "llm_classifier";
|
|
3302
4252
|
use_cot: boolean;
|
|
3303
|
-
choice_scores
|
|
4253
|
+
choice_scores?: Record<string, number> | undefined;
|
|
4254
|
+
choice?: string[] | undefined;
|
|
4255
|
+
allow_no_match?: boolean | undefined;
|
|
4256
|
+
allow_skip?: boolean | undefined;
|
|
3304
4257
|
}, {
|
|
3305
4258
|
type: "llm_classifier";
|
|
3306
4259
|
use_cot: boolean;
|
|
3307
|
-
choice_scores
|
|
4260
|
+
choice_scores?: Record<string, number> | undefined;
|
|
4261
|
+
choice?: string[] | undefined;
|
|
4262
|
+
allow_no_match?: boolean | undefined;
|
|
4263
|
+
allow_skip?: boolean | undefined;
|
|
4264
|
+
}>, z.ZodNull]>>;
|
|
4265
|
+
preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
4266
|
+
type: z.ZodLiteral<"function">;
|
|
4267
|
+
id: z.ZodString;
|
|
4268
|
+
version: z.ZodOptional<z.ZodString>;
|
|
4269
|
+
}, "strip", z.ZodTypeAny, {
|
|
4270
|
+
id: string;
|
|
4271
|
+
type: "function";
|
|
4272
|
+
version?: string | undefined;
|
|
4273
|
+
}, {
|
|
4274
|
+
id: string;
|
|
4275
|
+
type: "function";
|
|
4276
|
+
version?: string | undefined;
|
|
4277
|
+
}>, z.ZodObject<{
|
|
4278
|
+
type: z.ZodLiteral<"global">;
|
|
4279
|
+
name: z.ZodString;
|
|
4280
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
|
|
4281
|
+
}, "strip", z.ZodTypeAny, {
|
|
4282
|
+
type: "global";
|
|
4283
|
+
name: string;
|
|
4284
|
+
function_type: "preprocessor";
|
|
4285
|
+
}, {
|
|
4286
|
+
type: "global";
|
|
4287
|
+
name: string;
|
|
4288
|
+
function_type?: "preprocessor" | undefined;
|
|
3308
4289
|
}>, z.ZodNull]>>;
|
|
3309
4290
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
3310
4291
|
type: z.ZodLiteral<"function">;
|
|
3311
4292
|
id: z.ZodString;
|
|
4293
|
+
version: z.ZodOptional<z.ZodString>;
|
|
3312
4294
|
}, "strip", z.ZodTypeAny, {
|
|
3313
4295
|
id: string;
|
|
3314
4296
|
type: "function";
|
|
4297
|
+
version?: string | undefined;
|
|
3315
4298
|
}, {
|
|
3316
4299
|
id: string;
|
|
3317
4300
|
type: "function";
|
|
4301
|
+
version?: string | undefined;
|
|
3318
4302
|
}>, z.ZodObject<{
|
|
3319
4303
|
type: z.ZodLiteral<"global">;
|
|
3320
4304
|
name: z.ZodString;
|
|
4305
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
|
|
3321
4306
|
}, "strip", z.ZodTypeAny, {
|
|
3322
4307
|
type: "global";
|
|
3323
4308
|
name: string;
|
|
4309
|
+
function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
|
|
3324
4310
|
}, {
|
|
3325
4311
|
type: "global";
|
|
3326
4312
|
name: string;
|
|
4313
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
3327
4314
|
}>]>, "many">, z.ZodNull]>>;
|
|
4315
|
+
template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
|
|
4316
|
+
mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
4317
|
+
type: z.ZodLiteral<"id">;
|
|
4318
|
+
id: z.ZodString;
|
|
4319
|
+
is_disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4320
|
+
enabled_tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
|
|
4321
|
+
}, "strip", z.ZodTypeAny, {
|
|
4322
|
+
id: string;
|
|
4323
|
+
type: "id";
|
|
4324
|
+
is_disabled?: boolean | undefined;
|
|
4325
|
+
enabled_tools?: string[] | null | undefined;
|
|
4326
|
+
}, {
|
|
4327
|
+
id: string;
|
|
4328
|
+
type: "id";
|
|
4329
|
+
is_disabled?: boolean | undefined;
|
|
4330
|
+
enabled_tools?: string[] | null | undefined;
|
|
4331
|
+
}>, z.ZodObject<{
|
|
4332
|
+
type: z.ZodLiteral<"url">;
|
|
4333
|
+
url: z.ZodString;
|
|
4334
|
+
is_disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4335
|
+
enabled_tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
|
|
4336
|
+
}, "strip", z.ZodTypeAny, {
|
|
4337
|
+
type: "url";
|
|
4338
|
+
url: string;
|
|
4339
|
+
is_disabled?: boolean | undefined;
|
|
4340
|
+
enabled_tools?: string[] | null | undefined;
|
|
4341
|
+
}, {
|
|
4342
|
+
type: "url";
|
|
4343
|
+
url: string;
|
|
4344
|
+
is_disabled?: boolean | undefined;
|
|
4345
|
+
enabled_tools?: string[] | null | undefined;
|
|
4346
|
+
}>]>>, z.ZodNull]>>;
|
|
3328
4347
|
origin: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
3329
4348
|
prompt_id: z.ZodOptional<z.ZodString>;
|
|
3330
4349
|
project_id: z.ZodOptional<z.ZodString>;
|
|
@@ -3342,6 +4361,8 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3342
4361
|
options?: {
|
|
3343
4362
|
params?: z.objectOutputType<{
|
|
3344
4363
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4364
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4365
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3345
4366
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3346
4367
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
3347
4368
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3424,10 +4445,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3424
4445
|
}>]>>;
|
|
3425
4446
|
n: z.ZodOptional<z.ZodNumber>;
|
|
3426
4447
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3427
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
4448
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
3428
4449
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
3429
4450
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3430
4451
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4452
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4453
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3431
4454
|
max_tokens: z.ZodNumber;
|
|
3432
4455
|
temperature: z.ZodNumber;
|
|
3433
4456
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3436,24 +4459,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3436
4459
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
3437
4460
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3438
4461
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4462
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4463
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3439
4464
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3440
4465
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3441
4466
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
3442
4467
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3443
4468
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3444
4469
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4470
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4471
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3445
4472
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3446
4473
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3447
4474
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3448
4475
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4476
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4477
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3449
4478
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3450
4479
|
model?: string | undefined;
|
|
3451
4480
|
position?: string | undefined;
|
|
4481
|
+
endpoint_name?: string | null | undefined;
|
|
3452
4482
|
} | null | undefined;
|
|
3453
4483
|
prompt?: {
|
|
3454
|
-
type: "completion";
|
|
3455
|
-
content: string;
|
|
3456
|
-
} | {
|
|
3457
4484
|
type: "chat";
|
|
3458
4485
|
messages: ({
|
|
3459
4486
|
role: "system";
|
|
@@ -3462,6 +4489,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3462
4489
|
text: string;
|
|
3463
4490
|
cache_control?: {
|
|
3464
4491
|
type: "ephemeral";
|
|
4492
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3465
4493
|
} | undefined;
|
|
3466
4494
|
}[];
|
|
3467
4495
|
name?: string | undefined;
|
|
@@ -3472,6 +4500,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3472
4500
|
text: string;
|
|
3473
4501
|
cache_control?: {
|
|
3474
4502
|
type: "ephemeral";
|
|
4503
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3475
4504
|
} | undefined;
|
|
3476
4505
|
} | {
|
|
3477
4506
|
type: "image_url";
|
|
@@ -3479,6 +4508,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3479
4508
|
url: string;
|
|
3480
4509
|
detail?: "auto" | "low" | "high" | undefined;
|
|
3481
4510
|
};
|
|
4511
|
+
cache_control?: {
|
|
4512
|
+
type: "ephemeral";
|
|
4513
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4514
|
+
} | undefined;
|
|
4515
|
+
} | {
|
|
4516
|
+
type: "file";
|
|
4517
|
+
file: {
|
|
4518
|
+
filename?: string | undefined;
|
|
4519
|
+
file_data?: string | undefined;
|
|
4520
|
+
file_id?: string | undefined;
|
|
4521
|
+
};
|
|
4522
|
+
cache_control?: {
|
|
4523
|
+
type: "ephemeral";
|
|
4524
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4525
|
+
} | undefined;
|
|
3482
4526
|
})[];
|
|
3483
4527
|
name?: string | undefined;
|
|
3484
4528
|
} | {
|
|
@@ -3493,6 +4537,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3493
4537
|
text: string;
|
|
3494
4538
|
cache_control?: {
|
|
3495
4539
|
type: "ephemeral";
|
|
4540
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3496
4541
|
} | undefined;
|
|
3497
4542
|
}[] | null | undefined;
|
|
3498
4543
|
tool_calls?: {
|
|
@@ -3507,6 +4552,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3507
4552
|
id?: string | undefined;
|
|
3508
4553
|
content?: string | undefined;
|
|
3509
4554
|
}[] | undefined;
|
|
4555
|
+
reasoning_signature?: string | undefined;
|
|
3510
4556
|
} | {
|
|
3511
4557
|
role: "tool";
|
|
3512
4558
|
content: string | {
|
|
@@ -3514,6 +4560,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3514
4560
|
text: string;
|
|
3515
4561
|
cache_control?: {
|
|
3516
4562
|
type: "ephemeral";
|
|
4563
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3517
4564
|
} | undefined;
|
|
3518
4565
|
}[];
|
|
3519
4566
|
tool_call_id: string;
|
|
@@ -3528,6 +4575,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3528
4575
|
text: string;
|
|
3529
4576
|
cache_control?: {
|
|
3530
4577
|
type: "ephemeral";
|
|
4578
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3531
4579
|
} | undefined;
|
|
3532
4580
|
}[];
|
|
3533
4581
|
name?: string | undefined;
|
|
@@ -3536,6 +4584,18 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3536
4584
|
content?: string | null | undefined;
|
|
3537
4585
|
})[];
|
|
3538
4586
|
tools?: string | undefined;
|
|
4587
|
+
} | {
|
|
4588
|
+
type: "completion";
|
|
4589
|
+
content: string;
|
|
4590
|
+
} | null | undefined;
|
|
4591
|
+
preprocessor?: {
|
|
4592
|
+
id: string;
|
|
4593
|
+
type: "function";
|
|
4594
|
+
version?: string | undefined;
|
|
4595
|
+
} | {
|
|
4596
|
+
type: "global";
|
|
4597
|
+
name: string;
|
|
4598
|
+
function_type: "preprocessor";
|
|
3539
4599
|
} | null | undefined;
|
|
3540
4600
|
origin?: {
|
|
3541
4601
|
project_id?: string | undefined;
|
|
@@ -3545,19 +4605,38 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3545
4605
|
parser?: {
|
|
3546
4606
|
type: "llm_classifier";
|
|
3547
4607
|
use_cot: boolean;
|
|
3548
|
-
choice_scores
|
|
4608
|
+
choice_scores?: Record<string, number> | undefined;
|
|
4609
|
+
choice?: string[] | undefined;
|
|
4610
|
+
allow_no_match?: boolean | undefined;
|
|
4611
|
+
allow_skip?: boolean | undefined;
|
|
3549
4612
|
} | null | undefined;
|
|
3550
4613
|
tool_functions?: ({
|
|
3551
4614
|
id: string;
|
|
3552
4615
|
type: "function";
|
|
4616
|
+
version?: string | undefined;
|
|
3553
4617
|
} | {
|
|
3554
4618
|
type: "global";
|
|
3555
4619
|
name: string;
|
|
4620
|
+
function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
|
|
3556
4621
|
})[] | null | undefined;
|
|
4622
|
+
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
4623
|
+
mcp?: Record<string, {
|
|
4624
|
+
id: string;
|
|
4625
|
+
type: "id";
|
|
4626
|
+
is_disabled?: boolean | undefined;
|
|
4627
|
+
enabled_tools?: string[] | null | undefined;
|
|
4628
|
+
} | {
|
|
4629
|
+
type: "url";
|
|
4630
|
+
url: string;
|
|
4631
|
+
is_disabled?: boolean | undefined;
|
|
4632
|
+
enabled_tools?: string[] | null | undefined;
|
|
4633
|
+
}> | null | undefined;
|
|
3557
4634
|
}, {
|
|
3558
4635
|
options?: {
|
|
3559
4636
|
params?: z.objectInputType<{
|
|
3560
4637
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4638
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4639
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3561
4640
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3562
4641
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
3563
4642
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3640,10 +4719,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3640
4719
|
}>]>>;
|
|
3641
4720
|
n: z.ZodOptional<z.ZodNumber>;
|
|
3642
4721
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3643
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
4722
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
3644
4723
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
3645
4724
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3646
4725
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4726
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4727
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3647
4728
|
max_tokens: z.ZodNumber;
|
|
3648
4729
|
temperature: z.ZodNumber;
|
|
3649
4730
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3652,24 +4733,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3652
4733
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
3653
4734
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3654
4735
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4736
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4737
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3655
4738
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3656
4739
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3657
4740
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
3658
4741
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3659
4742
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3660
4743
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4744
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4745
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3661
4746
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3662
4747
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3663
4748
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3664
4749
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4750
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4751
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3665
4752
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3666
4753
|
model?: string | undefined;
|
|
3667
4754
|
position?: string | undefined;
|
|
4755
|
+
endpoint_name?: string | null | undefined;
|
|
3668
4756
|
} | null | undefined;
|
|
3669
4757
|
prompt?: {
|
|
3670
|
-
type: "completion";
|
|
3671
|
-
content: string;
|
|
3672
|
-
} | {
|
|
3673
4758
|
type: "chat";
|
|
3674
4759
|
messages: ({
|
|
3675
4760
|
role: "system";
|
|
@@ -3678,6 +4763,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3678
4763
|
text?: string | undefined;
|
|
3679
4764
|
cache_control?: {
|
|
3680
4765
|
type: "ephemeral";
|
|
4766
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3681
4767
|
} | undefined;
|
|
3682
4768
|
}[];
|
|
3683
4769
|
name?: string | undefined;
|
|
@@ -3688,6 +4774,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3688
4774
|
text?: string | undefined;
|
|
3689
4775
|
cache_control?: {
|
|
3690
4776
|
type: "ephemeral";
|
|
4777
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3691
4778
|
} | undefined;
|
|
3692
4779
|
} | {
|
|
3693
4780
|
type: "image_url";
|
|
@@ -3695,6 +4782,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3695
4782
|
url: string;
|
|
3696
4783
|
detail?: "auto" | "low" | "high" | undefined;
|
|
3697
4784
|
};
|
|
4785
|
+
cache_control?: {
|
|
4786
|
+
type: "ephemeral";
|
|
4787
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4788
|
+
} | undefined;
|
|
4789
|
+
} | {
|
|
4790
|
+
type: "file";
|
|
4791
|
+
file: {
|
|
4792
|
+
filename?: string | undefined;
|
|
4793
|
+
file_data?: string | undefined;
|
|
4794
|
+
file_id?: string | undefined;
|
|
4795
|
+
};
|
|
4796
|
+
cache_control?: {
|
|
4797
|
+
type: "ephemeral";
|
|
4798
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4799
|
+
} | undefined;
|
|
3698
4800
|
})[];
|
|
3699
4801
|
name?: string | undefined;
|
|
3700
4802
|
} | {
|
|
@@ -3709,6 +4811,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3709
4811
|
text?: string | undefined;
|
|
3710
4812
|
cache_control?: {
|
|
3711
4813
|
type: "ephemeral";
|
|
4814
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3712
4815
|
} | undefined;
|
|
3713
4816
|
}[] | null | undefined;
|
|
3714
4817
|
tool_calls?: {
|
|
@@ -3723,6 +4826,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3723
4826
|
id?: string | undefined;
|
|
3724
4827
|
content?: string | undefined;
|
|
3725
4828
|
}[] | undefined;
|
|
4829
|
+
reasoning_signature?: string | undefined;
|
|
3726
4830
|
} | {
|
|
3727
4831
|
role: "tool";
|
|
3728
4832
|
content: string | {
|
|
@@ -3730,6 +4834,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3730
4834
|
text?: string | undefined;
|
|
3731
4835
|
cache_control?: {
|
|
3732
4836
|
type: "ephemeral";
|
|
4837
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3733
4838
|
} | undefined;
|
|
3734
4839
|
}[];
|
|
3735
4840
|
tool_call_id?: string | undefined;
|
|
@@ -3744,6 +4849,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3744
4849
|
text?: string | undefined;
|
|
3745
4850
|
cache_control?: {
|
|
3746
4851
|
type: "ephemeral";
|
|
4852
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3747
4853
|
} | undefined;
|
|
3748
4854
|
}[];
|
|
3749
4855
|
name?: string | undefined;
|
|
@@ -3752,6 +4858,18 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3752
4858
|
content?: string | null | undefined;
|
|
3753
4859
|
})[];
|
|
3754
4860
|
tools?: string | undefined;
|
|
4861
|
+
} | {
|
|
4862
|
+
type: "completion";
|
|
4863
|
+
content: string;
|
|
4864
|
+
} | null | undefined;
|
|
4865
|
+
preprocessor?: {
|
|
4866
|
+
id: string;
|
|
4867
|
+
type: "function";
|
|
4868
|
+
version?: string | undefined;
|
|
4869
|
+
} | {
|
|
4870
|
+
type: "global";
|
|
4871
|
+
name: string;
|
|
4872
|
+
function_type?: "preprocessor" | undefined;
|
|
3755
4873
|
} | null | undefined;
|
|
3756
4874
|
origin?: {
|
|
3757
4875
|
project_id?: string | undefined;
|
|
@@ -3761,23 +4879,43 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3761
4879
|
parser?: {
|
|
3762
4880
|
type: "llm_classifier";
|
|
3763
4881
|
use_cot: boolean;
|
|
3764
|
-
choice_scores
|
|
4882
|
+
choice_scores?: Record<string, number> | undefined;
|
|
4883
|
+
choice?: string[] | undefined;
|
|
4884
|
+
allow_no_match?: boolean | undefined;
|
|
4885
|
+
allow_skip?: boolean | undefined;
|
|
3765
4886
|
} | null | undefined;
|
|
3766
4887
|
tool_functions?: ({
|
|
3767
4888
|
id: string;
|
|
3768
4889
|
type: "function";
|
|
4890
|
+
version?: string | undefined;
|
|
3769
4891
|
} | {
|
|
3770
4892
|
type: "global";
|
|
3771
4893
|
name: string;
|
|
4894
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
3772
4895
|
})[] | null | undefined;
|
|
4896
|
+
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
4897
|
+
mcp?: Record<string, {
|
|
4898
|
+
id: string;
|
|
4899
|
+
type: "id";
|
|
4900
|
+
is_disabled?: boolean | undefined;
|
|
4901
|
+
enabled_tools?: string[] | null | undefined;
|
|
4902
|
+
} | {
|
|
4903
|
+
type: "url";
|
|
4904
|
+
url: string;
|
|
4905
|
+
is_disabled?: boolean | undefined;
|
|
4906
|
+
enabled_tools?: string[] | null | undefined;
|
|
4907
|
+
}> | null | undefined;
|
|
3773
4908
|
}>;
|
|
3774
|
-
function_type: z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool"]
|
|
4909
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
|
|
3775
4910
|
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
3776
4911
|
}, "strip", z.ZodTypeAny, {
|
|
4912
|
+
function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
|
|
3777
4913
|
inline_prompt: {
|
|
3778
4914
|
options?: {
|
|
3779
4915
|
params?: z.objectOutputType<{
|
|
3780
4916
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
4917
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4918
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3781
4919
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3782
4920
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
3783
4921
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3860,10 +4998,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3860
4998
|
}>]>>;
|
|
3861
4999
|
n: z.ZodOptional<z.ZodNumber>;
|
|
3862
5000
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3863
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
5001
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
3864
5002
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
3865
5003
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3866
5004
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
5005
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5006
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3867
5007
|
max_tokens: z.ZodNumber;
|
|
3868
5008
|
temperature: z.ZodNumber;
|
|
3869
5009
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3872,24 +5012,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3872
5012
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
3873
5013
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3874
5014
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
5015
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5016
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3875
5017
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3876
5018
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3877
5019
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
3878
5020
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3879
5021
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3880
5022
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
5023
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5024
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3881
5025
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3882
5026
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3883
5027
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
3884
5028
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
5029
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5030
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
3885
5031
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3886
5032
|
model?: string | undefined;
|
|
3887
5033
|
position?: string | undefined;
|
|
5034
|
+
endpoint_name?: string | null | undefined;
|
|
3888
5035
|
} | null | undefined;
|
|
3889
5036
|
prompt?: {
|
|
3890
|
-
type: "completion";
|
|
3891
|
-
content: string;
|
|
3892
|
-
} | {
|
|
3893
5037
|
type: "chat";
|
|
3894
5038
|
messages: ({
|
|
3895
5039
|
role: "system";
|
|
@@ -3898,6 +5042,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3898
5042
|
text: string;
|
|
3899
5043
|
cache_control?: {
|
|
3900
5044
|
type: "ephemeral";
|
|
5045
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3901
5046
|
} | undefined;
|
|
3902
5047
|
}[];
|
|
3903
5048
|
name?: string | undefined;
|
|
@@ -3908,6 +5053,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3908
5053
|
text: string;
|
|
3909
5054
|
cache_control?: {
|
|
3910
5055
|
type: "ephemeral";
|
|
5056
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3911
5057
|
} | undefined;
|
|
3912
5058
|
} | {
|
|
3913
5059
|
type: "image_url";
|
|
@@ -3915,6 +5061,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3915
5061
|
url: string;
|
|
3916
5062
|
detail?: "auto" | "low" | "high" | undefined;
|
|
3917
5063
|
};
|
|
5064
|
+
cache_control?: {
|
|
5065
|
+
type: "ephemeral";
|
|
5066
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5067
|
+
} | undefined;
|
|
5068
|
+
} | {
|
|
5069
|
+
type: "file";
|
|
5070
|
+
file: {
|
|
5071
|
+
filename?: string | undefined;
|
|
5072
|
+
file_data?: string | undefined;
|
|
5073
|
+
file_id?: string | undefined;
|
|
5074
|
+
};
|
|
5075
|
+
cache_control?: {
|
|
5076
|
+
type: "ephemeral";
|
|
5077
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5078
|
+
} | undefined;
|
|
3918
5079
|
})[];
|
|
3919
5080
|
name?: string | undefined;
|
|
3920
5081
|
} | {
|
|
@@ -3929,6 +5090,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3929
5090
|
text: string;
|
|
3930
5091
|
cache_control?: {
|
|
3931
5092
|
type: "ephemeral";
|
|
5093
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3932
5094
|
} | undefined;
|
|
3933
5095
|
}[] | null | undefined;
|
|
3934
5096
|
tool_calls?: {
|
|
@@ -3943,6 +5105,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3943
5105
|
id?: string | undefined;
|
|
3944
5106
|
content?: string | undefined;
|
|
3945
5107
|
}[] | undefined;
|
|
5108
|
+
reasoning_signature?: string | undefined;
|
|
3946
5109
|
} | {
|
|
3947
5110
|
role: "tool";
|
|
3948
5111
|
content: string | {
|
|
@@ -3950,6 +5113,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3950
5113
|
text: string;
|
|
3951
5114
|
cache_control?: {
|
|
3952
5115
|
type: "ephemeral";
|
|
5116
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3953
5117
|
} | undefined;
|
|
3954
5118
|
}[];
|
|
3955
5119
|
tool_call_id: string;
|
|
@@ -3964,6 +5128,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3964
5128
|
text: string;
|
|
3965
5129
|
cache_control?: {
|
|
3966
5130
|
type: "ephemeral";
|
|
5131
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3967
5132
|
} | undefined;
|
|
3968
5133
|
}[];
|
|
3969
5134
|
name?: string | undefined;
|
|
@@ -3972,6 +5137,18 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3972
5137
|
content?: string | null | undefined;
|
|
3973
5138
|
})[];
|
|
3974
5139
|
tools?: string | undefined;
|
|
5140
|
+
} | {
|
|
5141
|
+
type: "completion";
|
|
5142
|
+
content: string;
|
|
5143
|
+
} | null | undefined;
|
|
5144
|
+
preprocessor?: {
|
|
5145
|
+
id: string;
|
|
5146
|
+
type: "function";
|
|
5147
|
+
version?: string | undefined;
|
|
5148
|
+
} | {
|
|
5149
|
+
type: "global";
|
|
5150
|
+
name: string;
|
|
5151
|
+
function_type: "preprocessor";
|
|
3975
5152
|
} | null | undefined;
|
|
3976
5153
|
origin?: {
|
|
3977
5154
|
project_id?: string | undefined;
|
|
@@ -3981,23 +5158,41 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
3981
5158
|
parser?: {
|
|
3982
5159
|
type: "llm_classifier";
|
|
3983
5160
|
use_cot: boolean;
|
|
3984
|
-
choice_scores
|
|
5161
|
+
choice_scores?: Record<string, number> | undefined;
|
|
5162
|
+
choice?: string[] | undefined;
|
|
5163
|
+
allow_no_match?: boolean | undefined;
|
|
5164
|
+
allow_skip?: boolean | undefined;
|
|
3985
5165
|
} | null | undefined;
|
|
3986
5166
|
tool_functions?: ({
|
|
3987
5167
|
id: string;
|
|
3988
5168
|
type: "function";
|
|
5169
|
+
version?: string | undefined;
|
|
3989
5170
|
} | {
|
|
3990
5171
|
type: "global";
|
|
3991
5172
|
name: string;
|
|
5173
|
+
function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
|
|
3992
5174
|
})[] | null | undefined;
|
|
5175
|
+
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
5176
|
+
mcp?: Record<string, {
|
|
5177
|
+
id: string;
|
|
5178
|
+
type: "id";
|
|
5179
|
+
is_disabled?: boolean | undefined;
|
|
5180
|
+
enabled_tools?: string[] | null | undefined;
|
|
5181
|
+
} | {
|
|
5182
|
+
type: "url";
|
|
5183
|
+
url: string;
|
|
5184
|
+
is_disabled?: boolean | undefined;
|
|
5185
|
+
enabled_tools?: string[] | null | undefined;
|
|
5186
|
+
}> | null | undefined;
|
|
3993
5187
|
};
|
|
3994
5188
|
name?: string | null | undefined;
|
|
3995
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | undefined;
|
|
3996
5189
|
}, {
|
|
3997
5190
|
inline_prompt: {
|
|
3998
5191
|
options?: {
|
|
3999
5192
|
params?: z.objectInputType<{
|
|
4000
5193
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
5194
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5195
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
4001
5196
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
4002
5197
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
4003
5198
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4080,10 +5275,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4080
5275
|
}>]>>;
|
|
4081
5276
|
n: z.ZodOptional<z.ZodNumber>;
|
|
4082
5277
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4083
|
-
reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
|
|
5278
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
|
|
4084
5279
|
verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
4085
5280
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
4086
5281
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
5282
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5283
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
4087
5284
|
max_tokens: z.ZodNumber;
|
|
4088
5285
|
temperature: z.ZodNumber;
|
|
4089
5286
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4092,24 +5289,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4092
5289
|
max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
|
|
4093
5290
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
4094
5291
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
5292
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5293
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
4095
5294
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
4096
5295
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4097
5296
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
4098
5297
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
4099
5298
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
4100
5299
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
5300
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5301
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
4101
5302
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
4102
5303
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
4103
5304
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
4104
5305
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
5306
|
+
reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5307
|
+
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
4105
5308
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4106
5309
|
model?: string | undefined;
|
|
4107
5310
|
position?: string | undefined;
|
|
5311
|
+
endpoint_name?: string | null | undefined;
|
|
4108
5312
|
} | null | undefined;
|
|
4109
5313
|
prompt?: {
|
|
4110
|
-
type: "completion";
|
|
4111
|
-
content: string;
|
|
4112
|
-
} | {
|
|
4113
5314
|
type: "chat";
|
|
4114
5315
|
messages: ({
|
|
4115
5316
|
role: "system";
|
|
@@ -4118,6 +5319,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4118
5319
|
text?: string | undefined;
|
|
4119
5320
|
cache_control?: {
|
|
4120
5321
|
type: "ephemeral";
|
|
5322
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4121
5323
|
} | undefined;
|
|
4122
5324
|
}[];
|
|
4123
5325
|
name?: string | undefined;
|
|
@@ -4128,6 +5330,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4128
5330
|
text?: string | undefined;
|
|
4129
5331
|
cache_control?: {
|
|
4130
5332
|
type: "ephemeral";
|
|
5333
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4131
5334
|
} | undefined;
|
|
4132
5335
|
} | {
|
|
4133
5336
|
type: "image_url";
|
|
@@ -4135,6 +5338,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4135
5338
|
url: string;
|
|
4136
5339
|
detail?: "auto" | "low" | "high" | undefined;
|
|
4137
5340
|
};
|
|
5341
|
+
cache_control?: {
|
|
5342
|
+
type: "ephemeral";
|
|
5343
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5344
|
+
} | undefined;
|
|
5345
|
+
} | {
|
|
5346
|
+
type: "file";
|
|
5347
|
+
file: {
|
|
5348
|
+
filename?: string | undefined;
|
|
5349
|
+
file_data?: string | undefined;
|
|
5350
|
+
file_id?: string | undefined;
|
|
5351
|
+
};
|
|
5352
|
+
cache_control?: {
|
|
5353
|
+
type: "ephemeral";
|
|
5354
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5355
|
+
} | undefined;
|
|
4138
5356
|
})[];
|
|
4139
5357
|
name?: string | undefined;
|
|
4140
5358
|
} | {
|
|
@@ -4149,6 +5367,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4149
5367
|
text?: string | undefined;
|
|
4150
5368
|
cache_control?: {
|
|
4151
5369
|
type: "ephemeral";
|
|
5370
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4152
5371
|
} | undefined;
|
|
4153
5372
|
}[] | null | undefined;
|
|
4154
5373
|
tool_calls?: {
|
|
@@ -4163,6 +5382,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4163
5382
|
id?: string | undefined;
|
|
4164
5383
|
content?: string | undefined;
|
|
4165
5384
|
}[] | undefined;
|
|
5385
|
+
reasoning_signature?: string | undefined;
|
|
4166
5386
|
} | {
|
|
4167
5387
|
role: "tool";
|
|
4168
5388
|
content: string | {
|
|
@@ -4170,6 +5390,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4170
5390
|
text?: string | undefined;
|
|
4171
5391
|
cache_control?: {
|
|
4172
5392
|
type: "ephemeral";
|
|
5393
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4173
5394
|
} | undefined;
|
|
4174
5395
|
}[];
|
|
4175
5396
|
tool_call_id?: string | undefined;
|
|
@@ -4184,6 +5405,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4184
5405
|
text?: string | undefined;
|
|
4185
5406
|
cache_control?: {
|
|
4186
5407
|
type: "ephemeral";
|
|
5408
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4187
5409
|
} | undefined;
|
|
4188
5410
|
}[];
|
|
4189
5411
|
name?: string | undefined;
|
|
@@ -4192,6 +5414,18 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4192
5414
|
content?: string | null | undefined;
|
|
4193
5415
|
})[];
|
|
4194
5416
|
tools?: string | undefined;
|
|
5417
|
+
} | {
|
|
5418
|
+
type: "completion";
|
|
5419
|
+
content: string;
|
|
5420
|
+
} | null | undefined;
|
|
5421
|
+
preprocessor?: {
|
|
5422
|
+
id: string;
|
|
5423
|
+
type: "function";
|
|
5424
|
+
version?: string | undefined;
|
|
5425
|
+
} | {
|
|
5426
|
+
type: "global";
|
|
5427
|
+
name: string;
|
|
5428
|
+
function_type?: "preprocessor" | undefined;
|
|
4195
5429
|
} | null | undefined;
|
|
4196
5430
|
origin?: {
|
|
4197
5431
|
project_id?: string | undefined;
|
|
@@ -4201,18 +5435,35 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4201
5435
|
parser?: {
|
|
4202
5436
|
type: "llm_classifier";
|
|
4203
5437
|
use_cot: boolean;
|
|
4204
|
-
choice_scores
|
|
5438
|
+
choice_scores?: Record<string, number> | undefined;
|
|
5439
|
+
choice?: string[] | undefined;
|
|
5440
|
+
allow_no_match?: boolean | undefined;
|
|
5441
|
+
allow_skip?: boolean | undefined;
|
|
4205
5442
|
} | null | undefined;
|
|
4206
5443
|
tool_functions?: ({
|
|
4207
5444
|
id: string;
|
|
4208
5445
|
type: "function";
|
|
5446
|
+
version?: string | undefined;
|
|
4209
5447
|
} | {
|
|
4210
5448
|
type: "global";
|
|
4211
5449
|
name: string;
|
|
5450
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
4212
5451
|
})[] | null | undefined;
|
|
5452
|
+
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
5453
|
+
mcp?: Record<string, {
|
|
5454
|
+
id: string;
|
|
5455
|
+
type: "id";
|
|
5456
|
+
is_disabled?: boolean | undefined;
|
|
5457
|
+
enabled_tools?: string[] | null | undefined;
|
|
5458
|
+
} | {
|
|
5459
|
+
type: "url";
|
|
5460
|
+
url: string;
|
|
5461
|
+
is_disabled?: boolean | undefined;
|
|
5462
|
+
enabled_tools?: string[] | null | undefined;
|
|
5463
|
+
}> | null | undefined;
|
|
4213
5464
|
};
|
|
4214
5465
|
name?: string | null | undefined;
|
|
4215
|
-
function_type?: "
|
|
5466
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
4216
5467
|
}>]>, z.ZodObject<{
|
|
4217
5468
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
4218
5469
|
expected: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -4224,22 +5475,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4224
5475
|
type: z.ZodLiteral<"text">;
|
|
4225
5476
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
4226
5477
|
type: z.ZodLiteral<"ephemeral">;
|
|
5478
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
4227
5479
|
}, "strip", z.ZodTypeAny, {
|
|
4228
5480
|
type: "ephemeral";
|
|
5481
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4229
5482
|
}, {
|
|
4230
5483
|
type: "ephemeral";
|
|
5484
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4231
5485
|
}>>;
|
|
4232
5486
|
}, "strip", z.ZodTypeAny, {
|
|
4233
5487
|
type: "text";
|
|
4234
5488
|
text: string;
|
|
4235
5489
|
cache_control?: {
|
|
4236
5490
|
type: "ephemeral";
|
|
5491
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4237
5492
|
} | undefined;
|
|
4238
5493
|
}, {
|
|
4239
5494
|
type: "text";
|
|
4240
5495
|
text?: string | undefined;
|
|
4241
5496
|
cache_control?: {
|
|
4242
5497
|
type: "ephemeral";
|
|
5498
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4243
5499
|
} | undefined;
|
|
4244
5500
|
}>, "many">]>;
|
|
4245
5501
|
role: z.ZodLiteral<"system">;
|
|
@@ -4251,6 +5507,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4251
5507
|
text: string;
|
|
4252
5508
|
cache_control?: {
|
|
4253
5509
|
type: "ephemeral";
|
|
5510
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4254
5511
|
} | undefined;
|
|
4255
5512
|
}[];
|
|
4256
5513
|
name?: string | undefined;
|
|
@@ -4261,6 +5518,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4261
5518
|
text?: string | undefined;
|
|
4262
5519
|
cache_control?: {
|
|
4263
5520
|
type: "ephemeral";
|
|
5521
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4264
5522
|
} | undefined;
|
|
4265
5523
|
}[];
|
|
4266
5524
|
name?: string | undefined;
|
|
@@ -4270,22 +5528,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4270
5528
|
type: z.ZodLiteral<"text">;
|
|
4271
5529
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
4272
5530
|
type: z.ZodLiteral<"ephemeral">;
|
|
5531
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
4273
5532
|
}, "strip", z.ZodTypeAny, {
|
|
4274
5533
|
type: "ephemeral";
|
|
5534
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4275
5535
|
}, {
|
|
4276
5536
|
type: "ephemeral";
|
|
5537
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4277
5538
|
}>>;
|
|
4278
5539
|
}, "strip", z.ZodTypeAny, {
|
|
4279
5540
|
type: "text";
|
|
4280
5541
|
text: string;
|
|
4281
5542
|
cache_control?: {
|
|
4282
5543
|
type: "ephemeral";
|
|
5544
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4283
5545
|
} | undefined;
|
|
4284
5546
|
}, {
|
|
4285
5547
|
type: "text";
|
|
4286
5548
|
text?: string | undefined;
|
|
4287
5549
|
cache_control?: {
|
|
4288
5550
|
type: "ephemeral";
|
|
5551
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4289
5552
|
} | undefined;
|
|
4290
5553
|
}>, z.ZodObject<{
|
|
4291
5554
|
image_url: z.ZodObject<{
|
|
@@ -4299,18 +5562,83 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4299
5562
|
detail?: "auto" | "low" | "high" | undefined;
|
|
4300
5563
|
}>;
|
|
4301
5564
|
type: z.ZodLiteral<"image_url">;
|
|
5565
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
5566
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
5567
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
5568
|
+
}, "strip", z.ZodTypeAny, {
|
|
5569
|
+
type: "ephemeral";
|
|
5570
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5571
|
+
}, {
|
|
5572
|
+
type: "ephemeral";
|
|
5573
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5574
|
+
}>>;
|
|
4302
5575
|
}, "strip", z.ZodTypeAny, {
|
|
4303
5576
|
type: "image_url";
|
|
4304
5577
|
image_url: {
|
|
4305
5578
|
url: string;
|
|
4306
5579
|
detail?: "auto" | "low" | "high" | undefined;
|
|
4307
5580
|
};
|
|
5581
|
+
cache_control?: {
|
|
5582
|
+
type: "ephemeral";
|
|
5583
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5584
|
+
} | undefined;
|
|
4308
5585
|
}, {
|
|
4309
5586
|
type: "image_url";
|
|
4310
5587
|
image_url: {
|
|
4311
5588
|
url: string;
|
|
4312
5589
|
detail?: "auto" | "low" | "high" | undefined;
|
|
4313
5590
|
};
|
|
5591
|
+
cache_control?: {
|
|
5592
|
+
type: "ephemeral";
|
|
5593
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5594
|
+
} | undefined;
|
|
5595
|
+
}>, z.ZodObject<{
|
|
5596
|
+
file: z.ZodObject<{
|
|
5597
|
+
file_data: z.ZodOptional<z.ZodString>;
|
|
5598
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
5599
|
+
file_id: z.ZodOptional<z.ZodString>;
|
|
5600
|
+
}, "strip", z.ZodTypeAny, {
|
|
5601
|
+
filename?: string | undefined;
|
|
5602
|
+
file_data?: string | undefined;
|
|
5603
|
+
file_id?: string | undefined;
|
|
5604
|
+
}, {
|
|
5605
|
+
filename?: string | undefined;
|
|
5606
|
+
file_data?: string | undefined;
|
|
5607
|
+
file_id?: string | undefined;
|
|
5608
|
+
}>;
|
|
5609
|
+
type: z.ZodLiteral<"file">;
|
|
5610
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
5611
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
5612
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
5613
|
+
}, "strip", z.ZodTypeAny, {
|
|
5614
|
+
type: "ephemeral";
|
|
5615
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5616
|
+
}, {
|
|
5617
|
+
type: "ephemeral";
|
|
5618
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5619
|
+
}>>;
|
|
5620
|
+
}, "strip", z.ZodTypeAny, {
|
|
5621
|
+
type: "file";
|
|
5622
|
+
file: {
|
|
5623
|
+
filename?: string | undefined;
|
|
5624
|
+
file_data?: string | undefined;
|
|
5625
|
+
file_id?: string | undefined;
|
|
5626
|
+
};
|
|
5627
|
+
cache_control?: {
|
|
5628
|
+
type: "ephemeral";
|
|
5629
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5630
|
+
} | undefined;
|
|
5631
|
+
}, {
|
|
5632
|
+
type: "file";
|
|
5633
|
+
file: {
|
|
5634
|
+
filename?: string | undefined;
|
|
5635
|
+
file_data?: string | undefined;
|
|
5636
|
+
file_id?: string | undefined;
|
|
5637
|
+
};
|
|
5638
|
+
cache_control?: {
|
|
5639
|
+
type: "ephemeral";
|
|
5640
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5641
|
+
} | undefined;
|
|
4314
5642
|
}>]>, "many">]>;
|
|
4315
5643
|
role: z.ZodLiteral<"user">;
|
|
4316
5644
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -4321,6 +5649,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4321
5649
|
text: string;
|
|
4322
5650
|
cache_control?: {
|
|
4323
5651
|
type: "ephemeral";
|
|
5652
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4324
5653
|
} | undefined;
|
|
4325
5654
|
} | {
|
|
4326
5655
|
type: "image_url";
|
|
@@ -4328,6 +5657,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4328
5657
|
url: string;
|
|
4329
5658
|
detail?: "auto" | "low" | "high" | undefined;
|
|
4330
5659
|
};
|
|
5660
|
+
cache_control?: {
|
|
5661
|
+
type: "ephemeral";
|
|
5662
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5663
|
+
} | undefined;
|
|
5664
|
+
} | {
|
|
5665
|
+
type: "file";
|
|
5666
|
+
file: {
|
|
5667
|
+
filename?: string | undefined;
|
|
5668
|
+
file_data?: string | undefined;
|
|
5669
|
+
file_id?: string | undefined;
|
|
5670
|
+
};
|
|
5671
|
+
cache_control?: {
|
|
5672
|
+
type: "ephemeral";
|
|
5673
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5674
|
+
} | undefined;
|
|
4331
5675
|
})[];
|
|
4332
5676
|
name?: string | undefined;
|
|
4333
5677
|
}, {
|
|
@@ -4337,6 +5681,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4337
5681
|
text?: string | undefined;
|
|
4338
5682
|
cache_control?: {
|
|
4339
5683
|
type: "ephemeral";
|
|
5684
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4340
5685
|
} | undefined;
|
|
4341
5686
|
} | {
|
|
4342
5687
|
type: "image_url";
|
|
@@ -4344,6 +5689,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4344
5689
|
url: string;
|
|
4345
5690
|
detail?: "auto" | "low" | "high" | undefined;
|
|
4346
5691
|
};
|
|
5692
|
+
cache_control?: {
|
|
5693
|
+
type: "ephemeral";
|
|
5694
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5695
|
+
} | undefined;
|
|
5696
|
+
} | {
|
|
5697
|
+
type: "file";
|
|
5698
|
+
file: {
|
|
5699
|
+
filename?: string | undefined;
|
|
5700
|
+
file_data?: string | undefined;
|
|
5701
|
+
file_id?: string | undefined;
|
|
5702
|
+
};
|
|
5703
|
+
cache_control?: {
|
|
5704
|
+
type: "ephemeral";
|
|
5705
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5706
|
+
} | undefined;
|
|
4347
5707
|
})[];
|
|
4348
5708
|
name?: string | undefined;
|
|
4349
5709
|
}>, z.ZodObject<{
|
|
@@ -4353,22 +5713,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4353
5713
|
type: z.ZodLiteral<"text">;
|
|
4354
5714
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
4355
5715
|
type: z.ZodLiteral<"ephemeral">;
|
|
5716
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
4356
5717
|
}, "strip", z.ZodTypeAny, {
|
|
4357
5718
|
type: "ephemeral";
|
|
5719
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4358
5720
|
}, {
|
|
4359
5721
|
type: "ephemeral";
|
|
5722
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4360
5723
|
}>>;
|
|
4361
5724
|
}, "strip", z.ZodTypeAny, {
|
|
4362
5725
|
type: "text";
|
|
4363
5726
|
text: string;
|
|
4364
5727
|
cache_control?: {
|
|
4365
5728
|
type: "ephemeral";
|
|
5729
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4366
5730
|
} | undefined;
|
|
4367
5731
|
}, {
|
|
4368
5732
|
type: "text";
|
|
4369
5733
|
text?: string | undefined;
|
|
4370
5734
|
cache_control?: {
|
|
4371
5735
|
type: "ephemeral";
|
|
5736
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4372
5737
|
} | undefined;
|
|
4373
5738
|
}>, "many">, z.ZodNull]>>;
|
|
4374
5739
|
function_call: z.ZodOptional<z.ZodObject<{
|
|
@@ -4420,6 +5785,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4420
5785
|
id?: string | undefined;
|
|
4421
5786
|
content?: string | undefined;
|
|
4422
5787
|
}>, "many">>;
|
|
5788
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
4423
5789
|
}, "strip", z.ZodTypeAny, {
|
|
4424
5790
|
role: "assistant";
|
|
4425
5791
|
name?: string | undefined;
|
|
@@ -4432,6 +5798,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4432
5798
|
text: string;
|
|
4433
5799
|
cache_control?: {
|
|
4434
5800
|
type: "ephemeral";
|
|
5801
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4435
5802
|
} | undefined;
|
|
4436
5803
|
}[] | null | undefined;
|
|
4437
5804
|
tool_calls?: {
|
|
@@ -4446,6 +5813,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4446
5813
|
id?: string | undefined;
|
|
4447
5814
|
content?: string | undefined;
|
|
4448
5815
|
}[] | undefined;
|
|
5816
|
+
reasoning_signature?: string | undefined;
|
|
4449
5817
|
}, {
|
|
4450
5818
|
role: "assistant";
|
|
4451
5819
|
name?: string | undefined;
|
|
@@ -4458,6 +5826,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4458
5826
|
text?: string | undefined;
|
|
4459
5827
|
cache_control?: {
|
|
4460
5828
|
type: "ephemeral";
|
|
5829
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4461
5830
|
} | undefined;
|
|
4462
5831
|
}[] | null | undefined;
|
|
4463
5832
|
tool_calls?: {
|
|
@@ -4472,28 +5841,34 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4472
5841
|
id?: string | undefined;
|
|
4473
5842
|
content?: string | undefined;
|
|
4474
5843
|
}[] | undefined;
|
|
5844
|
+
reasoning_signature?: string | undefined;
|
|
4475
5845
|
}>, z.ZodObject<{
|
|
4476
5846
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
4477
5847
|
text: z.ZodDefault<z.ZodString>;
|
|
4478
5848
|
type: z.ZodLiteral<"text">;
|
|
4479
5849
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
4480
5850
|
type: z.ZodLiteral<"ephemeral">;
|
|
5851
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
4481
5852
|
}, "strip", z.ZodTypeAny, {
|
|
4482
5853
|
type: "ephemeral";
|
|
5854
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4483
5855
|
}, {
|
|
4484
5856
|
type: "ephemeral";
|
|
5857
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4485
5858
|
}>>;
|
|
4486
5859
|
}, "strip", z.ZodTypeAny, {
|
|
4487
5860
|
type: "text";
|
|
4488
5861
|
text: string;
|
|
4489
5862
|
cache_control?: {
|
|
4490
5863
|
type: "ephemeral";
|
|
5864
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4491
5865
|
} | undefined;
|
|
4492
5866
|
}, {
|
|
4493
5867
|
type: "text";
|
|
4494
5868
|
text?: string | undefined;
|
|
4495
5869
|
cache_control?: {
|
|
4496
5870
|
type: "ephemeral";
|
|
5871
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4497
5872
|
} | undefined;
|
|
4498
5873
|
}>, "many">]>;
|
|
4499
5874
|
role: z.ZodLiteral<"tool">;
|
|
@@ -4505,6 +5880,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4505
5880
|
text: string;
|
|
4506
5881
|
cache_control?: {
|
|
4507
5882
|
type: "ephemeral";
|
|
5883
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4508
5884
|
} | undefined;
|
|
4509
5885
|
}[];
|
|
4510
5886
|
tool_call_id: string;
|
|
@@ -4515,6 +5891,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4515
5891
|
text?: string | undefined;
|
|
4516
5892
|
cache_control?: {
|
|
4517
5893
|
type: "ephemeral";
|
|
5894
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4518
5895
|
} | undefined;
|
|
4519
5896
|
}[];
|
|
4520
5897
|
tool_call_id?: string | undefined;
|
|
@@ -4536,22 +5913,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4536
5913
|
type: z.ZodLiteral<"text">;
|
|
4537
5914
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
4538
5915
|
type: z.ZodLiteral<"ephemeral">;
|
|
5916
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
4539
5917
|
}, "strip", z.ZodTypeAny, {
|
|
4540
5918
|
type: "ephemeral";
|
|
5919
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4541
5920
|
}, {
|
|
4542
5921
|
type: "ephemeral";
|
|
5922
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4543
5923
|
}>>;
|
|
4544
5924
|
}, "strip", z.ZodTypeAny, {
|
|
4545
5925
|
type: "text";
|
|
4546
5926
|
text: string;
|
|
4547
5927
|
cache_control?: {
|
|
4548
5928
|
type: "ephemeral";
|
|
5929
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4549
5930
|
} | undefined;
|
|
4550
5931
|
}, {
|
|
4551
5932
|
type: "text";
|
|
4552
5933
|
text?: string | undefined;
|
|
4553
5934
|
cache_control?: {
|
|
4554
5935
|
type: "ephemeral";
|
|
5936
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4555
5937
|
} | undefined;
|
|
4556
5938
|
}>, "many">]>;
|
|
4557
5939
|
role: z.ZodLiteral<"developer">;
|
|
@@ -4563,6 +5945,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4563
5945
|
text: string;
|
|
4564
5946
|
cache_control?: {
|
|
4565
5947
|
type: "ephemeral";
|
|
5948
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4566
5949
|
} | undefined;
|
|
4567
5950
|
}[];
|
|
4568
5951
|
name?: string | undefined;
|
|
@@ -4573,6 +5956,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4573
5956
|
text?: string | undefined;
|
|
4574
5957
|
cache_control?: {
|
|
4575
5958
|
type: "ephemeral";
|
|
5959
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4576
5960
|
} | undefined;
|
|
4577
5961
|
}[];
|
|
4578
5962
|
name?: string | undefined;
|
|
@@ -4623,14 +6007,23 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4623
6007
|
propagated_event?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4624
6008
|
}>, z.ZodString]>>;
|
|
4625
6009
|
stream: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
|
|
4626
|
-
mode: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "parallel"]>, z.ZodNull]>>;
|
|
6010
|
+
mode: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "parallel", "json", "text"]>, z.ZodNull]>>;
|
|
4627
6011
|
strict: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
|
|
6012
|
+
mcp_auth: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6013
|
+
oauth_token: z.ZodOptional<z.ZodString>;
|
|
6014
|
+
}, "strip", z.ZodTypeAny, {
|
|
6015
|
+
oauth_token?: string | undefined;
|
|
6016
|
+
}, {
|
|
6017
|
+
oauth_token?: string | undefined;
|
|
6018
|
+
}>>>;
|
|
6019
|
+
overrides: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodNull]>>;
|
|
6020
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
4628
6021
|
}, "strip", z.ZodTypeAny, {
|
|
4629
6022
|
expected?: unknown;
|
|
4630
6023
|
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4631
6024
|
strict?: boolean | null | undefined;
|
|
4632
|
-
input?: unknown;
|
|
4633
6025
|
tags?: string[] | null | undefined;
|
|
6026
|
+
input?: unknown;
|
|
4634
6027
|
messages?: ({
|
|
4635
6028
|
role: "system";
|
|
4636
6029
|
content: string | {
|
|
@@ -4638,6 +6031,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4638
6031
|
text: string;
|
|
4639
6032
|
cache_control?: {
|
|
4640
6033
|
type: "ephemeral";
|
|
6034
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4641
6035
|
} | undefined;
|
|
4642
6036
|
}[];
|
|
4643
6037
|
name?: string | undefined;
|
|
@@ -4648,6 +6042,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4648
6042
|
text: string;
|
|
4649
6043
|
cache_control?: {
|
|
4650
6044
|
type: "ephemeral";
|
|
6045
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4651
6046
|
} | undefined;
|
|
4652
6047
|
} | {
|
|
4653
6048
|
type: "image_url";
|
|
@@ -4655,6 +6050,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4655
6050
|
url: string;
|
|
4656
6051
|
detail?: "auto" | "low" | "high" | undefined;
|
|
4657
6052
|
};
|
|
6053
|
+
cache_control?: {
|
|
6054
|
+
type: "ephemeral";
|
|
6055
|
+
ttl?: "5m" | "1h" | undefined;
|
|
6056
|
+
} | undefined;
|
|
6057
|
+
} | {
|
|
6058
|
+
type: "file";
|
|
6059
|
+
file: {
|
|
6060
|
+
filename?: string | undefined;
|
|
6061
|
+
file_data?: string | undefined;
|
|
6062
|
+
file_id?: string | undefined;
|
|
6063
|
+
};
|
|
6064
|
+
cache_control?: {
|
|
6065
|
+
type: "ephemeral";
|
|
6066
|
+
ttl?: "5m" | "1h" | undefined;
|
|
6067
|
+
} | undefined;
|
|
4658
6068
|
})[];
|
|
4659
6069
|
name?: string | undefined;
|
|
4660
6070
|
} | {
|
|
@@ -4669,6 +6079,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4669
6079
|
text: string;
|
|
4670
6080
|
cache_control?: {
|
|
4671
6081
|
type: "ephemeral";
|
|
6082
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4672
6083
|
} | undefined;
|
|
4673
6084
|
}[] | null | undefined;
|
|
4674
6085
|
tool_calls?: {
|
|
@@ -4683,6 +6094,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4683
6094
|
id?: string | undefined;
|
|
4684
6095
|
content?: string | undefined;
|
|
4685
6096
|
}[] | undefined;
|
|
6097
|
+
reasoning_signature?: string | undefined;
|
|
4686
6098
|
} | {
|
|
4687
6099
|
role: "tool";
|
|
4688
6100
|
content: string | {
|
|
@@ -4690,6 +6102,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4690
6102
|
text: string;
|
|
4691
6103
|
cache_control?: {
|
|
4692
6104
|
type: "ephemeral";
|
|
6105
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4693
6106
|
} | undefined;
|
|
4694
6107
|
}[];
|
|
4695
6108
|
tool_call_id: string;
|
|
@@ -4704,6 +6117,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4704
6117
|
text: string;
|
|
4705
6118
|
cache_control?: {
|
|
4706
6119
|
type: "ephemeral";
|
|
6120
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4707
6121
|
} | undefined;
|
|
4708
6122
|
}[];
|
|
4709
6123
|
name?: string | undefined;
|
|
@@ -4711,6 +6125,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4711
6125
|
role: "model";
|
|
4712
6126
|
content?: string | null | undefined;
|
|
4713
6127
|
})[] | undefined;
|
|
6128
|
+
endpoint_name?: string | null | undefined;
|
|
4714
6129
|
parent?: string | {
|
|
4715
6130
|
object_type: "experiment" | "project_logs" | "playground_logs";
|
|
4716
6131
|
object_id: string;
|
|
@@ -4722,13 +6137,17 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4722
6137
|
propagated_event?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4723
6138
|
} | undefined;
|
|
4724
6139
|
stream?: boolean | null | undefined;
|
|
4725
|
-
mode?: "auto" | "parallel" | null | undefined;
|
|
6140
|
+
mode?: "text" | "auto" | "parallel" | "json" | null | undefined;
|
|
6141
|
+
mcp_auth?: Record<string, {
|
|
6142
|
+
oauth_token?: string | undefined;
|
|
6143
|
+
}> | undefined;
|
|
6144
|
+
overrides?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4726
6145
|
}, {
|
|
4727
6146
|
expected?: unknown;
|
|
4728
6147
|
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4729
6148
|
strict?: boolean | null | undefined;
|
|
4730
|
-
input?: unknown;
|
|
4731
6149
|
tags?: string[] | null | undefined;
|
|
6150
|
+
input?: unknown;
|
|
4732
6151
|
messages?: ({
|
|
4733
6152
|
role: "system";
|
|
4734
6153
|
content: string | {
|
|
@@ -4736,6 +6155,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4736
6155
|
text?: string | undefined;
|
|
4737
6156
|
cache_control?: {
|
|
4738
6157
|
type: "ephemeral";
|
|
6158
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4739
6159
|
} | undefined;
|
|
4740
6160
|
}[];
|
|
4741
6161
|
name?: string | undefined;
|
|
@@ -4746,6 +6166,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4746
6166
|
text?: string | undefined;
|
|
4747
6167
|
cache_control?: {
|
|
4748
6168
|
type: "ephemeral";
|
|
6169
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4749
6170
|
} | undefined;
|
|
4750
6171
|
} | {
|
|
4751
6172
|
type: "image_url";
|
|
@@ -4753,6 +6174,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4753
6174
|
url: string;
|
|
4754
6175
|
detail?: "auto" | "low" | "high" | undefined;
|
|
4755
6176
|
};
|
|
6177
|
+
cache_control?: {
|
|
6178
|
+
type: "ephemeral";
|
|
6179
|
+
ttl?: "5m" | "1h" | undefined;
|
|
6180
|
+
} | undefined;
|
|
6181
|
+
} | {
|
|
6182
|
+
type: "file";
|
|
6183
|
+
file: {
|
|
6184
|
+
filename?: string | undefined;
|
|
6185
|
+
file_data?: string | undefined;
|
|
6186
|
+
file_id?: string | undefined;
|
|
6187
|
+
};
|
|
6188
|
+
cache_control?: {
|
|
6189
|
+
type: "ephemeral";
|
|
6190
|
+
ttl?: "5m" | "1h" | undefined;
|
|
6191
|
+
} | undefined;
|
|
4756
6192
|
})[];
|
|
4757
6193
|
name?: string | undefined;
|
|
4758
6194
|
} | {
|
|
@@ -4767,6 +6203,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4767
6203
|
text?: string | undefined;
|
|
4768
6204
|
cache_control?: {
|
|
4769
6205
|
type: "ephemeral";
|
|
6206
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4770
6207
|
} | undefined;
|
|
4771
6208
|
}[] | null | undefined;
|
|
4772
6209
|
tool_calls?: {
|
|
@@ -4781,6 +6218,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4781
6218
|
id?: string | undefined;
|
|
4782
6219
|
content?: string | undefined;
|
|
4783
6220
|
}[] | undefined;
|
|
6221
|
+
reasoning_signature?: string | undefined;
|
|
4784
6222
|
} | {
|
|
4785
6223
|
role: "tool";
|
|
4786
6224
|
content: string | {
|
|
@@ -4788,6 +6226,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4788
6226
|
text?: string | undefined;
|
|
4789
6227
|
cache_control?: {
|
|
4790
6228
|
type: "ephemeral";
|
|
6229
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4791
6230
|
} | undefined;
|
|
4792
6231
|
}[];
|
|
4793
6232
|
tool_call_id?: string | undefined;
|
|
@@ -4802,6 +6241,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4802
6241
|
text?: string | undefined;
|
|
4803
6242
|
cache_control?: {
|
|
4804
6243
|
type: "ephemeral";
|
|
6244
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4805
6245
|
} | undefined;
|
|
4806
6246
|
}[];
|
|
4807
6247
|
name?: string | undefined;
|
|
@@ -4809,6 +6249,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4809
6249
|
role: "model";
|
|
4810
6250
|
content?: string | null | undefined;
|
|
4811
6251
|
})[] | undefined;
|
|
6252
|
+
endpoint_name?: string | null | undefined;
|
|
4812
6253
|
parent?: string | {
|
|
4813
6254
|
object_type: "experiment" | "project_logs" | "playground_logs";
|
|
4814
6255
|
object_id: string;
|
|
@@ -4820,7 +6261,11 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4820
6261
|
propagated_event?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4821
6262
|
} | undefined;
|
|
4822
6263
|
stream?: boolean | null | undefined;
|
|
4823
|
-
mode?: "auto" | "parallel" | null | undefined;
|
|
6264
|
+
mode?: "text" | "auto" | "parallel" | "json" | null | undefined;
|
|
6265
|
+
mcp_auth?: Record<string, {
|
|
6266
|
+
oauth_token?: string | undefined;
|
|
6267
|
+
}> | undefined;
|
|
6268
|
+
overrides?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4824
6269
|
}>>;
|
|
4825
6270
|
type InvokeFunctionType = z.infer<typeof InvokeFunction>;
|
|
4826
6271
|
declare const ObjectReference: z.ZodObject<{
|