braintrust 3.27.0 → 3.29.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.
Files changed (54) hide show
  1. package/README.md +1 -1
  2. package/dev/dist/index.d.mts +879 -197
  3. package/dev/dist/index.d.ts +879 -197
  4. package/dev/dist/index.js +2960 -1865
  5. package/dev/dist/index.mjs +2217 -1122
  6. package/dist/apply-auto-instrumentation.js +345 -260
  7. package/dist/apply-auto-instrumentation.mjs +137 -52
  8. package/dist/auto-instrumentations/bundler/esbuild.cjs +124 -7
  9. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  10. package/dist/auto-instrumentations/bundler/next.cjs +124 -7
  11. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  12. package/dist/auto-instrumentations/bundler/rollup.cjs +124 -7
  13. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  14. package/dist/auto-instrumentations/bundler/vite.cjs +124 -7
  15. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  16. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +124 -7
  17. package/dist/auto-instrumentations/bundler/webpack.cjs +124 -7
  18. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  19. package/dist/auto-instrumentations/{chunk-ZNHTSSGI.mjs → chunk-AOIYCVEL.mjs} +34 -3
  20. package/dist/auto-instrumentations/{chunk-XEYKUBLY.mjs → chunk-DKTGDNA7.mjs} +91 -5
  21. package/dist/auto-instrumentations/{chunk-BW33ULMW.mjs → chunk-OMCZ3MV2.mjs} +1 -1
  22. package/dist/auto-instrumentations/hook.mjs +1186 -161
  23. package/dist/auto-instrumentations/index.cjs +34 -3
  24. package/dist/auto-instrumentations/index.mjs +1 -1
  25. package/dist/browser.d.mts +1388 -75
  26. package/dist/browser.d.ts +1388 -75
  27. package/dist/browser.js +3954 -1124
  28. package/dist/browser.mjs +3954 -1124
  29. package/dist/{chunk-MF7NU6BT.js → chunk-6Z5S7VOU.js} +175 -25
  30. package/dist/{chunk-CZM5JIQL.mjs → chunk-7FA6VP2S.mjs} +172 -22
  31. package/dist/{chunk-YKD22IMR.mjs → chunk-M6XPNJC4.mjs} +2102 -1113
  32. package/dist/{chunk-QRHGVBKU.js → chunk-XLLGRXGR.js} +3273 -2284
  33. package/dist/cli.js +6353 -1483
  34. package/dist/edge-light.d.mts +1 -1
  35. package/dist/edge-light.d.ts +1 -1
  36. package/dist/edge-light.js +3954 -1124
  37. package/dist/edge-light.mjs +3954 -1124
  38. package/dist/index.d.mts +1972 -659
  39. package/dist/index.d.ts +1972 -659
  40. package/dist/index.js +2453 -676
  41. package/dist/index.mjs +1973 -196
  42. package/dist/instrumentation/index.d.mts +738 -15
  43. package/dist/instrumentation/index.d.ts +738 -15
  44. package/dist/instrumentation/index.js +2791 -874
  45. package/dist/instrumentation/index.mjs +2791 -874
  46. package/dist/vitest-evals-reporter.js +16 -16
  47. package/dist/vitest-evals-reporter.mjs +2 -2
  48. package/dist/workerd.d.mts +1 -1
  49. package/dist/workerd.d.ts +1 -1
  50. package/dist/workerd.js +3954 -1124
  51. package/dist/workerd.mjs +3954 -1124
  52. package/package.json +2 -3
  53. package/util/dist/index.d.mts +1596 -109
  54. package/util/dist/index.d.ts +1596 -109
@@ -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<"add_triggered_functions">;
87
- triggered_function_ids: z.ZodArray<z.ZodUnknown, "many">;
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: "add_triggered_functions";
90
- triggered_function_ids: unknown[];
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: "add_triggered_functions";
93
- triggered_function_ids: unknown[];
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" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
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" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
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,140 @@ 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: Record<string, number>;
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: Record<string, number>;
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;
1738
+ }>, z.ZodObject<{
1739
+ type: z.ZodLiteral<"inline">;
1740
+ code: z.ZodString;
1741
+ }, "strip", z.ZodTypeAny, {
1742
+ code: string;
1743
+ type: "inline";
1744
+ }, {
1745
+ code: string;
1746
+ type: "inline";
1289
1747
  }>, z.ZodNull]>>;
1290
1748
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
1291
1749
  type: z.ZodLiteral<"function">;
1292
1750
  id: z.ZodString;
1751
+ version: z.ZodOptional<z.ZodString>;
1293
1752
  }, "strip", z.ZodTypeAny, {
1294
1753
  id: string;
1295
1754
  type: "function";
1755
+ version?: string | undefined;
1296
1756
  }, {
1297
1757
  id: string;
1298
1758
  type: "function";
1759
+ version?: string | undefined;
1299
1760
  }>, z.ZodObject<{
1300
1761
  type: z.ZodLiteral<"global">;
1301
1762
  name: z.ZodString;
1763
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
1302
1764
  }, "strip", z.ZodTypeAny, {
1303
1765
  type: "global";
1304
1766
  name: string;
1767
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
1305
1768
  }, {
1306
1769
  type: "global";
1307
1770
  name: string;
1771
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
1308
1772
  }>]>, "many">, z.ZodNull]>>;
1773
+ template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
1774
+ mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1775
+ type: z.ZodLiteral<"id">;
1776
+ id: z.ZodString;
1777
+ is_disabled: z.ZodOptional<z.ZodBoolean>;
1778
+ enabled_tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
1779
+ }, "strip", z.ZodTypeAny, {
1780
+ id: string;
1781
+ type: "id";
1782
+ is_disabled?: boolean | undefined;
1783
+ enabled_tools?: string[] | null | undefined;
1784
+ }, {
1785
+ id: string;
1786
+ type: "id";
1787
+ is_disabled?: boolean | undefined;
1788
+ enabled_tools?: string[] | null | undefined;
1789
+ }>, z.ZodObject<{
1790
+ type: z.ZodLiteral<"url">;
1791
+ url: z.ZodString;
1792
+ is_disabled: z.ZodOptional<z.ZodBoolean>;
1793
+ enabled_tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
1794
+ }, "strip", z.ZodTypeAny, {
1795
+ type: "url";
1796
+ url: string;
1797
+ is_disabled?: boolean | undefined;
1798
+ enabled_tools?: string[] | null | undefined;
1799
+ }, {
1800
+ type: "url";
1801
+ url: string;
1802
+ is_disabled?: boolean | undefined;
1803
+ enabled_tools?: string[] | null | undefined;
1804
+ }>]>>, z.ZodNull]>>;
1309
1805
  origin: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1310
1806
  prompt_id: z.ZodOptional<z.ZodString>;
1311
1807
  project_id: z.ZodOptional<z.ZodString>;
@@ -1323,6 +1819,8 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1323
1819
  options?: {
1324
1820
  params?: z.objectOutputType<{
1325
1821
  use_cache: z.ZodOptional<z.ZodBoolean>;
1822
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
1823
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1326
1824
  temperature: z.ZodOptional<z.ZodNumber>;
1327
1825
  top_p: z.ZodOptional<z.ZodNumber>;
1328
1826
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -1405,10 +1903,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1405
1903
  }>]>>;
1406
1904
  n: z.ZodOptional<z.ZodNumber>;
1407
1905
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1408
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
1906
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
1409
1907
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1410
1908
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1411
1909
  use_cache: z.ZodOptional<z.ZodBoolean>;
1910
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
1911
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1412
1912
  max_tokens: z.ZodNumber;
1413
1913
  temperature: z.ZodNumber;
1414
1914
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -1417,24 +1917,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1417
1917
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
1418
1918
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1419
1919
  use_cache: z.ZodOptional<z.ZodBoolean>;
1920
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
1921
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1420
1922
  temperature: z.ZodOptional<z.ZodNumber>;
1421
1923
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1422
1924
  topP: z.ZodOptional<z.ZodNumber>;
1423
1925
  topK: z.ZodOptional<z.ZodNumber>;
1424
1926
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1425
1927
  use_cache: z.ZodOptional<z.ZodBoolean>;
1928
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
1929
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1426
1930
  temperature: z.ZodOptional<z.ZodNumber>;
1427
1931
  topK: z.ZodOptional<z.ZodNumber>;
1428
1932
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1429
1933
  use_cache: z.ZodOptional<z.ZodBoolean>;
1934
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
1935
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1430
1936
  }, z.ZodTypeAny, "passthrough"> | undefined;
1431
1937
  model?: string | undefined;
1432
1938
  position?: string | undefined;
1939
+ endpoint_name?: string | null | undefined;
1433
1940
  } | null | undefined;
1434
1941
  prompt?: {
1435
- type: "completion";
1436
- content: string;
1437
- } | {
1438
1942
  type: "chat";
1439
1943
  messages: ({
1440
1944
  role: "system";
@@ -1443,6 +1947,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1443
1947
  text: string;
1444
1948
  cache_control?: {
1445
1949
  type: "ephemeral";
1950
+ ttl?: "5m" | "1h" | undefined;
1446
1951
  } | undefined;
1447
1952
  }[];
1448
1953
  name?: string | undefined;
@@ -1453,6 +1958,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1453
1958
  text: string;
1454
1959
  cache_control?: {
1455
1960
  type: "ephemeral";
1961
+ ttl?: "5m" | "1h" | undefined;
1456
1962
  } | undefined;
1457
1963
  } | {
1458
1964
  type: "image_url";
@@ -1460,6 +1966,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1460
1966
  url: string;
1461
1967
  detail?: "auto" | "low" | "high" | undefined;
1462
1968
  };
1969
+ cache_control?: {
1970
+ type: "ephemeral";
1971
+ ttl?: "5m" | "1h" | undefined;
1972
+ } | undefined;
1973
+ } | {
1974
+ type: "file";
1975
+ file: {
1976
+ filename?: string | undefined;
1977
+ file_data?: string | undefined;
1978
+ file_id?: string | undefined;
1979
+ };
1980
+ cache_control?: {
1981
+ type: "ephemeral";
1982
+ ttl?: "5m" | "1h" | undefined;
1983
+ } | undefined;
1463
1984
  })[];
1464
1985
  name?: string | undefined;
1465
1986
  } | {
@@ -1474,6 +1995,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1474
1995
  text: string;
1475
1996
  cache_control?: {
1476
1997
  type: "ephemeral";
1998
+ ttl?: "5m" | "1h" | undefined;
1477
1999
  } | undefined;
1478
2000
  }[] | null | undefined;
1479
2001
  tool_calls?: {
@@ -1488,6 +2010,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1488
2010
  id?: string | undefined;
1489
2011
  content?: string | undefined;
1490
2012
  }[] | undefined;
2013
+ reasoning_signature?: string | undefined;
1491
2014
  } | {
1492
2015
  role: "tool";
1493
2016
  content: string | {
@@ -1495,6 +2018,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1495
2018
  text: string;
1496
2019
  cache_control?: {
1497
2020
  type: "ephemeral";
2021
+ ttl?: "5m" | "1h" | undefined;
1498
2022
  } | undefined;
1499
2023
  }[];
1500
2024
  tool_call_id: string;
@@ -1509,6 +2033,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1509
2033
  text: string;
1510
2034
  cache_control?: {
1511
2035
  type: "ephemeral";
2036
+ ttl?: "5m" | "1h" | undefined;
1512
2037
  } | undefined;
1513
2038
  }[];
1514
2039
  name?: string | undefined;
@@ -1517,6 +2042,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1517
2042
  content?: string | null | undefined;
1518
2043
  })[];
1519
2044
  tools?: string | undefined;
2045
+ } | {
2046
+ type: "completion";
2047
+ content: string;
2048
+ } | null | undefined;
2049
+ preprocessor?: {
2050
+ id: string;
2051
+ type: "function";
2052
+ version?: string | undefined;
2053
+ } | {
2054
+ type: "global";
2055
+ name: string;
2056
+ function_type: "preprocessor";
2057
+ } | {
2058
+ code: string;
2059
+ type: "inline";
1520
2060
  } | null | undefined;
1521
2061
  origin?: {
1522
2062
  project_id?: string | undefined;
@@ -1526,19 +2066,38 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1526
2066
  parser?: {
1527
2067
  type: "llm_classifier";
1528
2068
  use_cot: boolean;
1529
- choice_scores: Record<string, number>;
2069
+ choice_scores?: Record<string, number> | undefined;
2070
+ choice?: string[] | undefined;
2071
+ allow_no_match?: boolean | undefined;
2072
+ allow_skip?: boolean | undefined;
1530
2073
  } | null | undefined;
1531
2074
  tool_functions?: ({
1532
2075
  id: string;
1533
2076
  type: "function";
2077
+ version?: string | undefined;
1534
2078
  } | {
1535
2079
  type: "global";
1536
2080
  name: string;
2081
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
1537
2082
  })[] | null | undefined;
2083
+ template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
2084
+ mcp?: Record<string, {
2085
+ id: string;
2086
+ type: "id";
2087
+ is_disabled?: boolean | undefined;
2088
+ enabled_tools?: string[] | null | undefined;
2089
+ } | {
2090
+ type: "url";
2091
+ url: string;
2092
+ is_disabled?: boolean | undefined;
2093
+ enabled_tools?: string[] | null | undefined;
2094
+ }> | null | undefined;
1538
2095
  }, {
1539
2096
  options?: {
1540
2097
  params?: z.objectInputType<{
1541
2098
  use_cache: z.ZodOptional<z.ZodBoolean>;
2099
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2100
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1542
2101
  temperature: z.ZodOptional<z.ZodNumber>;
1543
2102
  top_p: z.ZodOptional<z.ZodNumber>;
1544
2103
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -1621,10 +2180,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1621
2180
  }>]>>;
1622
2181
  n: z.ZodOptional<z.ZodNumber>;
1623
2182
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1624
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
2183
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
1625
2184
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1626
2185
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1627
2186
  use_cache: z.ZodOptional<z.ZodBoolean>;
2187
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2188
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1628
2189
  max_tokens: z.ZodNumber;
1629
2190
  temperature: z.ZodNumber;
1630
2191
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -1633,24 +2194,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1633
2194
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
1634
2195
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1635
2196
  use_cache: z.ZodOptional<z.ZodBoolean>;
2197
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2198
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1636
2199
  temperature: z.ZodOptional<z.ZodNumber>;
1637
2200
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1638
2201
  topP: z.ZodOptional<z.ZodNumber>;
1639
2202
  topK: z.ZodOptional<z.ZodNumber>;
1640
2203
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1641
2204
  use_cache: z.ZodOptional<z.ZodBoolean>;
2205
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2206
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1642
2207
  temperature: z.ZodOptional<z.ZodNumber>;
1643
2208
  topK: z.ZodOptional<z.ZodNumber>;
1644
2209
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1645
2210
  use_cache: z.ZodOptional<z.ZodBoolean>;
2211
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2212
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1646
2213
  }, z.ZodTypeAny, "passthrough"> | undefined;
1647
2214
  model?: string | undefined;
1648
2215
  position?: string | undefined;
2216
+ endpoint_name?: string | null | undefined;
1649
2217
  } | null | undefined;
1650
2218
  prompt?: {
1651
- type: "completion";
1652
- content: string;
1653
- } | {
1654
2219
  type: "chat";
1655
2220
  messages: ({
1656
2221
  role: "system";
@@ -1659,6 +2224,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1659
2224
  text?: string | undefined;
1660
2225
  cache_control?: {
1661
2226
  type: "ephemeral";
2227
+ ttl?: "5m" | "1h" | undefined;
1662
2228
  } | undefined;
1663
2229
  }[];
1664
2230
  name?: string | undefined;
@@ -1669,6 +2235,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1669
2235
  text?: string | undefined;
1670
2236
  cache_control?: {
1671
2237
  type: "ephemeral";
2238
+ ttl?: "5m" | "1h" | undefined;
1672
2239
  } | undefined;
1673
2240
  } | {
1674
2241
  type: "image_url";
@@ -1676,6 +2243,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1676
2243
  url: string;
1677
2244
  detail?: "auto" | "low" | "high" | undefined;
1678
2245
  };
2246
+ cache_control?: {
2247
+ type: "ephemeral";
2248
+ ttl?: "5m" | "1h" | undefined;
2249
+ } | undefined;
2250
+ } | {
2251
+ type: "file";
2252
+ file: {
2253
+ filename?: string | undefined;
2254
+ file_data?: string | undefined;
2255
+ file_id?: string | undefined;
2256
+ };
2257
+ cache_control?: {
2258
+ type: "ephemeral";
2259
+ ttl?: "5m" | "1h" | undefined;
2260
+ } | undefined;
1679
2261
  })[];
1680
2262
  name?: string | undefined;
1681
2263
  } | {
@@ -1690,6 +2272,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1690
2272
  text?: string | undefined;
1691
2273
  cache_control?: {
1692
2274
  type: "ephemeral";
2275
+ ttl?: "5m" | "1h" | undefined;
1693
2276
  } | undefined;
1694
2277
  }[] | null | undefined;
1695
2278
  tool_calls?: {
@@ -1704,6 +2287,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1704
2287
  id?: string | undefined;
1705
2288
  content?: string | undefined;
1706
2289
  }[] | undefined;
2290
+ reasoning_signature?: string | undefined;
1707
2291
  } | {
1708
2292
  role: "tool";
1709
2293
  content: string | {
@@ -1711,6 +2295,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1711
2295
  text?: string | undefined;
1712
2296
  cache_control?: {
1713
2297
  type: "ephemeral";
2298
+ ttl?: "5m" | "1h" | undefined;
1714
2299
  } | undefined;
1715
2300
  }[];
1716
2301
  tool_call_id?: string | undefined;
@@ -1725,6 +2310,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1725
2310
  text?: string | undefined;
1726
2311
  cache_control?: {
1727
2312
  type: "ephemeral";
2313
+ ttl?: "5m" | "1h" | undefined;
1728
2314
  } | undefined;
1729
2315
  }[];
1730
2316
  name?: string | undefined;
@@ -1733,6 +2319,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1733
2319
  content?: string | null | undefined;
1734
2320
  })[];
1735
2321
  tools?: string | undefined;
2322
+ } | {
2323
+ type: "completion";
2324
+ content: string;
2325
+ } | null | undefined;
2326
+ preprocessor?: {
2327
+ id: string;
2328
+ type: "function";
2329
+ version?: string | undefined;
2330
+ } | {
2331
+ type: "global";
2332
+ name: string;
2333
+ function_type?: "preprocessor" | undefined;
2334
+ } | {
2335
+ code: string;
2336
+ type: "inline";
1736
2337
  } | null | undefined;
1737
2338
  origin?: {
1738
2339
  project_id?: string | undefined;
@@ -1742,29 +2343,48 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1742
2343
  parser?: {
1743
2344
  type: "llm_classifier";
1744
2345
  use_cot: boolean;
1745
- choice_scores: Record<string, number>;
2346
+ choice_scores?: Record<string, number> | undefined;
2347
+ choice?: string[] | undefined;
2348
+ allow_no_match?: boolean | undefined;
2349
+ allow_skip?: boolean | undefined;
1746
2350
  } | null | undefined;
1747
2351
  tool_functions?: ({
1748
2352
  id: string;
1749
2353
  type: "function";
2354
+ version?: string | undefined;
1750
2355
  } | {
1751
2356
  type: "global";
1752
2357
  name: string;
2358
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
1753
2359
  })[] | null | undefined;
2360
+ template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
2361
+ mcp?: Record<string, {
2362
+ id: string;
2363
+ type: "id";
2364
+ is_disabled?: boolean | undefined;
2365
+ enabled_tools?: string[] | null | undefined;
2366
+ } | {
2367
+ type: "url";
2368
+ url: string;
2369
+ is_disabled?: boolean | undefined;
2370
+ enabled_tools?: string[] | null | undefined;
2371
+ }> | null | undefined;
1754
2372
  }>>;
1755
2373
  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"]>>;
2374
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
1757
2375
  name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1758
2376
  }, "strip", z.ZodTypeAny, {
2377
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
1759
2378
  inline_function: {} & {
1760
2379
  [k: string]: unknown;
1761
2380
  };
1762
2381
  name?: string | null | undefined;
1763
- function_type?: "tool" | "task" | "scorer" | "llm" | undefined;
1764
2382
  inline_prompt?: {
1765
2383
  options?: {
1766
2384
  params?: z.objectOutputType<{
1767
2385
  use_cache: z.ZodOptional<z.ZodBoolean>;
2386
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2387
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1768
2388
  temperature: z.ZodOptional<z.ZodNumber>;
1769
2389
  top_p: z.ZodOptional<z.ZodNumber>;
1770
2390
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -1847,10 +2467,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1847
2467
  }>]>>;
1848
2468
  n: z.ZodOptional<z.ZodNumber>;
1849
2469
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1850
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
2470
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
1851
2471
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1852
2472
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1853
2473
  use_cache: z.ZodOptional<z.ZodBoolean>;
2474
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2475
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1854
2476
  max_tokens: z.ZodNumber;
1855
2477
  temperature: z.ZodNumber;
1856
2478
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -1859,24 +2481,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1859
2481
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
1860
2482
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1861
2483
  use_cache: z.ZodOptional<z.ZodBoolean>;
2484
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2485
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1862
2486
  temperature: z.ZodOptional<z.ZodNumber>;
1863
2487
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1864
2488
  topP: z.ZodOptional<z.ZodNumber>;
1865
2489
  topK: z.ZodOptional<z.ZodNumber>;
1866
2490
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1867
2491
  use_cache: z.ZodOptional<z.ZodBoolean>;
2492
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2493
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1868
2494
  temperature: z.ZodOptional<z.ZodNumber>;
1869
2495
  topK: z.ZodOptional<z.ZodNumber>;
1870
2496
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1871
2497
  use_cache: z.ZodOptional<z.ZodBoolean>;
2498
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2499
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1872
2500
  }, z.ZodTypeAny, "passthrough"> | undefined;
1873
2501
  model?: string | undefined;
1874
2502
  position?: string | undefined;
2503
+ endpoint_name?: string | null | undefined;
1875
2504
  } | null | undefined;
1876
2505
  prompt?: {
1877
- type: "completion";
1878
- content: string;
1879
- } | {
1880
2506
  type: "chat";
1881
2507
  messages: ({
1882
2508
  role: "system";
@@ -1885,6 +2511,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1885
2511
  text: string;
1886
2512
  cache_control?: {
1887
2513
  type: "ephemeral";
2514
+ ttl?: "5m" | "1h" | undefined;
1888
2515
  } | undefined;
1889
2516
  }[];
1890
2517
  name?: string | undefined;
@@ -1895,6 +2522,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1895
2522
  text: string;
1896
2523
  cache_control?: {
1897
2524
  type: "ephemeral";
2525
+ ttl?: "5m" | "1h" | undefined;
1898
2526
  } | undefined;
1899
2527
  } | {
1900
2528
  type: "image_url";
@@ -1902,6 +2530,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1902
2530
  url: string;
1903
2531
  detail?: "auto" | "low" | "high" | undefined;
1904
2532
  };
2533
+ cache_control?: {
2534
+ type: "ephemeral";
2535
+ ttl?: "5m" | "1h" | undefined;
2536
+ } | undefined;
2537
+ } | {
2538
+ type: "file";
2539
+ file: {
2540
+ filename?: string | undefined;
2541
+ file_data?: string | undefined;
2542
+ file_id?: string | undefined;
2543
+ };
2544
+ cache_control?: {
2545
+ type: "ephemeral";
2546
+ ttl?: "5m" | "1h" | undefined;
2547
+ } | undefined;
1905
2548
  })[];
1906
2549
  name?: string | undefined;
1907
2550
  } | {
@@ -1916,6 +2559,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1916
2559
  text: string;
1917
2560
  cache_control?: {
1918
2561
  type: "ephemeral";
2562
+ ttl?: "5m" | "1h" | undefined;
1919
2563
  } | undefined;
1920
2564
  }[] | null | undefined;
1921
2565
  tool_calls?: {
@@ -1930,6 +2574,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1930
2574
  id?: string | undefined;
1931
2575
  content?: string | undefined;
1932
2576
  }[] | undefined;
2577
+ reasoning_signature?: string | undefined;
1933
2578
  } | {
1934
2579
  role: "tool";
1935
2580
  content: string | {
@@ -1937,6 +2582,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1937
2582
  text: string;
1938
2583
  cache_control?: {
1939
2584
  type: "ephemeral";
2585
+ ttl?: "5m" | "1h" | undefined;
1940
2586
  } | undefined;
1941
2587
  }[];
1942
2588
  tool_call_id: string;
@@ -1951,6 +2597,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1951
2597
  text: string;
1952
2598
  cache_control?: {
1953
2599
  type: "ephemeral";
2600
+ ttl?: "5m" | "1h" | undefined;
1954
2601
  } | undefined;
1955
2602
  }[];
1956
2603
  name?: string | undefined;
@@ -1959,6 +2606,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1959
2606
  content?: string | null | undefined;
1960
2607
  })[];
1961
2608
  tools?: string | undefined;
2609
+ } | {
2610
+ type: "completion";
2611
+ content: string;
2612
+ } | null | undefined;
2613
+ preprocessor?: {
2614
+ id: string;
2615
+ type: "function";
2616
+ version?: string | undefined;
2617
+ } | {
2618
+ type: "global";
2619
+ name: string;
2620
+ function_type: "preprocessor";
2621
+ } | {
2622
+ code: string;
2623
+ type: "inline";
1962
2624
  } | null | undefined;
1963
2625
  origin?: {
1964
2626
  project_id?: string | undefined;
@@ -1968,26 +2630,45 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1968
2630
  parser?: {
1969
2631
  type: "llm_classifier";
1970
2632
  use_cot: boolean;
1971
- choice_scores: Record<string, number>;
2633
+ choice_scores?: Record<string, number> | undefined;
2634
+ choice?: string[] | undefined;
2635
+ allow_no_match?: boolean | undefined;
2636
+ allow_skip?: boolean | undefined;
1972
2637
  } | null | undefined;
1973
2638
  tool_functions?: ({
1974
2639
  id: string;
1975
2640
  type: "function";
2641
+ version?: string | undefined;
1976
2642
  } | {
1977
2643
  type: "global";
1978
2644
  name: string;
2645
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
1979
2646
  })[] | null | undefined;
2647
+ template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
2648
+ mcp?: Record<string, {
2649
+ id: string;
2650
+ type: "id";
2651
+ is_disabled?: boolean | undefined;
2652
+ enabled_tools?: string[] | null | undefined;
2653
+ } | {
2654
+ type: "url";
2655
+ url: string;
2656
+ is_disabled?: boolean | undefined;
2657
+ enabled_tools?: string[] | null | undefined;
2658
+ }> | null | undefined;
1980
2659
  } | undefined;
1981
2660
  }, {
1982
2661
  inline_function: {} & {
1983
2662
  [k: string]: unknown;
1984
2663
  };
1985
2664
  name?: string | null | undefined;
1986
- function_type?: "tool" | "task" | "scorer" | "llm" | undefined;
2665
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
1987
2666
  inline_prompt?: {
1988
2667
  options?: {
1989
2668
  params?: z.objectInputType<{
1990
2669
  use_cache: z.ZodOptional<z.ZodBoolean>;
2670
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2671
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
1991
2672
  temperature: z.ZodOptional<z.ZodNumber>;
1992
2673
  top_p: z.ZodOptional<z.ZodNumber>;
1993
2674
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -2070,10 +2751,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2070
2751
  }>]>>;
2071
2752
  n: z.ZodOptional<z.ZodNumber>;
2072
2753
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2073
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
2754
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
2074
2755
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
2075
2756
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2076
2757
  use_cache: z.ZodOptional<z.ZodBoolean>;
2758
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2759
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
2077
2760
  max_tokens: z.ZodNumber;
2078
2761
  temperature: z.ZodNumber;
2079
2762
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -2082,24 +2765,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2082
2765
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
2083
2766
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2084
2767
  use_cache: z.ZodOptional<z.ZodBoolean>;
2768
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2769
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
2085
2770
  temperature: z.ZodOptional<z.ZodNumber>;
2086
2771
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
2087
2772
  topP: z.ZodOptional<z.ZodNumber>;
2088
2773
  topK: z.ZodOptional<z.ZodNumber>;
2089
2774
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2090
2775
  use_cache: z.ZodOptional<z.ZodBoolean>;
2776
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2777
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
2091
2778
  temperature: z.ZodOptional<z.ZodNumber>;
2092
2779
  topK: z.ZodOptional<z.ZodNumber>;
2093
2780
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2094
2781
  use_cache: z.ZodOptional<z.ZodBoolean>;
2782
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
2783
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
2095
2784
  }, z.ZodTypeAny, "passthrough"> | undefined;
2096
2785
  model?: string | undefined;
2097
2786
  position?: string | undefined;
2787
+ endpoint_name?: string | null | undefined;
2098
2788
  } | null | undefined;
2099
2789
  prompt?: {
2100
- type: "completion";
2101
- content: string;
2102
- } | {
2103
2790
  type: "chat";
2104
2791
  messages: ({
2105
2792
  role: "system";
@@ -2108,6 +2795,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2108
2795
  text?: string | undefined;
2109
2796
  cache_control?: {
2110
2797
  type: "ephemeral";
2798
+ ttl?: "5m" | "1h" | undefined;
2111
2799
  } | undefined;
2112
2800
  }[];
2113
2801
  name?: string | undefined;
@@ -2118,6 +2806,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2118
2806
  text?: string | undefined;
2119
2807
  cache_control?: {
2120
2808
  type: "ephemeral";
2809
+ ttl?: "5m" | "1h" | undefined;
2121
2810
  } | undefined;
2122
2811
  } | {
2123
2812
  type: "image_url";
@@ -2125,6 +2814,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2125
2814
  url: string;
2126
2815
  detail?: "auto" | "low" | "high" | undefined;
2127
2816
  };
2817
+ cache_control?: {
2818
+ type: "ephemeral";
2819
+ ttl?: "5m" | "1h" | undefined;
2820
+ } | undefined;
2821
+ } | {
2822
+ type: "file";
2823
+ file: {
2824
+ filename?: string | undefined;
2825
+ file_data?: string | undefined;
2826
+ file_id?: string | undefined;
2827
+ };
2828
+ cache_control?: {
2829
+ type: "ephemeral";
2830
+ ttl?: "5m" | "1h" | undefined;
2831
+ } | undefined;
2128
2832
  })[];
2129
2833
  name?: string | undefined;
2130
2834
  } | {
@@ -2139,6 +2843,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2139
2843
  text?: string | undefined;
2140
2844
  cache_control?: {
2141
2845
  type: "ephemeral";
2846
+ ttl?: "5m" | "1h" | undefined;
2142
2847
  } | undefined;
2143
2848
  }[] | null | undefined;
2144
2849
  tool_calls?: {
@@ -2153,6 +2858,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2153
2858
  id?: string | undefined;
2154
2859
  content?: string | undefined;
2155
2860
  }[] | undefined;
2861
+ reasoning_signature?: string | undefined;
2156
2862
  } | {
2157
2863
  role: "tool";
2158
2864
  content: string | {
@@ -2160,6 +2866,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2160
2866
  text?: string | undefined;
2161
2867
  cache_control?: {
2162
2868
  type: "ephemeral";
2869
+ ttl?: "5m" | "1h" | undefined;
2163
2870
  } | undefined;
2164
2871
  }[];
2165
2872
  tool_call_id?: string | undefined;
@@ -2174,6 +2881,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2174
2881
  text?: string | undefined;
2175
2882
  cache_control?: {
2176
2883
  type: "ephemeral";
2884
+ ttl?: "5m" | "1h" | undefined;
2177
2885
  } | undefined;
2178
2886
  }[];
2179
2887
  name?: string | undefined;
@@ -2182,6 +2890,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2182
2890
  content?: string | null | undefined;
2183
2891
  })[];
2184
2892
  tools?: string | undefined;
2893
+ } | {
2894
+ type: "completion";
2895
+ content: string;
2896
+ } | null | undefined;
2897
+ preprocessor?: {
2898
+ id: string;
2899
+ type: "function";
2900
+ version?: string | undefined;
2901
+ } | {
2902
+ type: "global";
2903
+ name: string;
2904
+ function_type?: "preprocessor" | undefined;
2905
+ } | {
2906
+ code: string;
2907
+ type: "inline";
2185
2908
  } | null | undefined;
2186
2909
  origin?: {
2187
2910
  project_id?: string | undefined;
@@ -2191,28 +2914,36 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2191
2914
  parser?: {
2192
2915
  type: "llm_classifier";
2193
2916
  use_cot: boolean;
2194
- choice_scores: Record<string, number>;
2917
+ choice_scores?: Record<string, number> | undefined;
2918
+ choice?: string[] | undefined;
2919
+ allow_no_match?: boolean | undefined;
2920
+ allow_skip?: boolean | undefined;
2195
2921
  } | null | undefined;
2196
2922
  tool_functions?: ({
2197
2923
  id: string;
2198
2924
  type: "function";
2925
+ version?: string | undefined;
2199
2926
  } | {
2200
2927
  type: "global";
2201
2928
  name: string;
2929
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
2202
2930
  })[] | null | undefined;
2931
+ template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
2932
+ mcp?: Record<string, {
2933
+ id: string;
2934
+ type: "id";
2935
+ is_disabled?: boolean | undefined;
2936
+ enabled_tools?: string[] | null | undefined;
2937
+ } | {
2938
+ type: "url";
2939
+ url: string;
2940
+ is_disabled?: boolean | undefined;
2941
+ enabled_tools?: string[] | null | undefined;
2942
+ }> | null | undefined;
2203
2943
  } | undefined;
2204
2944
  }>, z.ZodObject<{
2205
2945
  inline_prompt: z.ZodObject<{
2206
2946
  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
2947
  type: z.ZodLiteral<"chat">;
2217
2948
  messages: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2218
2949
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
@@ -2220,22 +2951,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2220
2951
  type: z.ZodLiteral<"text">;
2221
2952
  cache_control: z.ZodOptional<z.ZodObject<{
2222
2953
  type: z.ZodLiteral<"ephemeral">;
2954
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
2223
2955
  }, "strip", z.ZodTypeAny, {
2224
2956
  type: "ephemeral";
2957
+ ttl?: "5m" | "1h" | undefined;
2225
2958
  }, {
2226
2959
  type: "ephemeral";
2960
+ ttl?: "5m" | "1h" | undefined;
2227
2961
  }>>;
2228
2962
  }, "strip", z.ZodTypeAny, {
2229
2963
  type: "text";
2230
2964
  text: string;
2231
2965
  cache_control?: {
2232
2966
  type: "ephemeral";
2967
+ ttl?: "5m" | "1h" | undefined;
2233
2968
  } | undefined;
2234
2969
  }, {
2235
2970
  type: "text";
2236
2971
  text?: string | undefined;
2237
2972
  cache_control?: {
2238
2973
  type: "ephemeral";
2974
+ ttl?: "5m" | "1h" | undefined;
2239
2975
  } | undefined;
2240
2976
  }>, "many">]>;
2241
2977
  role: z.ZodLiteral<"system">;
@@ -2247,6 +2983,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2247
2983
  text: string;
2248
2984
  cache_control?: {
2249
2985
  type: "ephemeral";
2986
+ ttl?: "5m" | "1h" | undefined;
2250
2987
  } | undefined;
2251
2988
  }[];
2252
2989
  name?: string | undefined;
@@ -2257,6 +2994,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2257
2994
  text?: string | undefined;
2258
2995
  cache_control?: {
2259
2996
  type: "ephemeral";
2997
+ ttl?: "5m" | "1h" | undefined;
2260
2998
  } | undefined;
2261
2999
  }[];
2262
3000
  name?: string | undefined;
@@ -2266,22 +3004,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2266
3004
  type: z.ZodLiteral<"text">;
2267
3005
  cache_control: z.ZodOptional<z.ZodObject<{
2268
3006
  type: z.ZodLiteral<"ephemeral">;
3007
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
2269
3008
  }, "strip", z.ZodTypeAny, {
2270
3009
  type: "ephemeral";
3010
+ ttl?: "5m" | "1h" | undefined;
2271
3011
  }, {
2272
3012
  type: "ephemeral";
3013
+ ttl?: "5m" | "1h" | undefined;
2273
3014
  }>>;
2274
3015
  }, "strip", z.ZodTypeAny, {
2275
3016
  type: "text";
2276
3017
  text: string;
2277
3018
  cache_control?: {
2278
3019
  type: "ephemeral";
3020
+ ttl?: "5m" | "1h" | undefined;
2279
3021
  } | undefined;
2280
3022
  }, {
2281
3023
  type: "text";
2282
3024
  text?: string | undefined;
2283
3025
  cache_control?: {
2284
3026
  type: "ephemeral";
3027
+ ttl?: "5m" | "1h" | undefined;
2285
3028
  } | undefined;
2286
3029
  }>, z.ZodObject<{
2287
3030
  image_url: z.ZodObject<{
@@ -2294,19 +3037,84 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2294
3037
  url: string;
2295
3038
  detail?: "auto" | "low" | "high" | undefined;
2296
3039
  }>;
2297
- type: z.ZodLiteral<"image_url">;
3040
+ type: z.ZodLiteral<"image_url">;
3041
+ cache_control: z.ZodOptional<z.ZodObject<{
3042
+ type: z.ZodLiteral<"ephemeral">;
3043
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
3044
+ }, "strip", z.ZodTypeAny, {
3045
+ type: "ephemeral";
3046
+ ttl?: "5m" | "1h" | undefined;
3047
+ }, {
3048
+ type: "ephemeral";
3049
+ ttl?: "5m" | "1h" | undefined;
3050
+ }>>;
3051
+ }, "strip", z.ZodTypeAny, {
3052
+ type: "image_url";
3053
+ image_url: {
3054
+ url: string;
3055
+ detail?: "auto" | "low" | "high" | undefined;
3056
+ };
3057
+ cache_control?: {
3058
+ type: "ephemeral";
3059
+ ttl?: "5m" | "1h" | undefined;
3060
+ } | undefined;
3061
+ }, {
3062
+ type: "image_url";
3063
+ image_url: {
3064
+ url: string;
3065
+ detail?: "auto" | "low" | "high" | undefined;
3066
+ };
3067
+ cache_control?: {
3068
+ type: "ephemeral";
3069
+ ttl?: "5m" | "1h" | undefined;
3070
+ } | undefined;
3071
+ }>, z.ZodObject<{
3072
+ file: z.ZodObject<{
3073
+ file_data: z.ZodOptional<z.ZodString>;
3074
+ filename: z.ZodOptional<z.ZodString>;
3075
+ file_id: z.ZodOptional<z.ZodString>;
3076
+ }, "strip", z.ZodTypeAny, {
3077
+ filename?: string | undefined;
3078
+ file_data?: string | undefined;
3079
+ file_id?: string | undefined;
3080
+ }, {
3081
+ filename?: string | undefined;
3082
+ file_data?: string | undefined;
3083
+ file_id?: string | undefined;
3084
+ }>;
3085
+ type: z.ZodLiteral<"file">;
3086
+ cache_control: z.ZodOptional<z.ZodObject<{
3087
+ type: z.ZodLiteral<"ephemeral">;
3088
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
3089
+ }, "strip", z.ZodTypeAny, {
3090
+ type: "ephemeral";
3091
+ ttl?: "5m" | "1h" | undefined;
3092
+ }, {
3093
+ type: "ephemeral";
3094
+ ttl?: "5m" | "1h" | undefined;
3095
+ }>>;
2298
3096
  }, "strip", z.ZodTypeAny, {
2299
- type: "image_url";
2300
- image_url: {
2301
- url: string;
2302
- detail?: "auto" | "low" | "high" | undefined;
3097
+ type: "file";
3098
+ file: {
3099
+ filename?: string | undefined;
3100
+ file_data?: string | undefined;
3101
+ file_id?: string | undefined;
2303
3102
  };
3103
+ cache_control?: {
3104
+ type: "ephemeral";
3105
+ ttl?: "5m" | "1h" | undefined;
3106
+ } | undefined;
2304
3107
  }, {
2305
- type: "image_url";
2306
- image_url: {
2307
- url: string;
2308
- detail?: "auto" | "low" | "high" | undefined;
3108
+ type: "file";
3109
+ file: {
3110
+ filename?: string | undefined;
3111
+ file_data?: string | undefined;
3112
+ file_id?: string | undefined;
2309
3113
  };
3114
+ cache_control?: {
3115
+ type: "ephemeral";
3116
+ ttl?: "5m" | "1h" | undefined;
3117
+ } | undefined;
2310
3118
  }>]>, "many">]>;
2311
3119
  role: z.ZodLiteral<"user">;
2312
3120
  name: z.ZodOptional<z.ZodString>;
@@ -2317,6 +3125,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2317
3125
  text: string;
2318
3126
  cache_control?: {
2319
3127
  type: "ephemeral";
3128
+ ttl?: "5m" | "1h" | undefined;
2320
3129
  } | undefined;
2321
3130
  } | {
2322
3131
  type: "image_url";
@@ -2324,6 +3133,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2324
3133
  url: string;
2325
3134
  detail?: "auto" | "low" | "high" | undefined;
2326
3135
  };
3136
+ cache_control?: {
3137
+ type: "ephemeral";
3138
+ ttl?: "5m" | "1h" | undefined;
3139
+ } | undefined;
3140
+ } | {
3141
+ type: "file";
3142
+ file: {
3143
+ filename?: string | undefined;
3144
+ file_data?: string | undefined;
3145
+ file_id?: string | undefined;
3146
+ };
3147
+ cache_control?: {
3148
+ type: "ephemeral";
3149
+ ttl?: "5m" | "1h" | undefined;
3150
+ } | undefined;
2327
3151
  })[];
2328
3152
  name?: string | undefined;
2329
3153
  }, {
@@ -2333,6 +3157,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2333
3157
  text?: string | undefined;
2334
3158
  cache_control?: {
2335
3159
  type: "ephemeral";
3160
+ ttl?: "5m" | "1h" | undefined;
2336
3161
  } | undefined;
2337
3162
  } | {
2338
3163
  type: "image_url";
@@ -2340,6 +3165,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2340
3165
  url: string;
2341
3166
  detail?: "auto" | "low" | "high" | undefined;
2342
3167
  };
3168
+ cache_control?: {
3169
+ type: "ephemeral";
3170
+ ttl?: "5m" | "1h" | undefined;
3171
+ } | undefined;
3172
+ } | {
3173
+ type: "file";
3174
+ file: {
3175
+ filename?: string | undefined;
3176
+ file_data?: string | undefined;
3177
+ file_id?: string | undefined;
3178
+ };
3179
+ cache_control?: {
3180
+ type: "ephemeral";
3181
+ ttl?: "5m" | "1h" | undefined;
3182
+ } | undefined;
2343
3183
  })[];
2344
3184
  name?: string | undefined;
2345
3185
  }>, z.ZodObject<{
@@ -2349,22 +3189,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2349
3189
  type: z.ZodLiteral<"text">;
2350
3190
  cache_control: z.ZodOptional<z.ZodObject<{
2351
3191
  type: z.ZodLiteral<"ephemeral">;
3192
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
2352
3193
  }, "strip", z.ZodTypeAny, {
2353
3194
  type: "ephemeral";
3195
+ ttl?: "5m" | "1h" | undefined;
2354
3196
  }, {
2355
3197
  type: "ephemeral";
3198
+ ttl?: "5m" | "1h" | undefined;
2356
3199
  }>>;
2357
3200
  }, "strip", z.ZodTypeAny, {
2358
3201
  type: "text";
2359
3202
  text: string;
2360
3203
  cache_control?: {
2361
3204
  type: "ephemeral";
3205
+ ttl?: "5m" | "1h" | undefined;
2362
3206
  } | undefined;
2363
3207
  }, {
2364
3208
  type: "text";
2365
3209
  text?: string | undefined;
2366
3210
  cache_control?: {
2367
3211
  type: "ephemeral";
3212
+ ttl?: "5m" | "1h" | undefined;
2368
3213
  } | undefined;
2369
3214
  }>, "many">, z.ZodNull]>>;
2370
3215
  function_call: z.ZodOptional<z.ZodObject<{
@@ -2416,6 +3261,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2416
3261
  id?: string | undefined;
2417
3262
  content?: string | undefined;
2418
3263
  }>, "many">>;
3264
+ reasoning_signature: z.ZodOptional<z.ZodString>;
2419
3265
  }, "strip", z.ZodTypeAny, {
2420
3266
  role: "assistant";
2421
3267
  name?: string | undefined;
@@ -2428,6 +3274,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2428
3274
  text: string;
2429
3275
  cache_control?: {
2430
3276
  type: "ephemeral";
3277
+ ttl?: "5m" | "1h" | undefined;
2431
3278
  } | undefined;
2432
3279
  }[] | null | undefined;
2433
3280
  tool_calls?: {
@@ -2442,6 +3289,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2442
3289
  id?: string | undefined;
2443
3290
  content?: string | undefined;
2444
3291
  }[] | undefined;
3292
+ reasoning_signature?: string | undefined;
2445
3293
  }, {
2446
3294
  role: "assistant";
2447
3295
  name?: string | undefined;
@@ -2454,6 +3302,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2454
3302
  text?: string | undefined;
2455
3303
  cache_control?: {
2456
3304
  type: "ephemeral";
3305
+ ttl?: "5m" | "1h" | undefined;
2457
3306
  } | undefined;
2458
3307
  }[] | null | undefined;
2459
3308
  tool_calls?: {
@@ -2468,28 +3317,34 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2468
3317
  id?: string | undefined;
2469
3318
  content?: string | undefined;
2470
3319
  }[] | undefined;
3320
+ reasoning_signature?: string | undefined;
2471
3321
  }>, z.ZodObject<{
2472
3322
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
2473
3323
  text: z.ZodDefault<z.ZodString>;
2474
3324
  type: z.ZodLiteral<"text">;
2475
3325
  cache_control: z.ZodOptional<z.ZodObject<{
2476
3326
  type: z.ZodLiteral<"ephemeral">;
3327
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
2477
3328
  }, "strip", z.ZodTypeAny, {
2478
3329
  type: "ephemeral";
3330
+ ttl?: "5m" | "1h" | undefined;
2479
3331
  }, {
2480
3332
  type: "ephemeral";
3333
+ ttl?: "5m" | "1h" | undefined;
2481
3334
  }>>;
2482
3335
  }, "strip", z.ZodTypeAny, {
2483
3336
  type: "text";
2484
3337
  text: string;
2485
3338
  cache_control?: {
2486
3339
  type: "ephemeral";
3340
+ ttl?: "5m" | "1h" | undefined;
2487
3341
  } | undefined;
2488
3342
  }, {
2489
3343
  type: "text";
2490
3344
  text?: string | undefined;
2491
3345
  cache_control?: {
2492
3346
  type: "ephemeral";
3347
+ ttl?: "5m" | "1h" | undefined;
2493
3348
  } | undefined;
2494
3349
  }>, "many">]>;
2495
3350
  role: z.ZodLiteral<"tool">;
@@ -2501,6 +3356,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2501
3356
  text: string;
2502
3357
  cache_control?: {
2503
3358
  type: "ephemeral";
3359
+ ttl?: "5m" | "1h" | undefined;
2504
3360
  } | undefined;
2505
3361
  }[];
2506
3362
  tool_call_id: string;
@@ -2511,6 +3367,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2511
3367
  text?: string | undefined;
2512
3368
  cache_control?: {
2513
3369
  type: "ephemeral";
3370
+ ttl?: "5m" | "1h" | undefined;
2514
3371
  } | undefined;
2515
3372
  }[];
2516
3373
  tool_call_id?: string | undefined;
@@ -2532,22 +3389,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2532
3389
  type: z.ZodLiteral<"text">;
2533
3390
  cache_control: z.ZodOptional<z.ZodObject<{
2534
3391
  type: z.ZodLiteral<"ephemeral">;
3392
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
2535
3393
  }, "strip", z.ZodTypeAny, {
2536
3394
  type: "ephemeral";
3395
+ ttl?: "5m" | "1h" | undefined;
2537
3396
  }, {
2538
3397
  type: "ephemeral";
3398
+ ttl?: "5m" | "1h" | undefined;
2539
3399
  }>>;
2540
3400
  }, "strip", z.ZodTypeAny, {
2541
3401
  type: "text";
2542
3402
  text: string;
2543
3403
  cache_control?: {
2544
3404
  type: "ephemeral";
3405
+ ttl?: "5m" | "1h" | undefined;
2545
3406
  } | undefined;
2546
3407
  }, {
2547
3408
  type: "text";
2548
3409
  text?: string | undefined;
2549
3410
  cache_control?: {
2550
3411
  type: "ephemeral";
3412
+ ttl?: "5m" | "1h" | undefined;
2551
3413
  } | undefined;
2552
3414
  }>, "many">]>;
2553
3415
  role: z.ZodLiteral<"developer">;
@@ -2559,6 +3421,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2559
3421
  text: string;
2560
3422
  cache_control?: {
2561
3423
  type: "ephemeral";
3424
+ ttl?: "5m" | "1h" | undefined;
2562
3425
  } | undefined;
2563
3426
  }[];
2564
3427
  name?: string | undefined;
@@ -2569,6 +3432,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2569
3432
  text?: string | undefined;
2570
3433
  cache_control?: {
2571
3434
  type: "ephemeral";
3435
+ ttl?: "5m" | "1h" | undefined;
2572
3436
  } | undefined;
2573
3437
  }[];
2574
3438
  name?: string | undefined;
@@ -2592,6 +3456,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2592
3456
  text: string;
2593
3457
  cache_control?: {
2594
3458
  type: "ephemeral";
3459
+ ttl?: "5m" | "1h" | undefined;
2595
3460
  } | undefined;
2596
3461
  }[];
2597
3462
  name?: string | undefined;
@@ -2602,6 +3467,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2602
3467
  text: string;
2603
3468
  cache_control?: {
2604
3469
  type: "ephemeral";
3470
+ ttl?: "5m" | "1h" | undefined;
2605
3471
  } | undefined;
2606
3472
  } | {
2607
3473
  type: "image_url";
@@ -2609,6 +3475,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2609
3475
  url: string;
2610
3476
  detail?: "auto" | "low" | "high" | undefined;
2611
3477
  };
3478
+ cache_control?: {
3479
+ type: "ephemeral";
3480
+ ttl?: "5m" | "1h" | undefined;
3481
+ } | undefined;
3482
+ } | {
3483
+ type: "file";
3484
+ file: {
3485
+ filename?: string | undefined;
3486
+ file_data?: string | undefined;
3487
+ file_id?: string | undefined;
3488
+ };
3489
+ cache_control?: {
3490
+ type: "ephemeral";
3491
+ ttl?: "5m" | "1h" | undefined;
3492
+ } | undefined;
2612
3493
  })[];
2613
3494
  name?: string | undefined;
2614
3495
  } | {
@@ -2623,6 +3504,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2623
3504
  text: string;
2624
3505
  cache_control?: {
2625
3506
  type: "ephemeral";
3507
+ ttl?: "5m" | "1h" | undefined;
2626
3508
  } | undefined;
2627
3509
  }[] | null | undefined;
2628
3510
  tool_calls?: {
@@ -2637,6 +3519,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2637
3519
  id?: string | undefined;
2638
3520
  content?: string | undefined;
2639
3521
  }[] | undefined;
3522
+ reasoning_signature?: string | undefined;
2640
3523
  } | {
2641
3524
  role: "tool";
2642
3525
  content: string | {
@@ -2644,6 +3527,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2644
3527
  text: string;
2645
3528
  cache_control?: {
2646
3529
  type: "ephemeral";
3530
+ ttl?: "5m" | "1h" | undefined;
2647
3531
  } | undefined;
2648
3532
  }[];
2649
3533
  tool_call_id: string;
@@ -2658,6 +3542,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2658
3542
  text: string;
2659
3543
  cache_control?: {
2660
3544
  type: "ephemeral";
3545
+ ttl?: "5m" | "1h" | undefined;
2661
3546
  } | undefined;
2662
3547
  }[];
2663
3548
  name?: string | undefined;
@@ -2675,6 +3560,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2675
3560
  text?: string | undefined;
2676
3561
  cache_control?: {
2677
3562
  type: "ephemeral";
3563
+ ttl?: "5m" | "1h" | undefined;
2678
3564
  } | undefined;
2679
3565
  }[];
2680
3566
  name?: string | undefined;
@@ -2685,6 +3571,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2685
3571
  text?: string | undefined;
2686
3572
  cache_control?: {
2687
3573
  type: "ephemeral";
3574
+ ttl?: "5m" | "1h" | undefined;
2688
3575
  } | undefined;
2689
3576
  } | {
2690
3577
  type: "image_url";
@@ -2692,6 +3579,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2692
3579
  url: string;
2693
3580
  detail?: "auto" | "low" | "high" | undefined;
2694
3581
  };
3582
+ cache_control?: {
3583
+ type: "ephemeral";
3584
+ ttl?: "5m" | "1h" | undefined;
3585
+ } | undefined;
3586
+ } | {
3587
+ type: "file";
3588
+ file: {
3589
+ filename?: string | undefined;
3590
+ file_data?: string | undefined;
3591
+ file_id?: string | undefined;
3592
+ };
3593
+ cache_control?: {
3594
+ type: "ephemeral";
3595
+ ttl?: "5m" | "1h" | undefined;
3596
+ } | undefined;
2695
3597
  })[];
2696
3598
  name?: string | undefined;
2697
3599
  } | {
@@ -2706,6 +3608,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2706
3608
  text?: string | undefined;
2707
3609
  cache_control?: {
2708
3610
  type: "ephemeral";
3611
+ ttl?: "5m" | "1h" | undefined;
2709
3612
  } | undefined;
2710
3613
  }[] | null | undefined;
2711
3614
  tool_calls?: {
@@ -2720,6 +3623,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2720
3623
  id?: string | undefined;
2721
3624
  content?: string | undefined;
2722
3625
  }[] | undefined;
3626
+ reasoning_signature?: string | undefined;
2723
3627
  } | {
2724
3628
  role: "tool";
2725
3629
  content: string | {
@@ -2727,6 +3631,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2727
3631
  text?: string | undefined;
2728
3632
  cache_control?: {
2729
3633
  type: "ephemeral";
3634
+ ttl?: "5m" | "1h" | undefined;
2730
3635
  } | undefined;
2731
3636
  }[];
2732
3637
  tool_call_id?: string | undefined;
@@ -2741,6 +3646,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2741
3646
  text?: string | undefined;
2742
3647
  cache_control?: {
2743
3648
  type: "ephemeral";
3649
+ ttl?: "5m" | "1h" | undefined;
2744
3650
  } | undefined;
2745
3651
  }[];
2746
3652
  name?: string | undefined;
@@ -2749,11 +3655,22 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2749
3655
  content?: string | null | undefined;
2750
3656
  })[];
2751
3657
  tools?: string | undefined;
3658
+ }>, z.ZodObject<{
3659
+ type: z.ZodLiteral<"completion">;
3660
+ content: z.ZodString;
3661
+ }, "strip", z.ZodTypeAny, {
3662
+ type: "completion";
3663
+ content: string;
3664
+ }, {
3665
+ type: "completion";
3666
+ content: string;
2752
3667
  }>, z.ZodNull]>>;
2753
3668
  options: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2754
3669
  model: z.ZodOptional<z.ZodString>;
2755
3670
  params: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2756
3671
  use_cache: z.ZodOptional<z.ZodBoolean>;
3672
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
3673
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
2757
3674
  temperature: z.ZodOptional<z.ZodNumber>;
2758
3675
  top_p: z.ZodOptional<z.ZodNumber>;
2759
3676
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -2836,10 +3753,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2836
3753
  }>]>>;
2837
3754
  n: z.ZodOptional<z.ZodNumber>;
2838
3755
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2839
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
3756
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
2840
3757
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
2841
3758
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2842
3759
  use_cache: z.ZodOptional<z.ZodBoolean>;
3760
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
3761
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
2843
3762
  temperature: z.ZodOptional<z.ZodNumber>;
2844
3763
  top_p: z.ZodOptional<z.ZodNumber>;
2845
3764
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -2922,10 +3841,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2922
3841
  }>]>>;
2923
3842
  n: z.ZodOptional<z.ZodNumber>;
2924
3843
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2925
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
3844
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
2926
3845
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
2927
3846
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2928
3847
  use_cache: z.ZodOptional<z.ZodBoolean>;
3848
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
3849
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
2929
3850
  temperature: z.ZodOptional<z.ZodNumber>;
2930
3851
  top_p: z.ZodOptional<z.ZodNumber>;
2931
3852
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -3008,10 +3929,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3008
3929
  }>]>>;
3009
3930
  n: z.ZodOptional<z.ZodNumber>;
3010
3931
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3011
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
3932
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
3012
3933
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
3013
3934
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
3014
3935
  use_cache: z.ZodOptional<z.ZodBoolean>;
3936
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
3937
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3015
3938
  max_tokens: z.ZodNumber;
3016
3939
  temperature: z.ZodNumber;
3017
3940
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -3020,6 +3943,8 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3020
3943
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
3021
3944
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3022
3945
  use_cache: z.ZodOptional<z.ZodBoolean>;
3946
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
3947
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3023
3948
  max_tokens: z.ZodNumber;
3024
3949
  temperature: z.ZodNumber;
3025
3950
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -3028,6 +3953,8 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3028
3953
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
3029
3954
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3030
3955
  use_cache: z.ZodOptional<z.ZodBoolean>;
3956
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
3957
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3031
3958
  max_tokens: z.ZodNumber;
3032
3959
  temperature: z.ZodNumber;
3033
3960
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -3036,45 +3963,66 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3036
3963
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
3037
3964
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
3038
3965
  use_cache: z.ZodOptional<z.ZodBoolean>;
3966
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
3967
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3039
3968
  temperature: z.ZodOptional<z.ZodNumber>;
3040
3969
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
3041
3970
  topP: z.ZodOptional<z.ZodNumber>;
3042
3971
  topK: z.ZodOptional<z.ZodNumber>;
3043
3972
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3044
3973
  use_cache: z.ZodOptional<z.ZodBoolean>;
3974
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
3975
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3045
3976
  temperature: z.ZodOptional<z.ZodNumber>;
3046
3977
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
3047
3978
  topP: z.ZodOptional<z.ZodNumber>;
3048
3979
  topK: z.ZodOptional<z.ZodNumber>;
3049
3980
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3050
3981
  use_cache: z.ZodOptional<z.ZodBoolean>;
3982
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
3983
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3051
3984
  temperature: z.ZodOptional<z.ZodNumber>;
3052
3985
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
3053
3986
  topP: z.ZodOptional<z.ZodNumber>;
3054
3987
  topK: z.ZodOptional<z.ZodNumber>;
3055
3988
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
3056
3989
  use_cache: z.ZodOptional<z.ZodBoolean>;
3990
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
3991
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3057
3992
  temperature: z.ZodOptional<z.ZodNumber>;
3058
3993
  topK: z.ZodOptional<z.ZodNumber>;
3059
3994
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3060
3995
  use_cache: z.ZodOptional<z.ZodBoolean>;
3996
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
3997
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3061
3998
  temperature: z.ZodOptional<z.ZodNumber>;
3062
3999
  topK: z.ZodOptional<z.ZodNumber>;
3063
4000
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3064
4001
  use_cache: z.ZodOptional<z.ZodBoolean>;
4002
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4003
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3065
4004
  temperature: z.ZodOptional<z.ZodNumber>;
3066
4005
  topK: z.ZodOptional<z.ZodNumber>;
3067
4006
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
3068
4007
  use_cache: z.ZodOptional<z.ZodBoolean>;
4008
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4009
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3069
4010
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3070
4011
  use_cache: z.ZodOptional<z.ZodBoolean>;
4012
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4013
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3071
4014
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3072
4015
  use_cache: z.ZodOptional<z.ZodBoolean>;
4016
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4017
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3073
4018
  }, z.ZodTypeAny, "passthrough">>]>>;
3074
4019
  position: z.ZodOptional<z.ZodString>;
4020
+ endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
3075
4021
  }, "strip", z.ZodTypeAny, {
3076
4022
  params?: z.objectOutputType<{
3077
4023
  use_cache: z.ZodOptional<z.ZodBoolean>;
4024
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4025
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3078
4026
  temperature: z.ZodOptional<z.ZodNumber>;
3079
4027
  top_p: z.ZodOptional<z.ZodNumber>;
3080
4028
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -3157,10 +4105,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3157
4105
  }>]>>;
3158
4106
  n: z.ZodOptional<z.ZodNumber>;
3159
4107
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3160
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
4108
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
3161
4109
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
3162
4110
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3163
4111
  use_cache: z.ZodOptional<z.ZodBoolean>;
4112
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4113
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3164
4114
  max_tokens: z.ZodNumber;
3165
4115
  temperature: z.ZodNumber;
3166
4116
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -3169,22 +4119,31 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3169
4119
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
3170
4120
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3171
4121
  use_cache: z.ZodOptional<z.ZodBoolean>;
4122
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4123
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3172
4124
  temperature: z.ZodOptional<z.ZodNumber>;
3173
4125
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
3174
4126
  topP: z.ZodOptional<z.ZodNumber>;
3175
4127
  topK: z.ZodOptional<z.ZodNumber>;
3176
4128
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3177
4129
  use_cache: z.ZodOptional<z.ZodBoolean>;
4130
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4131
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3178
4132
  temperature: z.ZodOptional<z.ZodNumber>;
3179
4133
  topK: z.ZodOptional<z.ZodNumber>;
3180
4134
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3181
4135
  use_cache: z.ZodOptional<z.ZodBoolean>;
4136
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4137
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3182
4138
  }, z.ZodTypeAny, "passthrough"> | undefined;
3183
4139
  model?: string | undefined;
3184
4140
  position?: string | undefined;
4141
+ endpoint_name?: string | null | undefined;
3185
4142
  }, {
3186
4143
  params?: z.objectInputType<{
3187
4144
  use_cache: z.ZodOptional<z.ZodBoolean>;
4145
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4146
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3188
4147
  temperature: z.ZodOptional<z.ZodNumber>;
3189
4148
  top_p: z.ZodOptional<z.ZodNumber>;
3190
4149
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -3267,10 +4226,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3267
4226
  }>]>>;
3268
4227
  n: z.ZodOptional<z.ZodNumber>;
3269
4228
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3270
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
4229
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
3271
4230
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
3272
4231
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
3273
4232
  use_cache: z.ZodOptional<z.ZodBoolean>;
4233
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4234
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3274
4235
  max_tokens: z.ZodNumber;
3275
4236
  temperature: z.ZodNumber;
3276
4237
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -3279,52 +4240,140 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3279
4240
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
3280
4241
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
3281
4242
  use_cache: z.ZodOptional<z.ZodBoolean>;
4243
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4244
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3282
4245
  temperature: z.ZodOptional<z.ZodNumber>;
3283
4246
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
3284
4247
  topP: z.ZodOptional<z.ZodNumber>;
3285
4248
  topK: z.ZodOptional<z.ZodNumber>;
3286
4249
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
3287
4250
  use_cache: z.ZodOptional<z.ZodBoolean>;
4251
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4252
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3288
4253
  temperature: z.ZodOptional<z.ZodNumber>;
3289
4254
  topK: z.ZodOptional<z.ZodNumber>;
3290
4255
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
3291
4256
  use_cache: z.ZodOptional<z.ZodBoolean>;
4257
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4258
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3292
4259
  }, z.ZodTypeAny, "passthrough"> | undefined;
3293
4260
  model?: string | undefined;
3294
4261
  position?: string | undefined;
4262
+ endpoint_name?: string | null | undefined;
3295
4263
  }>, z.ZodNull]>>;
3296
4264
  parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3297
4265
  type: z.ZodLiteral<"llm_classifier">;
3298
4266
  use_cot: z.ZodBoolean;
3299
- choice_scores: z.ZodRecord<z.ZodString, z.ZodNumber>;
4267
+ choice_scores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
4268
+ choice: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4269
+ allow_no_match: z.ZodOptional<z.ZodBoolean>;
4270
+ allow_skip: z.ZodOptional<z.ZodBoolean>;
3300
4271
  }, "strip", z.ZodTypeAny, {
3301
4272
  type: "llm_classifier";
3302
4273
  use_cot: boolean;
3303
- choice_scores: Record<string, number>;
4274
+ choice_scores?: Record<string, number> | undefined;
4275
+ choice?: string[] | undefined;
4276
+ allow_no_match?: boolean | undefined;
4277
+ allow_skip?: boolean | undefined;
3304
4278
  }, {
3305
4279
  type: "llm_classifier";
3306
4280
  use_cot: boolean;
3307
- choice_scores: Record<string, number>;
4281
+ choice_scores?: Record<string, number> | undefined;
4282
+ choice?: string[] | undefined;
4283
+ allow_no_match?: boolean | undefined;
4284
+ allow_skip?: boolean | undefined;
4285
+ }>, z.ZodNull]>>;
4286
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4287
+ type: z.ZodLiteral<"function">;
4288
+ id: z.ZodString;
4289
+ version: z.ZodOptional<z.ZodString>;
4290
+ }, "strip", z.ZodTypeAny, {
4291
+ id: string;
4292
+ type: "function";
4293
+ version?: string | undefined;
4294
+ }, {
4295
+ id: string;
4296
+ type: "function";
4297
+ version?: string | undefined;
4298
+ }>, z.ZodObject<{
4299
+ type: z.ZodLiteral<"global">;
4300
+ name: z.ZodString;
4301
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
4302
+ }, "strip", z.ZodTypeAny, {
4303
+ type: "global";
4304
+ name: string;
4305
+ function_type: "preprocessor";
4306
+ }, {
4307
+ type: "global";
4308
+ name: string;
4309
+ function_type?: "preprocessor" | undefined;
4310
+ }>, z.ZodObject<{
4311
+ type: z.ZodLiteral<"inline">;
4312
+ code: z.ZodString;
4313
+ }, "strip", z.ZodTypeAny, {
4314
+ code: string;
4315
+ type: "inline";
4316
+ }, {
4317
+ code: string;
4318
+ type: "inline";
3308
4319
  }>, z.ZodNull]>>;
3309
4320
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
3310
4321
  type: z.ZodLiteral<"function">;
3311
4322
  id: z.ZodString;
4323
+ version: z.ZodOptional<z.ZodString>;
3312
4324
  }, "strip", z.ZodTypeAny, {
3313
4325
  id: string;
3314
4326
  type: "function";
4327
+ version?: string | undefined;
3315
4328
  }, {
3316
4329
  id: string;
3317
4330
  type: "function";
4331
+ version?: string | undefined;
3318
4332
  }>, z.ZodObject<{
3319
4333
  type: z.ZodLiteral<"global">;
3320
4334
  name: z.ZodString;
4335
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
3321
4336
  }, "strip", z.ZodTypeAny, {
3322
4337
  type: "global";
3323
4338
  name: string;
4339
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
3324
4340
  }, {
3325
4341
  type: "global";
3326
4342
  name: string;
4343
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
3327
4344
  }>]>, "many">, z.ZodNull]>>;
4345
+ template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
4346
+ mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
4347
+ type: z.ZodLiteral<"id">;
4348
+ id: z.ZodString;
4349
+ is_disabled: z.ZodOptional<z.ZodBoolean>;
4350
+ enabled_tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
4351
+ }, "strip", z.ZodTypeAny, {
4352
+ id: string;
4353
+ type: "id";
4354
+ is_disabled?: boolean | undefined;
4355
+ enabled_tools?: string[] | null | undefined;
4356
+ }, {
4357
+ id: string;
4358
+ type: "id";
4359
+ is_disabled?: boolean | undefined;
4360
+ enabled_tools?: string[] | null | undefined;
4361
+ }>, z.ZodObject<{
4362
+ type: z.ZodLiteral<"url">;
4363
+ url: z.ZodString;
4364
+ is_disabled: z.ZodOptional<z.ZodBoolean>;
4365
+ enabled_tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
4366
+ }, "strip", z.ZodTypeAny, {
4367
+ type: "url";
4368
+ url: string;
4369
+ is_disabled?: boolean | undefined;
4370
+ enabled_tools?: string[] | null | undefined;
4371
+ }, {
4372
+ type: "url";
4373
+ url: string;
4374
+ is_disabled?: boolean | undefined;
4375
+ enabled_tools?: string[] | null | undefined;
4376
+ }>]>>, z.ZodNull]>>;
3328
4377
  origin: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3329
4378
  prompt_id: z.ZodOptional<z.ZodString>;
3330
4379
  project_id: z.ZodOptional<z.ZodString>;
@@ -3342,6 +4391,8 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3342
4391
  options?: {
3343
4392
  params?: z.objectOutputType<{
3344
4393
  use_cache: z.ZodOptional<z.ZodBoolean>;
4394
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4395
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3345
4396
  temperature: z.ZodOptional<z.ZodNumber>;
3346
4397
  top_p: z.ZodOptional<z.ZodNumber>;
3347
4398
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -3424,10 +4475,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3424
4475
  }>]>>;
3425
4476
  n: z.ZodOptional<z.ZodNumber>;
3426
4477
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3427
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
4478
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
3428
4479
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
3429
4480
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3430
4481
  use_cache: z.ZodOptional<z.ZodBoolean>;
4482
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4483
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3431
4484
  max_tokens: z.ZodNumber;
3432
4485
  temperature: z.ZodNumber;
3433
4486
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -3436,24 +4489,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3436
4489
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
3437
4490
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3438
4491
  use_cache: z.ZodOptional<z.ZodBoolean>;
4492
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4493
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3439
4494
  temperature: z.ZodOptional<z.ZodNumber>;
3440
4495
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
3441
4496
  topP: z.ZodOptional<z.ZodNumber>;
3442
4497
  topK: z.ZodOptional<z.ZodNumber>;
3443
4498
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3444
4499
  use_cache: z.ZodOptional<z.ZodBoolean>;
4500
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4501
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3445
4502
  temperature: z.ZodOptional<z.ZodNumber>;
3446
4503
  topK: z.ZodOptional<z.ZodNumber>;
3447
4504
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3448
4505
  use_cache: z.ZodOptional<z.ZodBoolean>;
4506
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4507
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3449
4508
  }, z.ZodTypeAny, "passthrough"> | undefined;
3450
4509
  model?: string | undefined;
3451
4510
  position?: string | undefined;
4511
+ endpoint_name?: string | null | undefined;
3452
4512
  } | null | undefined;
3453
4513
  prompt?: {
3454
- type: "completion";
3455
- content: string;
3456
- } | {
3457
4514
  type: "chat";
3458
4515
  messages: ({
3459
4516
  role: "system";
@@ -3462,6 +4519,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3462
4519
  text: string;
3463
4520
  cache_control?: {
3464
4521
  type: "ephemeral";
4522
+ ttl?: "5m" | "1h" | undefined;
3465
4523
  } | undefined;
3466
4524
  }[];
3467
4525
  name?: string | undefined;
@@ -3472,6 +4530,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3472
4530
  text: string;
3473
4531
  cache_control?: {
3474
4532
  type: "ephemeral";
4533
+ ttl?: "5m" | "1h" | undefined;
3475
4534
  } | undefined;
3476
4535
  } | {
3477
4536
  type: "image_url";
@@ -3479,6 +4538,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3479
4538
  url: string;
3480
4539
  detail?: "auto" | "low" | "high" | undefined;
3481
4540
  };
4541
+ cache_control?: {
4542
+ type: "ephemeral";
4543
+ ttl?: "5m" | "1h" | undefined;
4544
+ } | undefined;
4545
+ } | {
4546
+ type: "file";
4547
+ file: {
4548
+ filename?: string | undefined;
4549
+ file_data?: string | undefined;
4550
+ file_id?: string | undefined;
4551
+ };
4552
+ cache_control?: {
4553
+ type: "ephemeral";
4554
+ ttl?: "5m" | "1h" | undefined;
4555
+ } | undefined;
3482
4556
  })[];
3483
4557
  name?: string | undefined;
3484
4558
  } | {
@@ -3493,6 +4567,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3493
4567
  text: string;
3494
4568
  cache_control?: {
3495
4569
  type: "ephemeral";
4570
+ ttl?: "5m" | "1h" | undefined;
3496
4571
  } | undefined;
3497
4572
  }[] | null | undefined;
3498
4573
  tool_calls?: {
@@ -3507,6 +4582,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3507
4582
  id?: string | undefined;
3508
4583
  content?: string | undefined;
3509
4584
  }[] | undefined;
4585
+ reasoning_signature?: string | undefined;
3510
4586
  } | {
3511
4587
  role: "tool";
3512
4588
  content: string | {
@@ -3514,6 +4590,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3514
4590
  text: string;
3515
4591
  cache_control?: {
3516
4592
  type: "ephemeral";
4593
+ ttl?: "5m" | "1h" | undefined;
3517
4594
  } | undefined;
3518
4595
  }[];
3519
4596
  tool_call_id: string;
@@ -3528,6 +4605,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3528
4605
  text: string;
3529
4606
  cache_control?: {
3530
4607
  type: "ephemeral";
4608
+ ttl?: "5m" | "1h" | undefined;
3531
4609
  } | undefined;
3532
4610
  }[];
3533
4611
  name?: string | undefined;
@@ -3536,6 +4614,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3536
4614
  content?: string | null | undefined;
3537
4615
  })[];
3538
4616
  tools?: string | undefined;
4617
+ } | {
4618
+ type: "completion";
4619
+ content: string;
4620
+ } | null | undefined;
4621
+ preprocessor?: {
4622
+ id: string;
4623
+ type: "function";
4624
+ version?: string | undefined;
4625
+ } | {
4626
+ type: "global";
4627
+ name: string;
4628
+ function_type: "preprocessor";
4629
+ } | {
4630
+ code: string;
4631
+ type: "inline";
3539
4632
  } | null | undefined;
3540
4633
  origin?: {
3541
4634
  project_id?: string | undefined;
@@ -3545,19 +4638,38 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3545
4638
  parser?: {
3546
4639
  type: "llm_classifier";
3547
4640
  use_cot: boolean;
3548
- choice_scores: Record<string, number>;
4641
+ choice_scores?: Record<string, number> | undefined;
4642
+ choice?: string[] | undefined;
4643
+ allow_no_match?: boolean | undefined;
4644
+ allow_skip?: boolean | undefined;
3549
4645
  } | null | undefined;
3550
4646
  tool_functions?: ({
3551
4647
  id: string;
3552
4648
  type: "function";
4649
+ version?: string | undefined;
3553
4650
  } | {
3554
4651
  type: "global";
3555
4652
  name: string;
4653
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
3556
4654
  })[] | null | undefined;
4655
+ template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
4656
+ mcp?: Record<string, {
4657
+ id: string;
4658
+ type: "id";
4659
+ is_disabled?: boolean | undefined;
4660
+ enabled_tools?: string[] | null | undefined;
4661
+ } | {
4662
+ type: "url";
4663
+ url: string;
4664
+ is_disabled?: boolean | undefined;
4665
+ enabled_tools?: string[] | null | undefined;
4666
+ }> | null | undefined;
3557
4667
  }, {
3558
4668
  options?: {
3559
4669
  params?: z.objectInputType<{
3560
4670
  use_cache: z.ZodOptional<z.ZodBoolean>;
4671
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4672
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3561
4673
  temperature: z.ZodOptional<z.ZodNumber>;
3562
4674
  top_p: z.ZodOptional<z.ZodNumber>;
3563
4675
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -3640,10 +4752,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3640
4752
  }>]>>;
3641
4753
  n: z.ZodOptional<z.ZodNumber>;
3642
4754
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3643
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
4755
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
3644
4756
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
3645
4757
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
3646
4758
  use_cache: z.ZodOptional<z.ZodBoolean>;
4759
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4760
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3647
4761
  max_tokens: z.ZodNumber;
3648
4762
  temperature: z.ZodNumber;
3649
4763
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -3652,24 +4766,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3652
4766
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
3653
4767
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
3654
4768
  use_cache: z.ZodOptional<z.ZodBoolean>;
4769
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4770
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3655
4771
  temperature: z.ZodOptional<z.ZodNumber>;
3656
4772
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
3657
4773
  topP: z.ZodOptional<z.ZodNumber>;
3658
4774
  topK: z.ZodOptional<z.ZodNumber>;
3659
4775
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
3660
4776
  use_cache: z.ZodOptional<z.ZodBoolean>;
4777
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4778
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3661
4779
  temperature: z.ZodOptional<z.ZodNumber>;
3662
4780
  topK: z.ZodOptional<z.ZodNumber>;
3663
4781
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
3664
4782
  use_cache: z.ZodOptional<z.ZodBoolean>;
4783
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4784
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3665
4785
  }, z.ZodTypeAny, "passthrough"> | undefined;
3666
4786
  model?: string | undefined;
3667
4787
  position?: string | undefined;
4788
+ endpoint_name?: string | null | undefined;
3668
4789
  } | null | undefined;
3669
4790
  prompt?: {
3670
- type: "completion";
3671
- content: string;
3672
- } | {
3673
4791
  type: "chat";
3674
4792
  messages: ({
3675
4793
  role: "system";
@@ -3678,6 +4796,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3678
4796
  text?: string | undefined;
3679
4797
  cache_control?: {
3680
4798
  type: "ephemeral";
4799
+ ttl?: "5m" | "1h" | undefined;
3681
4800
  } | undefined;
3682
4801
  }[];
3683
4802
  name?: string | undefined;
@@ -3688,6 +4807,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3688
4807
  text?: string | undefined;
3689
4808
  cache_control?: {
3690
4809
  type: "ephemeral";
4810
+ ttl?: "5m" | "1h" | undefined;
3691
4811
  } | undefined;
3692
4812
  } | {
3693
4813
  type: "image_url";
@@ -3695,6 +4815,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3695
4815
  url: string;
3696
4816
  detail?: "auto" | "low" | "high" | undefined;
3697
4817
  };
4818
+ cache_control?: {
4819
+ type: "ephemeral";
4820
+ ttl?: "5m" | "1h" | undefined;
4821
+ } | undefined;
4822
+ } | {
4823
+ type: "file";
4824
+ file: {
4825
+ filename?: string | undefined;
4826
+ file_data?: string | undefined;
4827
+ file_id?: string | undefined;
4828
+ };
4829
+ cache_control?: {
4830
+ type: "ephemeral";
4831
+ ttl?: "5m" | "1h" | undefined;
4832
+ } | undefined;
3698
4833
  })[];
3699
4834
  name?: string | undefined;
3700
4835
  } | {
@@ -3709,6 +4844,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3709
4844
  text?: string | undefined;
3710
4845
  cache_control?: {
3711
4846
  type: "ephemeral";
4847
+ ttl?: "5m" | "1h" | undefined;
3712
4848
  } | undefined;
3713
4849
  }[] | null | undefined;
3714
4850
  tool_calls?: {
@@ -3723,6 +4859,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3723
4859
  id?: string | undefined;
3724
4860
  content?: string | undefined;
3725
4861
  }[] | undefined;
4862
+ reasoning_signature?: string | undefined;
3726
4863
  } | {
3727
4864
  role: "tool";
3728
4865
  content: string | {
@@ -3730,6 +4867,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3730
4867
  text?: string | undefined;
3731
4868
  cache_control?: {
3732
4869
  type: "ephemeral";
4870
+ ttl?: "5m" | "1h" | undefined;
3733
4871
  } | undefined;
3734
4872
  }[];
3735
4873
  tool_call_id?: string | undefined;
@@ -3744,6 +4882,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3744
4882
  text?: string | undefined;
3745
4883
  cache_control?: {
3746
4884
  type: "ephemeral";
4885
+ ttl?: "5m" | "1h" | undefined;
3747
4886
  } | undefined;
3748
4887
  }[];
3749
4888
  name?: string | undefined;
@@ -3752,6 +4891,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3752
4891
  content?: string | null | undefined;
3753
4892
  })[];
3754
4893
  tools?: string | undefined;
4894
+ } | {
4895
+ type: "completion";
4896
+ content: string;
4897
+ } | null | undefined;
4898
+ preprocessor?: {
4899
+ id: string;
4900
+ type: "function";
4901
+ version?: string | undefined;
4902
+ } | {
4903
+ type: "global";
4904
+ name: string;
4905
+ function_type?: "preprocessor" | undefined;
4906
+ } | {
4907
+ code: string;
4908
+ type: "inline";
3755
4909
  } | null | undefined;
3756
4910
  origin?: {
3757
4911
  project_id?: string | undefined;
@@ -3761,23 +4915,43 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3761
4915
  parser?: {
3762
4916
  type: "llm_classifier";
3763
4917
  use_cot: boolean;
3764
- choice_scores: Record<string, number>;
4918
+ choice_scores?: Record<string, number> | undefined;
4919
+ choice?: string[] | undefined;
4920
+ allow_no_match?: boolean | undefined;
4921
+ allow_skip?: boolean | undefined;
3765
4922
  } | null | undefined;
3766
4923
  tool_functions?: ({
3767
4924
  id: string;
3768
4925
  type: "function";
4926
+ version?: string | undefined;
3769
4927
  } | {
3770
4928
  type: "global";
3771
4929
  name: string;
4930
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
3772
4931
  })[] | null | undefined;
4932
+ template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
4933
+ mcp?: Record<string, {
4934
+ id: string;
4935
+ type: "id";
4936
+ is_disabled?: boolean | undefined;
4937
+ enabled_tools?: string[] | null | undefined;
4938
+ } | {
4939
+ type: "url";
4940
+ url: string;
4941
+ is_disabled?: boolean | undefined;
4942
+ enabled_tools?: string[] | null | undefined;
4943
+ }> | null | undefined;
3773
4944
  }>;
3774
- function_type: z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool"]>>;
4945
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
3775
4946
  name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
3776
4947
  }, "strip", z.ZodTypeAny, {
4948
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
3777
4949
  inline_prompt: {
3778
4950
  options?: {
3779
4951
  params?: z.objectOutputType<{
3780
4952
  use_cache: z.ZodOptional<z.ZodBoolean>;
4953
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
4954
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3781
4955
  temperature: z.ZodOptional<z.ZodNumber>;
3782
4956
  top_p: z.ZodOptional<z.ZodNumber>;
3783
4957
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -3860,10 +5034,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3860
5034
  }>]>>;
3861
5035
  n: z.ZodOptional<z.ZodNumber>;
3862
5036
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3863
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
5037
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
3864
5038
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
3865
5039
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3866
5040
  use_cache: z.ZodOptional<z.ZodBoolean>;
5041
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
5042
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3867
5043
  max_tokens: z.ZodNumber;
3868
5044
  temperature: z.ZodNumber;
3869
5045
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -3872,24 +5048,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3872
5048
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
3873
5049
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3874
5050
  use_cache: z.ZodOptional<z.ZodBoolean>;
5051
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
5052
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3875
5053
  temperature: z.ZodOptional<z.ZodNumber>;
3876
5054
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
3877
5055
  topP: z.ZodOptional<z.ZodNumber>;
3878
5056
  topK: z.ZodOptional<z.ZodNumber>;
3879
5057
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3880
5058
  use_cache: z.ZodOptional<z.ZodBoolean>;
5059
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
5060
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3881
5061
  temperature: z.ZodOptional<z.ZodNumber>;
3882
5062
  topK: z.ZodOptional<z.ZodNumber>;
3883
5063
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3884
5064
  use_cache: z.ZodOptional<z.ZodBoolean>;
5065
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
5066
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
3885
5067
  }, z.ZodTypeAny, "passthrough"> | undefined;
3886
5068
  model?: string | undefined;
3887
5069
  position?: string | undefined;
5070
+ endpoint_name?: string | null | undefined;
3888
5071
  } | null | undefined;
3889
5072
  prompt?: {
3890
- type: "completion";
3891
- content: string;
3892
- } | {
3893
5073
  type: "chat";
3894
5074
  messages: ({
3895
5075
  role: "system";
@@ -3898,6 +5078,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3898
5078
  text: string;
3899
5079
  cache_control?: {
3900
5080
  type: "ephemeral";
5081
+ ttl?: "5m" | "1h" | undefined;
3901
5082
  } | undefined;
3902
5083
  }[];
3903
5084
  name?: string | undefined;
@@ -3908,6 +5089,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3908
5089
  text: string;
3909
5090
  cache_control?: {
3910
5091
  type: "ephemeral";
5092
+ ttl?: "5m" | "1h" | undefined;
3911
5093
  } | undefined;
3912
5094
  } | {
3913
5095
  type: "image_url";
@@ -3915,6 +5097,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3915
5097
  url: string;
3916
5098
  detail?: "auto" | "low" | "high" | undefined;
3917
5099
  };
5100
+ cache_control?: {
5101
+ type: "ephemeral";
5102
+ ttl?: "5m" | "1h" | undefined;
5103
+ } | undefined;
5104
+ } | {
5105
+ type: "file";
5106
+ file: {
5107
+ filename?: string | undefined;
5108
+ file_data?: string | undefined;
5109
+ file_id?: string | undefined;
5110
+ };
5111
+ cache_control?: {
5112
+ type: "ephemeral";
5113
+ ttl?: "5m" | "1h" | undefined;
5114
+ } | undefined;
3918
5115
  })[];
3919
5116
  name?: string | undefined;
3920
5117
  } | {
@@ -3929,6 +5126,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3929
5126
  text: string;
3930
5127
  cache_control?: {
3931
5128
  type: "ephemeral";
5129
+ ttl?: "5m" | "1h" | undefined;
3932
5130
  } | undefined;
3933
5131
  }[] | null | undefined;
3934
5132
  tool_calls?: {
@@ -3943,6 +5141,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3943
5141
  id?: string | undefined;
3944
5142
  content?: string | undefined;
3945
5143
  }[] | undefined;
5144
+ reasoning_signature?: string | undefined;
3946
5145
  } | {
3947
5146
  role: "tool";
3948
5147
  content: string | {
@@ -3950,6 +5149,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3950
5149
  text: string;
3951
5150
  cache_control?: {
3952
5151
  type: "ephemeral";
5152
+ ttl?: "5m" | "1h" | undefined;
3953
5153
  } | undefined;
3954
5154
  }[];
3955
5155
  tool_call_id: string;
@@ -3964,6 +5164,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3964
5164
  text: string;
3965
5165
  cache_control?: {
3966
5166
  type: "ephemeral";
5167
+ ttl?: "5m" | "1h" | undefined;
3967
5168
  } | undefined;
3968
5169
  }[];
3969
5170
  name?: string | undefined;
@@ -3972,6 +5173,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3972
5173
  content?: string | null | undefined;
3973
5174
  })[];
3974
5175
  tools?: string | undefined;
5176
+ } | {
5177
+ type: "completion";
5178
+ content: string;
5179
+ } | null | undefined;
5180
+ preprocessor?: {
5181
+ id: string;
5182
+ type: "function";
5183
+ version?: string | undefined;
5184
+ } | {
5185
+ type: "global";
5186
+ name: string;
5187
+ function_type: "preprocessor";
5188
+ } | {
5189
+ code: string;
5190
+ type: "inline";
3975
5191
  } | null | undefined;
3976
5192
  origin?: {
3977
5193
  project_id?: string | undefined;
@@ -3981,23 +5197,41 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
3981
5197
  parser?: {
3982
5198
  type: "llm_classifier";
3983
5199
  use_cot: boolean;
3984
- choice_scores: Record<string, number>;
5200
+ choice_scores?: Record<string, number> | undefined;
5201
+ choice?: string[] | undefined;
5202
+ allow_no_match?: boolean | undefined;
5203
+ allow_skip?: boolean | undefined;
3985
5204
  } | null | undefined;
3986
5205
  tool_functions?: ({
3987
5206
  id: string;
3988
5207
  type: "function";
5208
+ version?: string | undefined;
3989
5209
  } | {
3990
5210
  type: "global";
3991
5211
  name: string;
5212
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
3992
5213
  })[] | null | undefined;
5214
+ template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
5215
+ mcp?: Record<string, {
5216
+ id: string;
5217
+ type: "id";
5218
+ is_disabled?: boolean | undefined;
5219
+ enabled_tools?: string[] | null | undefined;
5220
+ } | {
5221
+ type: "url";
5222
+ url: string;
5223
+ is_disabled?: boolean | undefined;
5224
+ enabled_tools?: string[] | null | undefined;
5225
+ }> | null | undefined;
3993
5226
  };
3994
5227
  name?: string | null | undefined;
3995
- function_type?: "tool" | "task" | "scorer" | "llm" | undefined;
3996
5228
  }, {
3997
5229
  inline_prompt: {
3998
5230
  options?: {
3999
5231
  params?: z.objectInputType<{
4000
5232
  use_cache: z.ZodOptional<z.ZodBoolean>;
5233
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
5234
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
4001
5235
  temperature: z.ZodOptional<z.ZodNumber>;
4002
5236
  top_p: z.ZodOptional<z.ZodNumber>;
4003
5237
  max_tokens: z.ZodOptional<z.ZodNumber>;
@@ -4080,10 +5314,12 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4080
5314
  }>]>>;
4081
5315
  n: z.ZodOptional<z.ZodNumber>;
4082
5316
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4083
- reasoning_effort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high"]>>;
5317
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high"]>>;
4084
5318
  verbosity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
4085
5319
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
4086
5320
  use_cache: z.ZodOptional<z.ZodBoolean>;
5321
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
5322
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
4087
5323
  max_tokens: z.ZodNumber;
4088
5324
  temperature: z.ZodNumber;
4089
5325
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -4092,24 +5328,28 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4092
5328
  max_tokens_to_sample: z.ZodOptional<z.ZodNumber>;
4093
5329
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
4094
5330
  use_cache: z.ZodOptional<z.ZodBoolean>;
5331
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
5332
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
4095
5333
  temperature: z.ZodOptional<z.ZodNumber>;
4096
5334
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
4097
5335
  topP: z.ZodOptional<z.ZodNumber>;
4098
5336
  topK: z.ZodOptional<z.ZodNumber>;
4099
5337
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
4100
5338
  use_cache: z.ZodOptional<z.ZodBoolean>;
5339
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
5340
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
4101
5341
  temperature: z.ZodOptional<z.ZodNumber>;
4102
5342
  topK: z.ZodOptional<z.ZodNumber>;
4103
5343
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
4104
5344
  use_cache: z.ZodOptional<z.ZodBoolean>;
5345
+ reasoning_enabled: z.ZodOptional<z.ZodBoolean>;
5346
+ reasoning_budget: z.ZodOptional<z.ZodNumber>;
4105
5347
  }, z.ZodTypeAny, "passthrough"> | undefined;
4106
5348
  model?: string | undefined;
4107
5349
  position?: string | undefined;
5350
+ endpoint_name?: string | null | undefined;
4108
5351
  } | null | undefined;
4109
5352
  prompt?: {
4110
- type: "completion";
4111
- content: string;
4112
- } | {
4113
5353
  type: "chat";
4114
5354
  messages: ({
4115
5355
  role: "system";
@@ -4118,6 +5358,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4118
5358
  text?: string | undefined;
4119
5359
  cache_control?: {
4120
5360
  type: "ephemeral";
5361
+ ttl?: "5m" | "1h" | undefined;
4121
5362
  } | undefined;
4122
5363
  }[];
4123
5364
  name?: string | undefined;
@@ -4128,6 +5369,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4128
5369
  text?: string | undefined;
4129
5370
  cache_control?: {
4130
5371
  type: "ephemeral";
5372
+ ttl?: "5m" | "1h" | undefined;
4131
5373
  } | undefined;
4132
5374
  } | {
4133
5375
  type: "image_url";
@@ -4135,6 +5377,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4135
5377
  url: string;
4136
5378
  detail?: "auto" | "low" | "high" | undefined;
4137
5379
  };
5380
+ cache_control?: {
5381
+ type: "ephemeral";
5382
+ ttl?: "5m" | "1h" | undefined;
5383
+ } | undefined;
5384
+ } | {
5385
+ type: "file";
5386
+ file: {
5387
+ filename?: string | undefined;
5388
+ file_data?: string | undefined;
5389
+ file_id?: string | undefined;
5390
+ };
5391
+ cache_control?: {
5392
+ type: "ephemeral";
5393
+ ttl?: "5m" | "1h" | undefined;
5394
+ } | undefined;
4138
5395
  })[];
4139
5396
  name?: string | undefined;
4140
5397
  } | {
@@ -4149,6 +5406,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4149
5406
  text?: string | undefined;
4150
5407
  cache_control?: {
4151
5408
  type: "ephemeral";
5409
+ ttl?: "5m" | "1h" | undefined;
4152
5410
  } | undefined;
4153
5411
  }[] | null | undefined;
4154
5412
  tool_calls?: {
@@ -4163,6 +5421,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4163
5421
  id?: string | undefined;
4164
5422
  content?: string | undefined;
4165
5423
  }[] | undefined;
5424
+ reasoning_signature?: string | undefined;
4166
5425
  } | {
4167
5426
  role: "tool";
4168
5427
  content: string | {
@@ -4170,6 +5429,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4170
5429
  text?: string | undefined;
4171
5430
  cache_control?: {
4172
5431
  type: "ephemeral";
5432
+ ttl?: "5m" | "1h" | undefined;
4173
5433
  } | undefined;
4174
5434
  }[];
4175
5435
  tool_call_id?: string | undefined;
@@ -4184,6 +5444,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4184
5444
  text?: string | undefined;
4185
5445
  cache_control?: {
4186
5446
  type: "ephemeral";
5447
+ ttl?: "5m" | "1h" | undefined;
4187
5448
  } | undefined;
4188
5449
  }[];
4189
5450
  name?: string | undefined;
@@ -4192,6 +5453,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4192
5453
  content?: string | null | undefined;
4193
5454
  })[];
4194
5455
  tools?: string | undefined;
5456
+ } | {
5457
+ type: "completion";
5458
+ content: string;
5459
+ } | null | undefined;
5460
+ preprocessor?: {
5461
+ id: string;
5462
+ type: "function";
5463
+ version?: string | undefined;
5464
+ } | {
5465
+ type: "global";
5466
+ name: string;
5467
+ function_type?: "preprocessor" | undefined;
5468
+ } | {
5469
+ code: string;
5470
+ type: "inline";
4195
5471
  } | null | undefined;
4196
5472
  origin?: {
4197
5473
  project_id?: string | undefined;
@@ -4201,18 +5477,35 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4201
5477
  parser?: {
4202
5478
  type: "llm_classifier";
4203
5479
  use_cot: boolean;
4204
- choice_scores: Record<string, number>;
5480
+ choice_scores?: Record<string, number> | undefined;
5481
+ choice?: string[] | undefined;
5482
+ allow_no_match?: boolean | undefined;
5483
+ allow_skip?: boolean | undefined;
4205
5484
  } | null | undefined;
4206
5485
  tool_functions?: ({
4207
5486
  id: string;
4208
5487
  type: "function";
5488
+ version?: string | undefined;
4209
5489
  } | {
4210
5490
  type: "global";
4211
5491
  name: string;
5492
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4212
5493
  })[] | null | undefined;
5494
+ template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
5495
+ mcp?: Record<string, {
5496
+ id: string;
5497
+ type: "id";
5498
+ is_disabled?: boolean | undefined;
5499
+ enabled_tools?: string[] | null | undefined;
5500
+ } | {
5501
+ type: "url";
5502
+ url: string;
5503
+ is_disabled?: boolean | undefined;
5504
+ enabled_tools?: string[] | null | undefined;
5505
+ }> | null | undefined;
4213
5506
  };
4214
5507
  name?: string | null | undefined;
4215
- function_type?: "tool" | "task" | "scorer" | "llm" | undefined;
5508
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4216
5509
  }>]>, z.ZodObject<{
4217
5510
  input: z.ZodOptional<z.ZodUnknown>;
4218
5511
  expected: z.ZodOptional<z.ZodUnknown>;
@@ -4224,22 +5517,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4224
5517
  type: z.ZodLiteral<"text">;
4225
5518
  cache_control: z.ZodOptional<z.ZodObject<{
4226
5519
  type: z.ZodLiteral<"ephemeral">;
5520
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
4227
5521
  }, "strip", z.ZodTypeAny, {
4228
5522
  type: "ephemeral";
5523
+ ttl?: "5m" | "1h" | undefined;
4229
5524
  }, {
4230
5525
  type: "ephemeral";
5526
+ ttl?: "5m" | "1h" | undefined;
4231
5527
  }>>;
4232
5528
  }, "strip", z.ZodTypeAny, {
4233
5529
  type: "text";
4234
5530
  text: string;
4235
5531
  cache_control?: {
4236
5532
  type: "ephemeral";
5533
+ ttl?: "5m" | "1h" | undefined;
4237
5534
  } | undefined;
4238
5535
  }, {
4239
5536
  type: "text";
4240
5537
  text?: string | undefined;
4241
5538
  cache_control?: {
4242
5539
  type: "ephemeral";
5540
+ ttl?: "5m" | "1h" | undefined;
4243
5541
  } | undefined;
4244
5542
  }>, "many">]>;
4245
5543
  role: z.ZodLiteral<"system">;
@@ -4251,6 +5549,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4251
5549
  text: string;
4252
5550
  cache_control?: {
4253
5551
  type: "ephemeral";
5552
+ ttl?: "5m" | "1h" | undefined;
4254
5553
  } | undefined;
4255
5554
  }[];
4256
5555
  name?: string | undefined;
@@ -4261,6 +5560,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4261
5560
  text?: string | undefined;
4262
5561
  cache_control?: {
4263
5562
  type: "ephemeral";
5563
+ ttl?: "5m" | "1h" | undefined;
4264
5564
  } | undefined;
4265
5565
  }[];
4266
5566
  name?: string | undefined;
@@ -4270,22 +5570,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4270
5570
  type: z.ZodLiteral<"text">;
4271
5571
  cache_control: z.ZodOptional<z.ZodObject<{
4272
5572
  type: z.ZodLiteral<"ephemeral">;
5573
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
4273
5574
  }, "strip", z.ZodTypeAny, {
4274
5575
  type: "ephemeral";
5576
+ ttl?: "5m" | "1h" | undefined;
4275
5577
  }, {
4276
5578
  type: "ephemeral";
5579
+ ttl?: "5m" | "1h" | undefined;
4277
5580
  }>>;
4278
5581
  }, "strip", z.ZodTypeAny, {
4279
5582
  type: "text";
4280
5583
  text: string;
4281
5584
  cache_control?: {
4282
5585
  type: "ephemeral";
5586
+ ttl?: "5m" | "1h" | undefined;
4283
5587
  } | undefined;
4284
5588
  }, {
4285
5589
  type: "text";
4286
5590
  text?: string | undefined;
4287
5591
  cache_control?: {
4288
5592
  type: "ephemeral";
5593
+ ttl?: "5m" | "1h" | undefined;
4289
5594
  } | undefined;
4290
5595
  }>, z.ZodObject<{
4291
5596
  image_url: z.ZodObject<{
@@ -4299,18 +5604,83 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4299
5604
  detail?: "auto" | "low" | "high" | undefined;
4300
5605
  }>;
4301
5606
  type: z.ZodLiteral<"image_url">;
5607
+ cache_control: z.ZodOptional<z.ZodObject<{
5608
+ type: z.ZodLiteral<"ephemeral">;
5609
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
5610
+ }, "strip", z.ZodTypeAny, {
5611
+ type: "ephemeral";
5612
+ ttl?: "5m" | "1h" | undefined;
5613
+ }, {
5614
+ type: "ephemeral";
5615
+ ttl?: "5m" | "1h" | undefined;
5616
+ }>>;
4302
5617
  }, "strip", z.ZodTypeAny, {
4303
5618
  type: "image_url";
4304
5619
  image_url: {
4305
5620
  url: string;
4306
5621
  detail?: "auto" | "low" | "high" | undefined;
4307
5622
  };
5623
+ cache_control?: {
5624
+ type: "ephemeral";
5625
+ ttl?: "5m" | "1h" | undefined;
5626
+ } | undefined;
4308
5627
  }, {
4309
5628
  type: "image_url";
4310
5629
  image_url: {
4311
5630
  url: string;
4312
5631
  detail?: "auto" | "low" | "high" | undefined;
4313
5632
  };
5633
+ cache_control?: {
5634
+ type: "ephemeral";
5635
+ ttl?: "5m" | "1h" | undefined;
5636
+ } | undefined;
5637
+ }>, z.ZodObject<{
5638
+ file: z.ZodObject<{
5639
+ file_data: z.ZodOptional<z.ZodString>;
5640
+ filename: z.ZodOptional<z.ZodString>;
5641
+ file_id: z.ZodOptional<z.ZodString>;
5642
+ }, "strip", z.ZodTypeAny, {
5643
+ filename?: string | undefined;
5644
+ file_data?: string | undefined;
5645
+ file_id?: string | undefined;
5646
+ }, {
5647
+ filename?: string | undefined;
5648
+ file_data?: string | undefined;
5649
+ file_id?: string | undefined;
5650
+ }>;
5651
+ type: z.ZodLiteral<"file">;
5652
+ cache_control: z.ZodOptional<z.ZodObject<{
5653
+ type: z.ZodLiteral<"ephemeral">;
5654
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
5655
+ }, "strip", z.ZodTypeAny, {
5656
+ type: "ephemeral";
5657
+ ttl?: "5m" | "1h" | undefined;
5658
+ }, {
5659
+ type: "ephemeral";
5660
+ ttl?: "5m" | "1h" | undefined;
5661
+ }>>;
5662
+ }, "strip", z.ZodTypeAny, {
5663
+ type: "file";
5664
+ file: {
5665
+ filename?: string | undefined;
5666
+ file_data?: string | undefined;
5667
+ file_id?: string | undefined;
5668
+ };
5669
+ cache_control?: {
5670
+ type: "ephemeral";
5671
+ ttl?: "5m" | "1h" | undefined;
5672
+ } | undefined;
5673
+ }, {
5674
+ type: "file";
5675
+ file: {
5676
+ filename?: string | undefined;
5677
+ file_data?: string | undefined;
5678
+ file_id?: string | undefined;
5679
+ };
5680
+ cache_control?: {
5681
+ type: "ephemeral";
5682
+ ttl?: "5m" | "1h" | undefined;
5683
+ } | undefined;
4314
5684
  }>]>, "many">]>;
4315
5685
  role: z.ZodLiteral<"user">;
4316
5686
  name: z.ZodOptional<z.ZodString>;
@@ -4321,6 +5691,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4321
5691
  text: string;
4322
5692
  cache_control?: {
4323
5693
  type: "ephemeral";
5694
+ ttl?: "5m" | "1h" | undefined;
4324
5695
  } | undefined;
4325
5696
  } | {
4326
5697
  type: "image_url";
@@ -4328,6 +5699,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4328
5699
  url: string;
4329
5700
  detail?: "auto" | "low" | "high" | undefined;
4330
5701
  };
5702
+ cache_control?: {
5703
+ type: "ephemeral";
5704
+ ttl?: "5m" | "1h" | undefined;
5705
+ } | undefined;
5706
+ } | {
5707
+ type: "file";
5708
+ file: {
5709
+ filename?: string | undefined;
5710
+ file_data?: string | undefined;
5711
+ file_id?: string | undefined;
5712
+ };
5713
+ cache_control?: {
5714
+ type: "ephemeral";
5715
+ ttl?: "5m" | "1h" | undefined;
5716
+ } | undefined;
4331
5717
  })[];
4332
5718
  name?: string | undefined;
4333
5719
  }, {
@@ -4337,6 +5723,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4337
5723
  text?: string | undefined;
4338
5724
  cache_control?: {
4339
5725
  type: "ephemeral";
5726
+ ttl?: "5m" | "1h" | undefined;
4340
5727
  } | undefined;
4341
5728
  } | {
4342
5729
  type: "image_url";
@@ -4344,6 +5731,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4344
5731
  url: string;
4345
5732
  detail?: "auto" | "low" | "high" | undefined;
4346
5733
  };
5734
+ cache_control?: {
5735
+ type: "ephemeral";
5736
+ ttl?: "5m" | "1h" | undefined;
5737
+ } | undefined;
5738
+ } | {
5739
+ type: "file";
5740
+ file: {
5741
+ filename?: string | undefined;
5742
+ file_data?: string | undefined;
5743
+ file_id?: string | undefined;
5744
+ };
5745
+ cache_control?: {
5746
+ type: "ephemeral";
5747
+ ttl?: "5m" | "1h" | undefined;
5748
+ } | undefined;
4347
5749
  })[];
4348
5750
  name?: string | undefined;
4349
5751
  }>, z.ZodObject<{
@@ -4353,22 +5755,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4353
5755
  type: z.ZodLiteral<"text">;
4354
5756
  cache_control: z.ZodOptional<z.ZodObject<{
4355
5757
  type: z.ZodLiteral<"ephemeral">;
5758
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
4356
5759
  }, "strip", z.ZodTypeAny, {
4357
5760
  type: "ephemeral";
5761
+ ttl?: "5m" | "1h" | undefined;
4358
5762
  }, {
4359
5763
  type: "ephemeral";
5764
+ ttl?: "5m" | "1h" | undefined;
4360
5765
  }>>;
4361
5766
  }, "strip", z.ZodTypeAny, {
4362
5767
  type: "text";
4363
5768
  text: string;
4364
5769
  cache_control?: {
4365
5770
  type: "ephemeral";
5771
+ ttl?: "5m" | "1h" | undefined;
4366
5772
  } | undefined;
4367
5773
  }, {
4368
5774
  type: "text";
4369
5775
  text?: string | undefined;
4370
5776
  cache_control?: {
4371
5777
  type: "ephemeral";
5778
+ ttl?: "5m" | "1h" | undefined;
4372
5779
  } | undefined;
4373
5780
  }>, "many">, z.ZodNull]>>;
4374
5781
  function_call: z.ZodOptional<z.ZodObject<{
@@ -4420,6 +5827,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4420
5827
  id?: string | undefined;
4421
5828
  content?: string | undefined;
4422
5829
  }>, "many">>;
5830
+ reasoning_signature: z.ZodOptional<z.ZodString>;
4423
5831
  }, "strip", z.ZodTypeAny, {
4424
5832
  role: "assistant";
4425
5833
  name?: string | undefined;
@@ -4432,6 +5840,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4432
5840
  text: string;
4433
5841
  cache_control?: {
4434
5842
  type: "ephemeral";
5843
+ ttl?: "5m" | "1h" | undefined;
4435
5844
  } | undefined;
4436
5845
  }[] | null | undefined;
4437
5846
  tool_calls?: {
@@ -4446,6 +5855,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4446
5855
  id?: string | undefined;
4447
5856
  content?: string | undefined;
4448
5857
  }[] | undefined;
5858
+ reasoning_signature?: string | undefined;
4449
5859
  }, {
4450
5860
  role: "assistant";
4451
5861
  name?: string | undefined;
@@ -4458,6 +5868,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4458
5868
  text?: string | undefined;
4459
5869
  cache_control?: {
4460
5870
  type: "ephemeral";
5871
+ ttl?: "5m" | "1h" | undefined;
4461
5872
  } | undefined;
4462
5873
  }[] | null | undefined;
4463
5874
  tool_calls?: {
@@ -4472,28 +5883,34 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4472
5883
  id?: string | undefined;
4473
5884
  content?: string | undefined;
4474
5885
  }[] | undefined;
5886
+ reasoning_signature?: string | undefined;
4475
5887
  }>, z.ZodObject<{
4476
5888
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
4477
5889
  text: z.ZodDefault<z.ZodString>;
4478
5890
  type: z.ZodLiteral<"text">;
4479
5891
  cache_control: z.ZodOptional<z.ZodObject<{
4480
5892
  type: z.ZodLiteral<"ephemeral">;
5893
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
4481
5894
  }, "strip", z.ZodTypeAny, {
4482
5895
  type: "ephemeral";
5896
+ ttl?: "5m" | "1h" | undefined;
4483
5897
  }, {
4484
5898
  type: "ephemeral";
5899
+ ttl?: "5m" | "1h" | undefined;
4485
5900
  }>>;
4486
5901
  }, "strip", z.ZodTypeAny, {
4487
5902
  type: "text";
4488
5903
  text: string;
4489
5904
  cache_control?: {
4490
5905
  type: "ephemeral";
5906
+ ttl?: "5m" | "1h" | undefined;
4491
5907
  } | undefined;
4492
5908
  }, {
4493
5909
  type: "text";
4494
5910
  text?: string | undefined;
4495
5911
  cache_control?: {
4496
5912
  type: "ephemeral";
5913
+ ttl?: "5m" | "1h" | undefined;
4497
5914
  } | undefined;
4498
5915
  }>, "many">]>;
4499
5916
  role: z.ZodLiteral<"tool">;
@@ -4505,6 +5922,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4505
5922
  text: string;
4506
5923
  cache_control?: {
4507
5924
  type: "ephemeral";
5925
+ ttl?: "5m" | "1h" | undefined;
4508
5926
  } | undefined;
4509
5927
  }[];
4510
5928
  tool_call_id: string;
@@ -4515,6 +5933,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4515
5933
  text?: string | undefined;
4516
5934
  cache_control?: {
4517
5935
  type: "ephemeral";
5936
+ ttl?: "5m" | "1h" | undefined;
4518
5937
  } | undefined;
4519
5938
  }[];
4520
5939
  tool_call_id?: string | undefined;
@@ -4536,22 +5955,27 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4536
5955
  type: z.ZodLiteral<"text">;
4537
5956
  cache_control: z.ZodOptional<z.ZodObject<{
4538
5957
  type: z.ZodLiteral<"ephemeral">;
5958
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
4539
5959
  }, "strip", z.ZodTypeAny, {
4540
5960
  type: "ephemeral";
5961
+ ttl?: "5m" | "1h" | undefined;
4541
5962
  }, {
4542
5963
  type: "ephemeral";
5964
+ ttl?: "5m" | "1h" | undefined;
4543
5965
  }>>;
4544
5966
  }, "strip", z.ZodTypeAny, {
4545
5967
  type: "text";
4546
5968
  text: string;
4547
5969
  cache_control?: {
4548
5970
  type: "ephemeral";
5971
+ ttl?: "5m" | "1h" | undefined;
4549
5972
  } | undefined;
4550
5973
  }, {
4551
5974
  type: "text";
4552
5975
  text?: string | undefined;
4553
5976
  cache_control?: {
4554
5977
  type: "ephemeral";
5978
+ ttl?: "5m" | "1h" | undefined;
4555
5979
  } | undefined;
4556
5980
  }>, "many">]>;
4557
5981
  role: z.ZodLiteral<"developer">;
@@ -4563,6 +5987,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4563
5987
  text: string;
4564
5988
  cache_control?: {
4565
5989
  type: "ephemeral";
5990
+ ttl?: "5m" | "1h" | undefined;
4566
5991
  } | undefined;
4567
5992
  }[];
4568
5993
  name?: string | undefined;
@@ -4573,6 +5998,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4573
5998
  text?: string | undefined;
4574
5999
  cache_control?: {
4575
6000
  type: "ephemeral";
6001
+ ttl?: "5m" | "1h" | undefined;
4576
6002
  } | undefined;
4577
6003
  }[];
4578
6004
  name?: string | undefined;
@@ -4623,14 +6049,23 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4623
6049
  propagated_event?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
4624
6050
  }>, z.ZodString]>>;
4625
6051
  stream: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
4626
- mode: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "parallel"]>, z.ZodNull]>>;
6052
+ mode: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "parallel", "json", "text"]>, z.ZodNull]>>;
4627
6053
  strict: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
6054
+ mcp_auth: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6055
+ oauth_token: z.ZodOptional<z.ZodString>;
6056
+ }, "strip", z.ZodTypeAny, {
6057
+ oauth_token?: string | undefined;
6058
+ }, {
6059
+ oauth_token?: string | undefined;
6060
+ }>>>;
6061
+ overrides: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodNull]>>;
6062
+ endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
4628
6063
  }, "strip", z.ZodTypeAny, {
4629
6064
  expected?: unknown;
4630
6065
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
4631
6066
  strict?: boolean | null | undefined;
4632
- input?: unknown;
4633
6067
  tags?: string[] | null | undefined;
6068
+ input?: unknown;
4634
6069
  messages?: ({
4635
6070
  role: "system";
4636
6071
  content: string | {
@@ -4638,6 +6073,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4638
6073
  text: string;
4639
6074
  cache_control?: {
4640
6075
  type: "ephemeral";
6076
+ ttl?: "5m" | "1h" | undefined;
4641
6077
  } | undefined;
4642
6078
  }[];
4643
6079
  name?: string | undefined;
@@ -4648,6 +6084,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4648
6084
  text: string;
4649
6085
  cache_control?: {
4650
6086
  type: "ephemeral";
6087
+ ttl?: "5m" | "1h" | undefined;
4651
6088
  } | undefined;
4652
6089
  } | {
4653
6090
  type: "image_url";
@@ -4655,6 +6092,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4655
6092
  url: string;
4656
6093
  detail?: "auto" | "low" | "high" | undefined;
4657
6094
  };
6095
+ cache_control?: {
6096
+ type: "ephemeral";
6097
+ ttl?: "5m" | "1h" | undefined;
6098
+ } | undefined;
6099
+ } | {
6100
+ type: "file";
6101
+ file: {
6102
+ filename?: string | undefined;
6103
+ file_data?: string | undefined;
6104
+ file_id?: string | undefined;
6105
+ };
6106
+ cache_control?: {
6107
+ type: "ephemeral";
6108
+ ttl?: "5m" | "1h" | undefined;
6109
+ } | undefined;
4658
6110
  })[];
4659
6111
  name?: string | undefined;
4660
6112
  } | {
@@ -4669,6 +6121,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4669
6121
  text: string;
4670
6122
  cache_control?: {
4671
6123
  type: "ephemeral";
6124
+ ttl?: "5m" | "1h" | undefined;
4672
6125
  } | undefined;
4673
6126
  }[] | null | undefined;
4674
6127
  tool_calls?: {
@@ -4683,6 +6136,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4683
6136
  id?: string | undefined;
4684
6137
  content?: string | undefined;
4685
6138
  }[] | undefined;
6139
+ reasoning_signature?: string | undefined;
4686
6140
  } | {
4687
6141
  role: "tool";
4688
6142
  content: string | {
@@ -4690,6 +6144,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4690
6144
  text: string;
4691
6145
  cache_control?: {
4692
6146
  type: "ephemeral";
6147
+ ttl?: "5m" | "1h" | undefined;
4693
6148
  } | undefined;
4694
6149
  }[];
4695
6150
  tool_call_id: string;
@@ -4704,6 +6159,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4704
6159
  text: string;
4705
6160
  cache_control?: {
4706
6161
  type: "ephemeral";
6162
+ ttl?: "5m" | "1h" | undefined;
4707
6163
  } | undefined;
4708
6164
  }[];
4709
6165
  name?: string | undefined;
@@ -4711,6 +6167,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4711
6167
  role: "model";
4712
6168
  content?: string | null | undefined;
4713
6169
  })[] | undefined;
6170
+ endpoint_name?: string | null | undefined;
4714
6171
  parent?: string | {
4715
6172
  object_type: "experiment" | "project_logs" | "playground_logs";
4716
6173
  object_id: string;
@@ -4722,13 +6179,17 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4722
6179
  propagated_event?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
4723
6180
  } | undefined;
4724
6181
  stream?: boolean | null | undefined;
4725
- mode?: "auto" | "parallel" | null | undefined;
6182
+ mode?: "text" | "auto" | "parallel" | "json" | null | undefined;
6183
+ mcp_auth?: Record<string, {
6184
+ oauth_token?: string | undefined;
6185
+ }> | undefined;
6186
+ overrides?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
4726
6187
  }, {
4727
6188
  expected?: unknown;
4728
6189
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
4729
6190
  strict?: boolean | null | undefined;
4730
- input?: unknown;
4731
6191
  tags?: string[] | null | undefined;
6192
+ input?: unknown;
4732
6193
  messages?: ({
4733
6194
  role: "system";
4734
6195
  content: string | {
@@ -4736,6 +6197,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4736
6197
  text?: string | undefined;
4737
6198
  cache_control?: {
4738
6199
  type: "ephemeral";
6200
+ ttl?: "5m" | "1h" | undefined;
4739
6201
  } | undefined;
4740
6202
  }[];
4741
6203
  name?: string | undefined;
@@ -4746,6 +6208,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4746
6208
  text?: string | undefined;
4747
6209
  cache_control?: {
4748
6210
  type: "ephemeral";
6211
+ ttl?: "5m" | "1h" | undefined;
4749
6212
  } | undefined;
4750
6213
  } | {
4751
6214
  type: "image_url";
@@ -4753,6 +6216,21 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4753
6216
  url: string;
4754
6217
  detail?: "auto" | "low" | "high" | undefined;
4755
6218
  };
6219
+ cache_control?: {
6220
+ type: "ephemeral";
6221
+ ttl?: "5m" | "1h" | undefined;
6222
+ } | undefined;
6223
+ } | {
6224
+ type: "file";
6225
+ file: {
6226
+ filename?: string | undefined;
6227
+ file_data?: string | undefined;
6228
+ file_id?: string | undefined;
6229
+ };
6230
+ cache_control?: {
6231
+ type: "ephemeral";
6232
+ ttl?: "5m" | "1h" | undefined;
6233
+ } | undefined;
4756
6234
  })[];
4757
6235
  name?: string | undefined;
4758
6236
  } | {
@@ -4767,6 +6245,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4767
6245
  text?: string | undefined;
4768
6246
  cache_control?: {
4769
6247
  type: "ephemeral";
6248
+ ttl?: "5m" | "1h" | undefined;
4770
6249
  } | undefined;
4771
6250
  }[] | null | undefined;
4772
6251
  tool_calls?: {
@@ -4781,6 +6260,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4781
6260
  id?: string | undefined;
4782
6261
  content?: string | undefined;
4783
6262
  }[] | undefined;
6263
+ reasoning_signature?: string | undefined;
4784
6264
  } | {
4785
6265
  role: "tool";
4786
6266
  content: string | {
@@ -4788,6 +6268,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4788
6268
  text?: string | undefined;
4789
6269
  cache_control?: {
4790
6270
  type: "ephemeral";
6271
+ ttl?: "5m" | "1h" | undefined;
4791
6272
  } | undefined;
4792
6273
  }[];
4793
6274
  tool_call_id?: string | undefined;
@@ -4802,6 +6283,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4802
6283
  text?: string | undefined;
4803
6284
  cache_control?: {
4804
6285
  type: "ephemeral";
6286
+ ttl?: "5m" | "1h" | undefined;
4805
6287
  } | undefined;
4806
6288
  }[];
4807
6289
  name?: string | undefined;
@@ -4809,6 +6291,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4809
6291
  role: "model";
4810
6292
  content?: string | null | undefined;
4811
6293
  })[] | undefined;
6294
+ endpoint_name?: string | null | undefined;
4812
6295
  parent?: string | {
4813
6296
  object_type: "experiment" | "project_logs" | "playground_logs";
4814
6297
  object_id: string;
@@ -4820,7 +6303,11 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4820
6303
  propagated_event?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
4821
6304
  } | undefined;
4822
6305
  stream?: boolean | null | undefined;
4823
- mode?: "auto" | "parallel" | null | undefined;
6306
+ mode?: "text" | "auto" | "parallel" | "json" | null | undefined;
6307
+ mcp_auth?: Record<string, {
6308
+ oauth_token?: string | undefined;
6309
+ }> | undefined;
6310
+ overrides?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
4824
6311
  }>>;
4825
6312
  type InvokeFunctionType = z.infer<typeof InvokeFunction>;
4826
6313
  declare const ObjectReference: z.ZodObject<{