braintrust 3.20.0 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +20 -0
- package/README.md +6 -0
- package/dev/dist/index.d.mts +1338 -199
- package/dev/dist/index.d.ts +1338 -199
- package/dev/dist/index.js +2904 -997
- package/dev/dist/index.mjs +2418 -511
- package/dist/apply-auto-instrumentation.js +781 -199
- package/dist/apply-auto-instrumentation.mjs +588 -6
- package/dist/auto-instrumentations/bundler/esbuild.cjs +594 -2
- package/dist/auto-instrumentations/bundler/esbuild.d.mts +2 -2
- package/dist/auto-instrumentations/bundler/esbuild.d.ts +2 -2
- package/dist/auto-instrumentations/bundler/esbuild.mjs +3 -3
- package/dist/auto-instrumentations/bundler/next.cjs +594 -2
- package/dist/auto-instrumentations/bundler/next.mjs +4 -4
- package/dist/auto-instrumentations/bundler/rollup.cjs +594 -2
- package/dist/auto-instrumentations/bundler/rollup.d.mts +2 -2
- package/dist/auto-instrumentations/bundler/rollup.d.ts +2 -2
- package/dist/auto-instrumentations/bundler/rollup.mjs +3 -3
- package/dist/auto-instrumentations/bundler/vite.cjs +594 -2
- package/dist/auto-instrumentations/bundler/vite.d.mts +2 -2
- package/dist/auto-instrumentations/bundler/vite.d.ts +2 -2
- package/dist/auto-instrumentations/bundler/vite.mjs +3 -3
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +593 -9
- package/dist/auto-instrumentations/bundler/webpack-loader.d.ts +68 -1
- package/dist/auto-instrumentations/bundler/webpack.cjs +594 -2
- package/dist/auto-instrumentations/bundler/webpack.d.mts +2 -2
- package/dist/auto-instrumentations/bundler/webpack.d.ts +2 -2
- package/dist/auto-instrumentations/bundler/webpack.mjs +4 -4
- package/dist/auto-instrumentations/{chunk-W4E36GIW.mjs → chunk-BRQX23KL.mjs} +16 -0
- package/dist/auto-instrumentations/chunk-M6DLIJ2Z.mjs +784 -0
- package/dist/auto-instrumentations/{chunk-K74TZGGM.mjs → chunk-T6J4C7LX.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-S4374IP6.mjs → chunk-TKRPRPGD.mjs} +4 -6
- package/dist/auto-instrumentations/chunk-VT6DDNKM.mjs +856 -0
- package/dist/auto-instrumentations/hook.mjs +824 -56
- package/dist/auto-instrumentations/index.cjs +16 -0
- package/dist/auto-instrumentations/index.d.mts +2 -3
- package/dist/auto-instrumentations/index.d.ts +2 -3
- package/dist/auto-instrumentations/index.mjs +1 -1
- package/dist/auto-instrumentations/loader/cjs-patch.cjs +578 -4
- package/dist/auto-instrumentations/loader/cjs-patch.d.mts +1 -1
- package/dist/auto-instrumentations/loader/cjs-patch.d.ts +1 -1
- package/dist/auto-instrumentations/loader/cjs-patch.mjs +3 -7
- package/dist/auto-instrumentations/loader/esm-hook.mjs +2 -6
- package/dist/auto-instrumentations/{plugin-D7nDswtC.d.mts → plugin-D0KHwSJv.d.mts} +1 -1
- package/dist/auto-instrumentations/{plugin-D7nDswtC.d.ts → plugin-G6fgxk1b.d.ts} +1 -1
- package/dist/auto-instrumentations/types-RNPaKi9o.d.mts +70 -0
- package/dist/auto-instrumentations/types-RNPaKi9o.d.ts +70 -0
- package/dist/browser.d.mts +4411 -719
- package/dist/browser.d.ts +4411 -719
- package/dist/browser.js +4274 -480
- package/dist/browser.mjs +4274 -480
- package/dist/{chunk-LPC4W2WX.js → chunk-BFGIH2ZJ.js} +4 -0
- package/dist/{chunk-Y7W7WP6H.mjs → chunk-KMGUTPB7.mjs} +4 -0
- package/dist/{chunk-POCCIJAL.js → chunk-MWVVR5LR.js} +3278 -1334
- package/dist/{chunk-F73OMF66.mjs → chunk-ZG2O3XVF.mjs} +2542 -598
- package/dist/cli.js +2338 -419
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +4274 -480
- package/dist/edge-light.mjs +4274 -480
- package/dist/index.d.mts +4926 -1234
- package/dist/index.d.ts +4926 -1234
- package/dist/index.js +2303 -435
- package/dist/index.mjs +1914 -46
- package/dist/instrumentation/index.d.mts +1026 -20
- package/dist/instrumentation/index.d.ts +1026 -20
- package/dist/instrumentation/index.js +3864 -483
- package/dist/instrumentation/index.mjs +3862 -483
- package/dist/vitest-evals-reporter.js +16 -16
- package/dist/vitest-evals-reporter.mjs +2 -2
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +4274 -480
- package/dist/workerd.mjs +4274 -480
- package/licenses/import-in-the-middle/LICENSE +201 -0
- package/licenses/import-in-the-middle/LICENSE-3rdparty.csv +4 -0
- package/licenses/import-in-the-middle/NOTICE +34 -0
- package/licenses/orchestrion-js/LICENSE +202 -0
- package/licenses/orchestrion-js/LICENSE-3rdparty.csv +8 -0
- package/licenses/orchestrion-js/NOTICE +3 -0
- package/licenses/require-in-the-middle/LICENSE +23 -0
- package/package.json +16 -4
- package/util/dist/index.d.mts +1 -0
- package/util/dist/index.d.ts +1 -0
- package/util/dist/index.js +4 -4
- package/util/dist/index.mjs +2 -2
- package/dist/auto-instrumentations/chunk-J57YF7WS.mjs +0 -208
- package/dist/auto-instrumentations/chunk-QFMACSOL.mjs +0 -280
|
@@ -203,22 +203,27 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
203
203
|
type: z.ZodLiteral<"text">;
|
|
204
204
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
205
205
|
type: z.ZodLiteral<"ephemeral">;
|
|
206
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
206
207
|
}, "strip", z.ZodTypeAny, {
|
|
207
208
|
type: "ephemeral";
|
|
209
|
+
ttl?: "5m" | "1h" | undefined;
|
|
208
210
|
}, {
|
|
209
211
|
type: "ephemeral";
|
|
212
|
+
ttl?: "5m" | "1h" | undefined;
|
|
210
213
|
}>>;
|
|
211
214
|
}, "strip", z.ZodTypeAny, {
|
|
212
215
|
type: "text";
|
|
213
216
|
text: string;
|
|
214
217
|
cache_control?: {
|
|
215
218
|
type: "ephemeral";
|
|
219
|
+
ttl?: "5m" | "1h" | undefined;
|
|
216
220
|
} | undefined;
|
|
217
221
|
}, {
|
|
218
222
|
type: "text";
|
|
219
223
|
text?: string | undefined;
|
|
220
224
|
cache_control?: {
|
|
221
225
|
type: "ephemeral";
|
|
226
|
+
ttl?: "5m" | "1h" | undefined;
|
|
222
227
|
} | undefined;
|
|
223
228
|
}>, "many">]>;
|
|
224
229
|
role: z.ZodLiteral<"system">;
|
|
@@ -230,6 +235,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
230
235
|
text: string;
|
|
231
236
|
cache_control?: {
|
|
232
237
|
type: "ephemeral";
|
|
238
|
+
ttl?: "5m" | "1h" | undefined;
|
|
233
239
|
} | undefined;
|
|
234
240
|
}[];
|
|
235
241
|
name?: string | undefined;
|
|
@@ -240,6 +246,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
240
246
|
text?: string | undefined;
|
|
241
247
|
cache_control?: {
|
|
242
248
|
type: "ephemeral";
|
|
249
|
+
ttl?: "5m" | "1h" | undefined;
|
|
243
250
|
} | undefined;
|
|
244
251
|
}[];
|
|
245
252
|
name?: string | undefined;
|
|
@@ -249,22 +256,27 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
249
256
|
type: z.ZodLiteral<"text">;
|
|
250
257
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
251
258
|
type: z.ZodLiteral<"ephemeral">;
|
|
259
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
252
260
|
}, "strip", z.ZodTypeAny, {
|
|
253
261
|
type: "ephemeral";
|
|
262
|
+
ttl?: "5m" | "1h" | undefined;
|
|
254
263
|
}, {
|
|
255
264
|
type: "ephemeral";
|
|
265
|
+
ttl?: "5m" | "1h" | undefined;
|
|
256
266
|
}>>;
|
|
257
267
|
}, "strip", z.ZodTypeAny, {
|
|
258
268
|
type: "text";
|
|
259
269
|
text: string;
|
|
260
270
|
cache_control?: {
|
|
261
271
|
type: "ephemeral";
|
|
272
|
+
ttl?: "5m" | "1h" | undefined;
|
|
262
273
|
} | undefined;
|
|
263
274
|
}, {
|
|
264
275
|
type: "text";
|
|
265
276
|
text?: string | undefined;
|
|
266
277
|
cache_control?: {
|
|
267
278
|
type: "ephemeral";
|
|
279
|
+
ttl?: "5m" | "1h" | undefined;
|
|
268
280
|
} | undefined;
|
|
269
281
|
}>, z.ZodObject<{
|
|
270
282
|
image_url: z.ZodObject<{
|
|
@@ -278,18 +290,36 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
278
290
|
detail?: "auto" | "low" | "high" | undefined;
|
|
279
291
|
}>;
|
|
280
292
|
type: z.ZodLiteral<"image_url">;
|
|
293
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
294
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
295
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
type: "ephemeral";
|
|
298
|
+
ttl?: "5m" | "1h" | undefined;
|
|
299
|
+
}, {
|
|
300
|
+
type: "ephemeral";
|
|
301
|
+
ttl?: "5m" | "1h" | undefined;
|
|
302
|
+
}>>;
|
|
281
303
|
}, "strip", z.ZodTypeAny, {
|
|
282
304
|
type: "image_url";
|
|
283
305
|
image_url: {
|
|
284
306
|
url: string;
|
|
285
307
|
detail?: "auto" | "low" | "high" | undefined;
|
|
286
308
|
};
|
|
309
|
+
cache_control?: {
|
|
310
|
+
type: "ephemeral";
|
|
311
|
+
ttl?: "5m" | "1h" | undefined;
|
|
312
|
+
} | undefined;
|
|
287
313
|
}, {
|
|
288
314
|
type: "image_url";
|
|
289
315
|
image_url: {
|
|
290
316
|
url: string;
|
|
291
317
|
detail?: "auto" | "low" | "high" | undefined;
|
|
292
318
|
};
|
|
319
|
+
cache_control?: {
|
|
320
|
+
type: "ephemeral";
|
|
321
|
+
ttl?: "5m" | "1h" | undefined;
|
|
322
|
+
} | undefined;
|
|
293
323
|
}>, z.ZodObject<{
|
|
294
324
|
file: z.ZodObject<{
|
|
295
325
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -305,6 +335,16 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
305
335
|
file_id?: string | undefined;
|
|
306
336
|
}>;
|
|
307
337
|
type: z.ZodLiteral<"file">;
|
|
338
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
339
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
340
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
341
|
+
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
type: "ephemeral";
|
|
343
|
+
ttl?: "5m" | "1h" | undefined;
|
|
344
|
+
}, {
|
|
345
|
+
type: "ephemeral";
|
|
346
|
+
ttl?: "5m" | "1h" | undefined;
|
|
347
|
+
}>>;
|
|
308
348
|
}, "strip", z.ZodTypeAny, {
|
|
309
349
|
type: "file";
|
|
310
350
|
file: {
|
|
@@ -312,6 +352,10 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
312
352
|
file_data?: string | undefined;
|
|
313
353
|
file_id?: string | undefined;
|
|
314
354
|
};
|
|
355
|
+
cache_control?: {
|
|
356
|
+
type: "ephemeral";
|
|
357
|
+
ttl?: "5m" | "1h" | undefined;
|
|
358
|
+
} | undefined;
|
|
315
359
|
}, {
|
|
316
360
|
type: "file";
|
|
317
361
|
file: {
|
|
@@ -319,6 +363,10 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
319
363
|
file_data?: string | undefined;
|
|
320
364
|
file_id?: string | undefined;
|
|
321
365
|
};
|
|
366
|
+
cache_control?: {
|
|
367
|
+
type: "ephemeral";
|
|
368
|
+
ttl?: "5m" | "1h" | undefined;
|
|
369
|
+
} | undefined;
|
|
322
370
|
}>]>, "many">]>;
|
|
323
371
|
role: z.ZodLiteral<"user">;
|
|
324
372
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -329,6 +377,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
329
377
|
text: string;
|
|
330
378
|
cache_control?: {
|
|
331
379
|
type: "ephemeral";
|
|
380
|
+
ttl?: "5m" | "1h" | undefined;
|
|
332
381
|
} | undefined;
|
|
333
382
|
} | {
|
|
334
383
|
type: "image_url";
|
|
@@ -336,6 +385,10 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
336
385
|
url: string;
|
|
337
386
|
detail?: "auto" | "low" | "high" | undefined;
|
|
338
387
|
};
|
|
388
|
+
cache_control?: {
|
|
389
|
+
type: "ephemeral";
|
|
390
|
+
ttl?: "5m" | "1h" | undefined;
|
|
391
|
+
} | undefined;
|
|
339
392
|
} | {
|
|
340
393
|
type: "file";
|
|
341
394
|
file: {
|
|
@@ -343,6 +396,10 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
343
396
|
file_data?: string | undefined;
|
|
344
397
|
file_id?: string | undefined;
|
|
345
398
|
};
|
|
399
|
+
cache_control?: {
|
|
400
|
+
type: "ephemeral";
|
|
401
|
+
ttl?: "5m" | "1h" | undefined;
|
|
402
|
+
} | undefined;
|
|
346
403
|
})[];
|
|
347
404
|
name?: string | undefined;
|
|
348
405
|
}, {
|
|
@@ -352,6 +409,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
352
409
|
text?: string | undefined;
|
|
353
410
|
cache_control?: {
|
|
354
411
|
type: "ephemeral";
|
|
412
|
+
ttl?: "5m" | "1h" | undefined;
|
|
355
413
|
} | undefined;
|
|
356
414
|
} | {
|
|
357
415
|
type: "image_url";
|
|
@@ -359,6 +417,10 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
359
417
|
url: string;
|
|
360
418
|
detail?: "auto" | "low" | "high" | undefined;
|
|
361
419
|
};
|
|
420
|
+
cache_control?: {
|
|
421
|
+
type: "ephemeral";
|
|
422
|
+
ttl?: "5m" | "1h" | undefined;
|
|
423
|
+
} | undefined;
|
|
362
424
|
} | {
|
|
363
425
|
type: "file";
|
|
364
426
|
file: {
|
|
@@ -366,6 +428,10 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
366
428
|
file_data?: string | undefined;
|
|
367
429
|
file_id?: string | undefined;
|
|
368
430
|
};
|
|
431
|
+
cache_control?: {
|
|
432
|
+
type: "ephemeral";
|
|
433
|
+
ttl?: "5m" | "1h" | undefined;
|
|
434
|
+
} | undefined;
|
|
369
435
|
})[];
|
|
370
436
|
name?: string | undefined;
|
|
371
437
|
}>, z.ZodObject<{
|
|
@@ -375,22 +441,27 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
375
441
|
type: z.ZodLiteral<"text">;
|
|
376
442
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
377
443
|
type: z.ZodLiteral<"ephemeral">;
|
|
444
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
378
445
|
}, "strip", z.ZodTypeAny, {
|
|
379
446
|
type: "ephemeral";
|
|
447
|
+
ttl?: "5m" | "1h" | undefined;
|
|
380
448
|
}, {
|
|
381
449
|
type: "ephemeral";
|
|
450
|
+
ttl?: "5m" | "1h" | undefined;
|
|
382
451
|
}>>;
|
|
383
452
|
}, "strip", z.ZodTypeAny, {
|
|
384
453
|
type: "text";
|
|
385
454
|
text: string;
|
|
386
455
|
cache_control?: {
|
|
387
456
|
type: "ephemeral";
|
|
457
|
+
ttl?: "5m" | "1h" | undefined;
|
|
388
458
|
} | undefined;
|
|
389
459
|
}, {
|
|
390
460
|
type: "text";
|
|
391
461
|
text?: string | undefined;
|
|
392
462
|
cache_control?: {
|
|
393
463
|
type: "ephemeral";
|
|
464
|
+
ttl?: "5m" | "1h" | undefined;
|
|
394
465
|
} | undefined;
|
|
395
466
|
}>, "many">, z.ZodNull]>>;
|
|
396
467
|
function_call: z.ZodOptional<z.ZodObject<{
|
|
@@ -455,6 +526,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
455
526
|
text: string;
|
|
456
527
|
cache_control?: {
|
|
457
528
|
type: "ephemeral";
|
|
529
|
+
ttl?: "5m" | "1h" | undefined;
|
|
458
530
|
} | undefined;
|
|
459
531
|
}[] | null | undefined;
|
|
460
532
|
tool_calls?: {
|
|
@@ -482,6 +554,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
482
554
|
text?: string | undefined;
|
|
483
555
|
cache_control?: {
|
|
484
556
|
type: "ephemeral";
|
|
557
|
+
ttl?: "5m" | "1h" | undefined;
|
|
485
558
|
} | undefined;
|
|
486
559
|
}[] | null | undefined;
|
|
487
560
|
tool_calls?: {
|
|
@@ -503,22 +576,27 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
503
576
|
type: z.ZodLiteral<"text">;
|
|
504
577
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
505
578
|
type: z.ZodLiteral<"ephemeral">;
|
|
579
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
506
580
|
}, "strip", z.ZodTypeAny, {
|
|
507
581
|
type: "ephemeral";
|
|
582
|
+
ttl?: "5m" | "1h" | undefined;
|
|
508
583
|
}, {
|
|
509
584
|
type: "ephemeral";
|
|
585
|
+
ttl?: "5m" | "1h" | undefined;
|
|
510
586
|
}>>;
|
|
511
587
|
}, "strip", z.ZodTypeAny, {
|
|
512
588
|
type: "text";
|
|
513
589
|
text: string;
|
|
514
590
|
cache_control?: {
|
|
515
591
|
type: "ephemeral";
|
|
592
|
+
ttl?: "5m" | "1h" | undefined;
|
|
516
593
|
} | undefined;
|
|
517
594
|
}, {
|
|
518
595
|
type: "text";
|
|
519
596
|
text?: string | undefined;
|
|
520
597
|
cache_control?: {
|
|
521
598
|
type: "ephemeral";
|
|
599
|
+
ttl?: "5m" | "1h" | undefined;
|
|
522
600
|
} | undefined;
|
|
523
601
|
}>, "many">]>;
|
|
524
602
|
role: z.ZodLiteral<"tool">;
|
|
@@ -530,6 +608,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
530
608
|
text: string;
|
|
531
609
|
cache_control?: {
|
|
532
610
|
type: "ephemeral";
|
|
611
|
+
ttl?: "5m" | "1h" | undefined;
|
|
533
612
|
} | undefined;
|
|
534
613
|
}[];
|
|
535
614
|
tool_call_id: string;
|
|
@@ -540,6 +619,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
540
619
|
text?: string | undefined;
|
|
541
620
|
cache_control?: {
|
|
542
621
|
type: "ephemeral";
|
|
622
|
+
ttl?: "5m" | "1h" | undefined;
|
|
543
623
|
} | undefined;
|
|
544
624
|
}[];
|
|
545
625
|
tool_call_id?: string | undefined;
|
|
@@ -561,22 +641,27 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
561
641
|
type: z.ZodLiteral<"text">;
|
|
562
642
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
563
643
|
type: z.ZodLiteral<"ephemeral">;
|
|
644
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
564
645
|
}, "strip", z.ZodTypeAny, {
|
|
565
646
|
type: "ephemeral";
|
|
647
|
+
ttl?: "5m" | "1h" | undefined;
|
|
566
648
|
}, {
|
|
567
649
|
type: "ephemeral";
|
|
650
|
+
ttl?: "5m" | "1h" | undefined;
|
|
568
651
|
}>>;
|
|
569
652
|
}, "strip", z.ZodTypeAny, {
|
|
570
653
|
type: "text";
|
|
571
654
|
text: string;
|
|
572
655
|
cache_control?: {
|
|
573
656
|
type: "ephemeral";
|
|
657
|
+
ttl?: "5m" | "1h" | undefined;
|
|
574
658
|
} | undefined;
|
|
575
659
|
}, {
|
|
576
660
|
type: "text";
|
|
577
661
|
text?: string | undefined;
|
|
578
662
|
cache_control?: {
|
|
579
663
|
type: "ephemeral";
|
|
664
|
+
ttl?: "5m" | "1h" | undefined;
|
|
580
665
|
} | undefined;
|
|
581
666
|
}>, "many">]>;
|
|
582
667
|
role: z.ZodLiteral<"developer">;
|
|
@@ -588,6 +673,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
588
673
|
text: string;
|
|
589
674
|
cache_control?: {
|
|
590
675
|
type: "ephemeral";
|
|
676
|
+
ttl?: "5m" | "1h" | undefined;
|
|
591
677
|
} | undefined;
|
|
592
678
|
}[];
|
|
593
679
|
name?: string | undefined;
|
|
@@ -598,6 +684,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
598
684
|
text?: string | undefined;
|
|
599
685
|
cache_control?: {
|
|
600
686
|
type: "ephemeral";
|
|
687
|
+
ttl?: "5m" | "1h" | undefined;
|
|
601
688
|
} | undefined;
|
|
602
689
|
}[];
|
|
603
690
|
name?: string | undefined;
|
|
@@ -618,22 +705,27 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
618
705
|
type: z.ZodLiteral<"text">;
|
|
619
706
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
620
707
|
type: z.ZodLiteral<"ephemeral">;
|
|
708
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
621
709
|
}, "strip", z.ZodTypeAny, {
|
|
622
710
|
type: "ephemeral";
|
|
711
|
+
ttl?: "5m" | "1h" | undefined;
|
|
623
712
|
}, {
|
|
624
713
|
type: "ephemeral";
|
|
714
|
+
ttl?: "5m" | "1h" | undefined;
|
|
625
715
|
}>>;
|
|
626
716
|
}, "strip", z.ZodTypeAny, {
|
|
627
717
|
type: "text";
|
|
628
718
|
text: string;
|
|
629
719
|
cache_control?: {
|
|
630
720
|
type: "ephemeral";
|
|
721
|
+
ttl?: "5m" | "1h" | undefined;
|
|
631
722
|
} | undefined;
|
|
632
723
|
}, {
|
|
633
724
|
type: "text";
|
|
634
725
|
text?: string | undefined;
|
|
635
726
|
cache_control?: {
|
|
636
727
|
type: "ephemeral";
|
|
728
|
+
ttl?: "5m" | "1h" | undefined;
|
|
637
729
|
} | undefined;
|
|
638
730
|
}>, "many">]>;
|
|
639
731
|
role: z.ZodLiteral<"system">;
|
|
@@ -645,6 +737,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
645
737
|
text: string;
|
|
646
738
|
cache_control?: {
|
|
647
739
|
type: "ephemeral";
|
|
740
|
+
ttl?: "5m" | "1h" | undefined;
|
|
648
741
|
} | undefined;
|
|
649
742
|
}[];
|
|
650
743
|
name?: string | undefined;
|
|
@@ -655,6 +748,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
655
748
|
text?: string | undefined;
|
|
656
749
|
cache_control?: {
|
|
657
750
|
type: "ephemeral";
|
|
751
|
+
ttl?: "5m" | "1h" | undefined;
|
|
658
752
|
} | undefined;
|
|
659
753
|
}[];
|
|
660
754
|
name?: string | undefined;
|
|
@@ -664,22 +758,27 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
664
758
|
type: z.ZodLiteral<"text">;
|
|
665
759
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
666
760
|
type: z.ZodLiteral<"ephemeral">;
|
|
761
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
667
762
|
}, "strip", z.ZodTypeAny, {
|
|
668
763
|
type: "ephemeral";
|
|
764
|
+
ttl?: "5m" | "1h" | undefined;
|
|
669
765
|
}, {
|
|
670
766
|
type: "ephemeral";
|
|
767
|
+
ttl?: "5m" | "1h" | undefined;
|
|
671
768
|
}>>;
|
|
672
769
|
}, "strip", z.ZodTypeAny, {
|
|
673
770
|
type: "text";
|
|
674
771
|
text: string;
|
|
675
772
|
cache_control?: {
|
|
676
773
|
type: "ephemeral";
|
|
774
|
+
ttl?: "5m" | "1h" | undefined;
|
|
677
775
|
} | undefined;
|
|
678
776
|
}, {
|
|
679
777
|
type: "text";
|
|
680
778
|
text?: string | undefined;
|
|
681
779
|
cache_control?: {
|
|
682
780
|
type: "ephemeral";
|
|
781
|
+
ttl?: "5m" | "1h" | undefined;
|
|
683
782
|
} | undefined;
|
|
684
783
|
}>, z.ZodObject<{
|
|
685
784
|
image_url: z.ZodObject<{
|
|
@@ -693,18 +792,36 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
693
792
|
detail?: "auto" | "low" | "high" | undefined;
|
|
694
793
|
}>;
|
|
695
794
|
type: z.ZodLiteral<"image_url">;
|
|
795
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
796
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
797
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
798
|
+
}, "strip", z.ZodTypeAny, {
|
|
799
|
+
type: "ephemeral";
|
|
800
|
+
ttl?: "5m" | "1h" | undefined;
|
|
801
|
+
}, {
|
|
802
|
+
type: "ephemeral";
|
|
803
|
+
ttl?: "5m" | "1h" | undefined;
|
|
804
|
+
}>>;
|
|
696
805
|
}, "strip", z.ZodTypeAny, {
|
|
697
806
|
type: "image_url";
|
|
698
807
|
image_url: {
|
|
699
808
|
url: string;
|
|
700
809
|
detail?: "auto" | "low" | "high" | undefined;
|
|
701
810
|
};
|
|
811
|
+
cache_control?: {
|
|
812
|
+
type: "ephemeral";
|
|
813
|
+
ttl?: "5m" | "1h" | undefined;
|
|
814
|
+
} | undefined;
|
|
702
815
|
}, {
|
|
703
816
|
type: "image_url";
|
|
704
817
|
image_url: {
|
|
705
818
|
url: string;
|
|
706
819
|
detail?: "auto" | "low" | "high" | undefined;
|
|
707
820
|
};
|
|
821
|
+
cache_control?: {
|
|
822
|
+
type: "ephemeral";
|
|
823
|
+
ttl?: "5m" | "1h" | undefined;
|
|
824
|
+
} | undefined;
|
|
708
825
|
}>, z.ZodObject<{
|
|
709
826
|
file: z.ZodObject<{
|
|
710
827
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -720,6 +837,16 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
720
837
|
file_id?: string | undefined;
|
|
721
838
|
}>;
|
|
722
839
|
type: z.ZodLiteral<"file">;
|
|
840
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
841
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
842
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
843
|
+
}, "strip", z.ZodTypeAny, {
|
|
844
|
+
type: "ephemeral";
|
|
845
|
+
ttl?: "5m" | "1h" | undefined;
|
|
846
|
+
}, {
|
|
847
|
+
type: "ephemeral";
|
|
848
|
+
ttl?: "5m" | "1h" | undefined;
|
|
849
|
+
}>>;
|
|
723
850
|
}, "strip", z.ZodTypeAny, {
|
|
724
851
|
type: "file";
|
|
725
852
|
file: {
|
|
@@ -727,6 +854,10 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
727
854
|
file_data?: string | undefined;
|
|
728
855
|
file_id?: string | undefined;
|
|
729
856
|
};
|
|
857
|
+
cache_control?: {
|
|
858
|
+
type: "ephemeral";
|
|
859
|
+
ttl?: "5m" | "1h" | undefined;
|
|
860
|
+
} | undefined;
|
|
730
861
|
}, {
|
|
731
862
|
type: "file";
|
|
732
863
|
file: {
|
|
@@ -734,6 +865,10 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
734
865
|
file_data?: string | undefined;
|
|
735
866
|
file_id?: string | undefined;
|
|
736
867
|
};
|
|
868
|
+
cache_control?: {
|
|
869
|
+
type: "ephemeral";
|
|
870
|
+
ttl?: "5m" | "1h" | undefined;
|
|
871
|
+
} | undefined;
|
|
737
872
|
}>]>, "many">]>;
|
|
738
873
|
role: z.ZodLiteral<"user">;
|
|
739
874
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -744,6 +879,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
744
879
|
text: string;
|
|
745
880
|
cache_control?: {
|
|
746
881
|
type: "ephemeral";
|
|
882
|
+
ttl?: "5m" | "1h" | undefined;
|
|
747
883
|
} | undefined;
|
|
748
884
|
} | {
|
|
749
885
|
type: "image_url";
|
|
@@ -751,6 +887,10 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
751
887
|
url: string;
|
|
752
888
|
detail?: "auto" | "low" | "high" | undefined;
|
|
753
889
|
};
|
|
890
|
+
cache_control?: {
|
|
891
|
+
type: "ephemeral";
|
|
892
|
+
ttl?: "5m" | "1h" | undefined;
|
|
893
|
+
} | undefined;
|
|
754
894
|
} | {
|
|
755
895
|
type: "file";
|
|
756
896
|
file: {
|
|
@@ -758,6 +898,10 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
758
898
|
file_data?: string | undefined;
|
|
759
899
|
file_id?: string | undefined;
|
|
760
900
|
};
|
|
901
|
+
cache_control?: {
|
|
902
|
+
type: "ephemeral";
|
|
903
|
+
ttl?: "5m" | "1h" | undefined;
|
|
904
|
+
} | undefined;
|
|
761
905
|
})[];
|
|
762
906
|
name?: string | undefined;
|
|
763
907
|
}, {
|
|
@@ -767,6 +911,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
767
911
|
text?: string | undefined;
|
|
768
912
|
cache_control?: {
|
|
769
913
|
type: "ephemeral";
|
|
914
|
+
ttl?: "5m" | "1h" | undefined;
|
|
770
915
|
} | undefined;
|
|
771
916
|
} | {
|
|
772
917
|
type: "image_url";
|
|
@@ -774,6 +919,10 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
774
919
|
url: string;
|
|
775
920
|
detail?: "auto" | "low" | "high" | undefined;
|
|
776
921
|
};
|
|
922
|
+
cache_control?: {
|
|
923
|
+
type: "ephemeral";
|
|
924
|
+
ttl?: "5m" | "1h" | undefined;
|
|
925
|
+
} | undefined;
|
|
777
926
|
} | {
|
|
778
927
|
type: "file";
|
|
779
928
|
file: {
|
|
@@ -781,6 +930,10 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
781
930
|
file_data?: string | undefined;
|
|
782
931
|
file_id?: string | undefined;
|
|
783
932
|
};
|
|
933
|
+
cache_control?: {
|
|
934
|
+
type: "ephemeral";
|
|
935
|
+
ttl?: "5m" | "1h" | undefined;
|
|
936
|
+
} | undefined;
|
|
784
937
|
})[];
|
|
785
938
|
name?: string | undefined;
|
|
786
939
|
}>, z.ZodObject<{
|
|
@@ -790,22 +943,27 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
790
943
|
type: z.ZodLiteral<"text">;
|
|
791
944
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
792
945
|
type: z.ZodLiteral<"ephemeral">;
|
|
946
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
793
947
|
}, "strip", z.ZodTypeAny, {
|
|
794
948
|
type: "ephemeral";
|
|
949
|
+
ttl?: "5m" | "1h" | undefined;
|
|
795
950
|
}, {
|
|
796
951
|
type: "ephemeral";
|
|
952
|
+
ttl?: "5m" | "1h" | undefined;
|
|
797
953
|
}>>;
|
|
798
954
|
}, "strip", z.ZodTypeAny, {
|
|
799
955
|
type: "text";
|
|
800
956
|
text: string;
|
|
801
957
|
cache_control?: {
|
|
802
958
|
type: "ephemeral";
|
|
959
|
+
ttl?: "5m" | "1h" | undefined;
|
|
803
960
|
} | undefined;
|
|
804
961
|
}, {
|
|
805
962
|
type: "text";
|
|
806
963
|
text?: string | undefined;
|
|
807
964
|
cache_control?: {
|
|
808
965
|
type: "ephemeral";
|
|
966
|
+
ttl?: "5m" | "1h" | undefined;
|
|
809
967
|
} | undefined;
|
|
810
968
|
}>, "many">, z.ZodNull]>>;
|
|
811
969
|
function_call: z.ZodOptional<z.ZodObject<{
|
|
@@ -870,6 +1028,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
870
1028
|
text: string;
|
|
871
1029
|
cache_control?: {
|
|
872
1030
|
type: "ephemeral";
|
|
1031
|
+
ttl?: "5m" | "1h" | undefined;
|
|
873
1032
|
} | undefined;
|
|
874
1033
|
}[] | null | undefined;
|
|
875
1034
|
tool_calls?: {
|
|
@@ -897,6 +1056,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
897
1056
|
text?: string | undefined;
|
|
898
1057
|
cache_control?: {
|
|
899
1058
|
type: "ephemeral";
|
|
1059
|
+
ttl?: "5m" | "1h" | undefined;
|
|
900
1060
|
} | undefined;
|
|
901
1061
|
}[] | null | undefined;
|
|
902
1062
|
tool_calls?: {
|
|
@@ -918,22 +1078,27 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
918
1078
|
type: z.ZodLiteral<"text">;
|
|
919
1079
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
920
1080
|
type: z.ZodLiteral<"ephemeral">;
|
|
1081
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
921
1082
|
}, "strip", z.ZodTypeAny, {
|
|
922
1083
|
type: "ephemeral";
|
|
1084
|
+
ttl?: "5m" | "1h" | undefined;
|
|
923
1085
|
}, {
|
|
924
1086
|
type: "ephemeral";
|
|
1087
|
+
ttl?: "5m" | "1h" | undefined;
|
|
925
1088
|
}>>;
|
|
926
1089
|
}, "strip", z.ZodTypeAny, {
|
|
927
1090
|
type: "text";
|
|
928
1091
|
text: string;
|
|
929
1092
|
cache_control?: {
|
|
930
1093
|
type: "ephemeral";
|
|
1094
|
+
ttl?: "5m" | "1h" | undefined;
|
|
931
1095
|
} | undefined;
|
|
932
1096
|
}, {
|
|
933
1097
|
type: "text";
|
|
934
1098
|
text?: string | undefined;
|
|
935
1099
|
cache_control?: {
|
|
936
1100
|
type: "ephemeral";
|
|
1101
|
+
ttl?: "5m" | "1h" | undefined;
|
|
937
1102
|
} | undefined;
|
|
938
1103
|
}>, "many">]>;
|
|
939
1104
|
role: z.ZodLiteral<"tool">;
|
|
@@ -945,6 +1110,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
945
1110
|
text: string;
|
|
946
1111
|
cache_control?: {
|
|
947
1112
|
type: "ephemeral";
|
|
1113
|
+
ttl?: "5m" | "1h" | undefined;
|
|
948
1114
|
} | undefined;
|
|
949
1115
|
}[];
|
|
950
1116
|
tool_call_id: string;
|
|
@@ -955,6 +1121,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
955
1121
|
text?: string | undefined;
|
|
956
1122
|
cache_control?: {
|
|
957
1123
|
type: "ephemeral";
|
|
1124
|
+
ttl?: "5m" | "1h" | undefined;
|
|
958
1125
|
} | undefined;
|
|
959
1126
|
}[];
|
|
960
1127
|
tool_call_id?: string | undefined;
|
|
@@ -976,22 +1143,27 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
976
1143
|
type: z.ZodLiteral<"text">;
|
|
977
1144
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
978
1145
|
type: z.ZodLiteral<"ephemeral">;
|
|
1146
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
979
1147
|
}, "strip", z.ZodTypeAny, {
|
|
980
1148
|
type: "ephemeral";
|
|
1149
|
+
ttl?: "5m" | "1h" | undefined;
|
|
981
1150
|
}, {
|
|
982
1151
|
type: "ephemeral";
|
|
1152
|
+
ttl?: "5m" | "1h" | undefined;
|
|
983
1153
|
}>>;
|
|
984
1154
|
}, "strip", z.ZodTypeAny, {
|
|
985
1155
|
type: "text";
|
|
986
1156
|
text: string;
|
|
987
1157
|
cache_control?: {
|
|
988
1158
|
type: "ephemeral";
|
|
1159
|
+
ttl?: "5m" | "1h" | undefined;
|
|
989
1160
|
} | undefined;
|
|
990
1161
|
}, {
|
|
991
1162
|
type: "text";
|
|
992
1163
|
text?: string | undefined;
|
|
993
1164
|
cache_control?: {
|
|
994
1165
|
type: "ephemeral";
|
|
1166
|
+
ttl?: "5m" | "1h" | undefined;
|
|
995
1167
|
} | undefined;
|
|
996
1168
|
}>, "many">]>;
|
|
997
1169
|
role: z.ZodLiteral<"developer">;
|
|
@@ -1003,6 +1175,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
1003
1175
|
text: string;
|
|
1004
1176
|
cache_control?: {
|
|
1005
1177
|
type: "ephemeral";
|
|
1178
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1006
1179
|
} | undefined;
|
|
1007
1180
|
}[];
|
|
1008
1181
|
name?: string | undefined;
|
|
@@ -1013,6 +1186,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
1013
1186
|
text?: string | undefined;
|
|
1014
1187
|
cache_control?: {
|
|
1015
1188
|
type: "ephemeral";
|
|
1189
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1016
1190
|
} | undefined;
|
|
1017
1191
|
}[];
|
|
1018
1192
|
name?: string | undefined;
|
|
@@ -1080,22 +1254,27 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1080
1254
|
type: z.ZodLiteral<"text">;
|
|
1081
1255
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1082
1256
|
type: z.ZodLiteral<"ephemeral">;
|
|
1257
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1083
1258
|
}, "strip", z.ZodTypeAny, {
|
|
1084
1259
|
type: "ephemeral";
|
|
1260
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1085
1261
|
}, {
|
|
1086
1262
|
type: "ephemeral";
|
|
1263
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1087
1264
|
}>>;
|
|
1088
1265
|
}, "strip", z.ZodTypeAny, {
|
|
1089
1266
|
type: "text";
|
|
1090
1267
|
text: string;
|
|
1091
1268
|
cache_control?: {
|
|
1092
1269
|
type: "ephemeral";
|
|
1270
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1093
1271
|
} | undefined;
|
|
1094
1272
|
}, {
|
|
1095
1273
|
type: "text";
|
|
1096
1274
|
text?: string | undefined;
|
|
1097
1275
|
cache_control?: {
|
|
1098
1276
|
type: "ephemeral";
|
|
1277
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1099
1278
|
} | undefined;
|
|
1100
1279
|
}>, "many">]>;
|
|
1101
1280
|
role: z.ZodLiteral<"system">;
|
|
@@ -1107,6 +1286,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1107
1286
|
text: string;
|
|
1108
1287
|
cache_control?: {
|
|
1109
1288
|
type: "ephemeral";
|
|
1289
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1110
1290
|
} | undefined;
|
|
1111
1291
|
}[];
|
|
1112
1292
|
name?: string | undefined;
|
|
@@ -1117,6 +1297,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1117
1297
|
text?: string | undefined;
|
|
1118
1298
|
cache_control?: {
|
|
1119
1299
|
type: "ephemeral";
|
|
1300
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1120
1301
|
} | undefined;
|
|
1121
1302
|
}[];
|
|
1122
1303
|
name?: string | undefined;
|
|
@@ -1126,22 +1307,27 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1126
1307
|
type: z.ZodLiteral<"text">;
|
|
1127
1308
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1128
1309
|
type: z.ZodLiteral<"ephemeral">;
|
|
1310
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1129
1311
|
}, "strip", z.ZodTypeAny, {
|
|
1130
1312
|
type: "ephemeral";
|
|
1313
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1131
1314
|
}, {
|
|
1132
1315
|
type: "ephemeral";
|
|
1316
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1133
1317
|
}>>;
|
|
1134
1318
|
}, "strip", z.ZodTypeAny, {
|
|
1135
1319
|
type: "text";
|
|
1136
1320
|
text: string;
|
|
1137
1321
|
cache_control?: {
|
|
1138
1322
|
type: "ephemeral";
|
|
1323
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1139
1324
|
} | undefined;
|
|
1140
1325
|
}, {
|
|
1141
1326
|
type: "text";
|
|
1142
1327
|
text?: string | undefined;
|
|
1143
1328
|
cache_control?: {
|
|
1144
1329
|
type: "ephemeral";
|
|
1330
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1145
1331
|
} | undefined;
|
|
1146
1332
|
}>, z.ZodObject<{
|
|
1147
1333
|
image_url: z.ZodObject<{
|
|
@@ -1155,18 +1341,36 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1155
1341
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1156
1342
|
}>;
|
|
1157
1343
|
type: z.ZodLiteral<"image_url">;
|
|
1344
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1345
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1346
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1347
|
+
}, "strip", z.ZodTypeAny, {
|
|
1348
|
+
type: "ephemeral";
|
|
1349
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1350
|
+
}, {
|
|
1351
|
+
type: "ephemeral";
|
|
1352
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1353
|
+
}>>;
|
|
1158
1354
|
}, "strip", z.ZodTypeAny, {
|
|
1159
1355
|
type: "image_url";
|
|
1160
1356
|
image_url: {
|
|
1161
1357
|
url: string;
|
|
1162
1358
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1163
1359
|
};
|
|
1360
|
+
cache_control?: {
|
|
1361
|
+
type: "ephemeral";
|
|
1362
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1363
|
+
} | undefined;
|
|
1164
1364
|
}, {
|
|
1165
1365
|
type: "image_url";
|
|
1166
1366
|
image_url: {
|
|
1167
1367
|
url: string;
|
|
1168
1368
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1169
1369
|
};
|
|
1370
|
+
cache_control?: {
|
|
1371
|
+
type: "ephemeral";
|
|
1372
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1373
|
+
} | undefined;
|
|
1170
1374
|
}>, z.ZodObject<{
|
|
1171
1375
|
file: z.ZodObject<{
|
|
1172
1376
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -1182,6 +1386,16 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1182
1386
|
file_id?: string | undefined;
|
|
1183
1387
|
}>;
|
|
1184
1388
|
type: z.ZodLiteral<"file">;
|
|
1389
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1390
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1391
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1392
|
+
}, "strip", z.ZodTypeAny, {
|
|
1393
|
+
type: "ephemeral";
|
|
1394
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1395
|
+
}, {
|
|
1396
|
+
type: "ephemeral";
|
|
1397
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1398
|
+
}>>;
|
|
1185
1399
|
}, "strip", z.ZodTypeAny, {
|
|
1186
1400
|
type: "file";
|
|
1187
1401
|
file: {
|
|
@@ -1189,6 +1403,10 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1189
1403
|
file_data?: string | undefined;
|
|
1190
1404
|
file_id?: string | undefined;
|
|
1191
1405
|
};
|
|
1406
|
+
cache_control?: {
|
|
1407
|
+
type: "ephemeral";
|
|
1408
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1409
|
+
} | undefined;
|
|
1192
1410
|
}, {
|
|
1193
1411
|
type: "file";
|
|
1194
1412
|
file: {
|
|
@@ -1196,6 +1414,10 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1196
1414
|
file_data?: string | undefined;
|
|
1197
1415
|
file_id?: string | undefined;
|
|
1198
1416
|
};
|
|
1417
|
+
cache_control?: {
|
|
1418
|
+
type: "ephemeral";
|
|
1419
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1420
|
+
} | undefined;
|
|
1199
1421
|
}>]>, "many">]>;
|
|
1200
1422
|
role: z.ZodLiteral<"user">;
|
|
1201
1423
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1206,6 +1428,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1206
1428
|
text: string;
|
|
1207
1429
|
cache_control?: {
|
|
1208
1430
|
type: "ephemeral";
|
|
1431
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1209
1432
|
} | undefined;
|
|
1210
1433
|
} | {
|
|
1211
1434
|
type: "image_url";
|
|
@@ -1213,6 +1436,10 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1213
1436
|
url: string;
|
|
1214
1437
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1215
1438
|
};
|
|
1439
|
+
cache_control?: {
|
|
1440
|
+
type: "ephemeral";
|
|
1441
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1442
|
+
} | undefined;
|
|
1216
1443
|
} | {
|
|
1217
1444
|
type: "file";
|
|
1218
1445
|
file: {
|
|
@@ -1220,6 +1447,10 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1220
1447
|
file_data?: string | undefined;
|
|
1221
1448
|
file_id?: string | undefined;
|
|
1222
1449
|
};
|
|
1450
|
+
cache_control?: {
|
|
1451
|
+
type: "ephemeral";
|
|
1452
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1453
|
+
} | undefined;
|
|
1223
1454
|
})[];
|
|
1224
1455
|
name?: string | undefined;
|
|
1225
1456
|
}, {
|
|
@@ -1229,6 +1460,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1229
1460
|
text?: string | undefined;
|
|
1230
1461
|
cache_control?: {
|
|
1231
1462
|
type: "ephemeral";
|
|
1463
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1232
1464
|
} | undefined;
|
|
1233
1465
|
} | {
|
|
1234
1466
|
type: "image_url";
|
|
@@ -1236,6 +1468,10 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1236
1468
|
url: string;
|
|
1237
1469
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1238
1470
|
};
|
|
1471
|
+
cache_control?: {
|
|
1472
|
+
type: "ephemeral";
|
|
1473
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1474
|
+
} | undefined;
|
|
1239
1475
|
} | {
|
|
1240
1476
|
type: "file";
|
|
1241
1477
|
file: {
|
|
@@ -1243,6 +1479,10 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1243
1479
|
file_data?: string | undefined;
|
|
1244
1480
|
file_id?: string | undefined;
|
|
1245
1481
|
};
|
|
1482
|
+
cache_control?: {
|
|
1483
|
+
type: "ephemeral";
|
|
1484
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1485
|
+
} | undefined;
|
|
1246
1486
|
})[];
|
|
1247
1487
|
name?: string | undefined;
|
|
1248
1488
|
}>, z.ZodObject<{
|
|
@@ -1252,22 +1492,27 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1252
1492
|
type: z.ZodLiteral<"text">;
|
|
1253
1493
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1254
1494
|
type: z.ZodLiteral<"ephemeral">;
|
|
1495
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1255
1496
|
}, "strip", z.ZodTypeAny, {
|
|
1256
1497
|
type: "ephemeral";
|
|
1498
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1257
1499
|
}, {
|
|
1258
1500
|
type: "ephemeral";
|
|
1501
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1259
1502
|
}>>;
|
|
1260
1503
|
}, "strip", z.ZodTypeAny, {
|
|
1261
1504
|
type: "text";
|
|
1262
1505
|
text: string;
|
|
1263
1506
|
cache_control?: {
|
|
1264
1507
|
type: "ephemeral";
|
|
1508
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1265
1509
|
} | undefined;
|
|
1266
1510
|
}, {
|
|
1267
1511
|
type: "text";
|
|
1268
1512
|
text?: string | undefined;
|
|
1269
1513
|
cache_control?: {
|
|
1270
1514
|
type: "ephemeral";
|
|
1515
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1271
1516
|
} | undefined;
|
|
1272
1517
|
}>, "many">, z.ZodNull]>>;
|
|
1273
1518
|
function_call: z.ZodOptional<z.ZodObject<{
|
|
@@ -1332,6 +1577,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1332
1577
|
text: string;
|
|
1333
1578
|
cache_control?: {
|
|
1334
1579
|
type: "ephemeral";
|
|
1580
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1335
1581
|
} | undefined;
|
|
1336
1582
|
}[] | null | undefined;
|
|
1337
1583
|
tool_calls?: {
|
|
@@ -1359,6 +1605,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1359
1605
|
text?: string | undefined;
|
|
1360
1606
|
cache_control?: {
|
|
1361
1607
|
type: "ephemeral";
|
|
1608
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1362
1609
|
} | undefined;
|
|
1363
1610
|
}[] | null | undefined;
|
|
1364
1611
|
tool_calls?: {
|
|
@@ -1380,22 +1627,27 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1380
1627
|
type: z.ZodLiteral<"text">;
|
|
1381
1628
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1382
1629
|
type: z.ZodLiteral<"ephemeral">;
|
|
1630
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1383
1631
|
}, "strip", z.ZodTypeAny, {
|
|
1384
1632
|
type: "ephemeral";
|
|
1633
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1385
1634
|
}, {
|
|
1386
1635
|
type: "ephemeral";
|
|
1636
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1387
1637
|
}>>;
|
|
1388
1638
|
}, "strip", z.ZodTypeAny, {
|
|
1389
1639
|
type: "text";
|
|
1390
1640
|
text: string;
|
|
1391
1641
|
cache_control?: {
|
|
1392
1642
|
type: "ephemeral";
|
|
1643
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1393
1644
|
} | undefined;
|
|
1394
1645
|
}, {
|
|
1395
1646
|
type: "text";
|
|
1396
1647
|
text?: string | undefined;
|
|
1397
1648
|
cache_control?: {
|
|
1398
1649
|
type: "ephemeral";
|
|
1650
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1399
1651
|
} | undefined;
|
|
1400
1652
|
}>, "many">]>;
|
|
1401
1653
|
role: z.ZodLiteral<"tool">;
|
|
@@ -1407,6 +1659,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1407
1659
|
text: string;
|
|
1408
1660
|
cache_control?: {
|
|
1409
1661
|
type: "ephemeral";
|
|
1662
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1410
1663
|
} | undefined;
|
|
1411
1664
|
}[];
|
|
1412
1665
|
tool_call_id: string;
|
|
@@ -1417,6 +1670,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1417
1670
|
text?: string | undefined;
|
|
1418
1671
|
cache_control?: {
|
|
1419
1672
|
type: "ephemeral";
|
|
1673
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1420
1674
|
} | undefined;
|
|
1421
1675
|
}[];
|
|
1422
1676
|
tool_call_id?: string | undefined;
|
|
@@ -1438,22 +1692,27 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1438
1692
|
type: z.ZodLiteral<"text">;
|
|
1439
1693
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1440
1694
|
type: z.ZodLiteral<"ephemeral">;
|
|
1695
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1441
1696
|
}, "strip", z.ZodTypeAny, {
|
|
1442
1697
|
type: "ephemeral";
|
|
1698
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1443
1699
|
}, {
|
|
1444
1700
|
type: "ephemeral";
|
|
1701
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1445
1702
|
}>>;
|
|
1446
1703
|
}, "strip", z.ZodTypeAny, {
|
|
1447
1704
|
type: "text";
|
|
1448
1705
|
text: string;
|
|
1449
1706
|
cache_control?: {
|
|
1450
1707
|
type: "ephemeral";
|
|
1708
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1451
1709
|
} | undefined;
|
|
1452
1710
|
}, {
|
|
1453
1711
|
type: "text";
|
|
1454
1712
|
text?: string | undefined;
|
|
1455
1713
|
cache_control?: {
|
|
1456
1714
|
type: "ephemeral";
|
|
1715
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1457
1716
|
} | undefined;
|
|
1458
1717
|
}>, "many">]>;
|
|
1459
1718
|
role: z.ZodLiteral<"developer">;
|
|
@@ -1465,6 +1724,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1465
1724
|
text: string;
|
|
1466
1725
|
cache_control?: {
|
|
1467
1726
|
type: "ephemeral";
|
|
1727
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1468
1728
|
} | undefined;
|
|
1469
1729
|
}[];
|
|
1470
1730
|
name?: string | undefined;
|
|
@@ -1475,6 +1735,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1475
1735
|
text?: string | undefined;
|
|
1476
1736
|
cache_control?: {
|
|
1477
1737
|
type: "ephemeral";
|
|
1738
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1478
1739
|
} | undefined;
|
|
1479
1740
|
}[];
|
|
1480
1741
|
name?: string | undefined;
|
|
@@ -1498,6 +1759,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1498
1759
|
text: string;
|
|
1499
1760
|
cache_control?: {
|
|
1500
1761
|
type: "ephemeral";
|
|
1762
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1501
1763
|
} | undefined;
|
|
1502
1764
|
}[];
|
|
1503
1765
|
name?: string | undefined;
|
|
@@ -1508,6 +1770,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1508
1770
|
text: string;
|
|
1509
1771
|
cache_control?: {
|
|
1510
1772
|
type: "ephemeral";
|
|
1773
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1511
1774
|
} | undefined;
|
|
1512
1775
|
} | {
|
|
1513
1776
|
type: "image_url";
|
|
@@ -1515,6 +1778,10 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1515
1778
|
url: string;
|
|
1516
1779
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1517
1780
|
};
|
|
1781
|
+
cache_control?: {
|
|
1782
|
+
type: "ephemeral";
|
|
1783
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1784
|
+
} | undefined;
|
|
1518
1785
|
} | {
|
|
1519
1786
|
type: "file";
|
|
1520
1787
|
file: {
|
|
@@ -1522,6 +1789,10 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1522
1789
|
file_data?: string | undefined;
|
|
1523
1790
|
file_id?: string | undefined;
|
|
1524
1791
|
};
|
|
1792
|
+
cache_control?: {
|
|
1793
|
+
type: "ephemeral";
|
|
1794
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1795
|
+
} | undefined;
|
|
1525
1796
|
})[];
|
|
1526
1797
|
name?: string | undefined;
|
|
1527
1798
|
} | {
|
|
@@ -1536,6 +1807,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1536
1807
|
text: string;
|
|
1537
1808
|
cache_control?: {
|
|
1538
1809
|
type: "ephemeral";
|
|
1810
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1539
1811
|
} | undefined;
|
|
1540
1812
|
}[] | null | undefined;
|
|
1541
1813
|
tool_calls?: {
|
|
@@ -1558,6 +1830,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1558
1830
|
text: string;
|
|
1559
1831
|
cache_control?: {
|
|
1560
1832
|
type: "ephemeral";
|
|
1833
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1561
1834
|
} | undefined;
|
|
1562
1835
|
}[];
|
|
1563
1836
|
tool_call_id: string;
|
|
@@ -1572,6 +1845,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1572
1845
|
text: string;
|
|
1573
1846
|
cache_control?: {
|
|
1574
1847
|
type: "ephemeral";
|
|
1848
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1575
1849
|
} | undefined;
|
|
1576
1850
|
}[];
|
|
1577
1851
|
name?: string | undefined;
|
|
@@ -1589,6 +1863,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1589
1863
|
text?: string | undefined;
|
|
1590
1864
|
cache_control?: {
|
|
1591
1865
|
type: "ephemeral";
|
|
1866
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1592
1867
|
} | undefined;
|
|
1593
1868
|
}[];
|
|
1594
1869
|
name?: string | undefined;
|
|
@@ -1599,6 +1874,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1599
1874
|
text?: string | undefined;
|
|
1600
1875
|
cache_control?: {
|
|
1601
1876
|
type: "ephemeral";
|
|
1877
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1602
1878
|
} | undefined;
|
|
1603
1879
|
} | {
|
|
1604
1880
|
type: "image_url";
|
|
@@ -1606,6 +1882,10 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1606
1882
|
url: string;
|
|
1607
1883
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1608
1884
|
};
|
|
1885
|
+
cache_control?: {
|
|
1886
|
+
type: "ephemeral";
|
|
1887
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1888
|
+
} | undefined;
|
|
1609
1889
|
} | {
|
|
1610
1890
|
type: "file";
|
|
1611
1891
|
file: {
|
|
@@ -1613,6 +1893,10 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1613
1893
|
file_data?: string | undefined;
|
|
1614
1894
|
file_id?: string | undefined;
|
|
1615
1895
|
};
|
|
1896
|
+
cache_control?: {
|
|
1897
|
+
type: "ephemeral";
|
|
1898
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1899
|
+
} | undefined;
|
|
1616
1900
|
})[];
|
|
1617
1901
|
name?: string | undefined;
|
|
1618
1902
|
} | {
|
|
@@ -1627,6 +1911,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1627
1911
|
text?: string | undefined;
|
|
1628
1912
|
cache_control?: {
|
|
1629
1913
|
type: "ephemeral";
|
|
1914
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1630
1915
|
} | undefined;
|
|
1631
1916
|
}[] | null | undefined;
|
|
1632
1917
|
tool_calls?: {
|
|
@@ -1649,6 +1934,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1649
1934
|
text?: string | undefined;
|
|
1650
1935
|
cache_control?: {
|
|
1651
1936
|
type: "ephemeral";
|
|
1937
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1652
1938
|
} | undefined;
|
|
1653
1939
|
}[];
|
|
1654
1940
|
tool_call_id?: string | undefined;
|
|
@@ -1663,6 +1949,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1663
1949
|
text?: string | undefined;
|
|
1664
1950
|
cache_control?: {
|
|
1665
1951
|
type: "ephemeral";
|
|
1952
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1666
1953
|
} | undefined;
|
|
1667
1954
|
}[];
|
|
1668
1955
|
name?: string | undefined;
|
|
@@ -1691,22 +1978,27 @@ declare const PromptData: z.ZodObject<{
|
|
|
1691
1978
|
type: z.ZodLiteral<"text">;
|
|
1692
1979
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1693
1980
|
type: z.ZodLiteral<"ephemeral">;
|
|
1981
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1694
1982
|
}, "strip", z.ZodTypeAny, {
|
|
1695
1983
|
type: "ephemeral";
|
|
1984
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1696
1985
|
}, {
|
|
1697
1986
|
type: "ephemeral";
|
|
1987
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1698
1988
|
}>>;
|
|
1699
1989
|
}, "strip", z.ZodTypeAny, {
|
|
1700
1990
|
type: "text";
|
|
1701
1991
|
text: string;
|
|
1702
1992
|
cache_control?: {
|
|
1703
1993
|
type: "ephemeral";
|
|
1994
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1704
1995
|
} | undefined;
|
|
1705
1996
|
}, {
|
|
1706
1997
|
type: "text";
|
|
1707
1998
|
text?: string | undefined;
|
|
1708
1999
|
cache_control?: {
|
|
1709
2000
|
type: "ephemeral";
|
|
2001
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1710
2002
|
} | undefined;
|
|
1711
2003
|
}>, "many">]>;
|
|
1712
2004
|
role: z.ZodLiteral<"system">;
|
|
@@ -1718,6 +2010,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
1718
2010
|
text: string;
|
|
1719
2011
|
cache_control?: {
|
|
1720
2012
|
type: "ephemeral";
|
|
2013
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1721
2014
|
} | undefined;
|
|
1722
2015
|
}[];
|
|
1723
2016
|
name?: string | undefined;
|
|
@@ -1728,6 +2021,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
1728
2021
|
text?: string | undefined;
|
|
1729
2022
|
cache_control?: {
|
|
1730
2023
|
type: "ephemeral";
|
|
2024
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1731
2025
|
} | undefined;
|
|
1732
2026
|
}[];
|
|
1733
2027
|
name?: string | undefined;
|
|
@@ -1737,22 +2031,27 @@ declare const PromptData: z.ZodObject<{
|
|
|
1737
2031
|
type: z.ZodLiteral<"text">;
|
|
1738
2032
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1739
2033
|
type: z.ZodLiteral<"ephemeral">;
|
|
2034
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1740
2035
|
}, "strip", z.ZodTypeAny, {
|
|
1741
2036
|
type: "ephemeral";
|
|
2037
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1742
2038
|
}, {
|
|
1743
2039
|
type: "ephemeral";
|
|
2040
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1744
2041
|
}>>;
|
|
1745
2042
|
}, "strip", z.ZodTypeAny, {
|
|
1746
2043
|
type: "text";
|
|
1747
2044
|
text: string;
|
|
1748
2045
|
cache_control?: {
|
|
1749
2046
|
type: "ephemeral";
|
|
2047
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1750
2048
|
} | undefined;
|
|
1751
2049
|
}, {
|
|
1752
2050
|
type: "text";
|
|
1753
2051
|
text?: string | undefined;
|
|
1754
2052
|
cache_control?: {
|
|
1755
2053
|
type: "ephemeral";
|
|
2054
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1756
2055
|
} | undefined;
|
|
1757
2056
|
}>, z.ZodObject<{
|
|
1758
2057
|
image_url: z.ZodObject<{
|
|
@@ -1766,18 +2065,36 @@ declare const PromptData: z.ZodObject<{
|
|
|
1766
2065
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1767
2066
|
}>;
|
|
1768
2067
|
type: z.ZodLiteral<"image_url">;
|
|
2068
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2069
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
2070
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
2071
|
+
}, "strip", z.ZodTypeAny, {
|
|
2072
|
+
type: "ephemeral";
|
|
2073
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2074
|
+
}, {
|
|
2075
|
+
type: "ephemeral";
|
|
2076
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2077
|
+
}>>;
|
|
1769
2078
|
}, "strip", z.ZodTypeAny, {
|
|
1770
2079
|
type: "image_url";
|
|
1771
2080
|
image_url: {
|
|
1772
2081
|
url: string;
|
|
1773
2082
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1774
2083
|
};
|
|
2084
|
+
cache_control?: {
|
|
2085
|
+
type: "ephemeral";
|
|
2086
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2087
|
+
} | undefined;
|
|
1775
2088
|
}, {
|
|
1776
2089
|
type: "image_url";
|
|
1777
2090
|
image_url: {
|
|
1778
2091
|
url: string;
|
|
1779
2092
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1780
2093
|
};
|
|
2094
|
+
cache_control?: {
|
|
2095
|
+
type: "ephemeral";
|
|
2096
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2097
|
+
} | undefined;
|
|
1781
2098
|
}>, z.ZodObject<{
|
|
1782
2099
|
file: z.ZodObject<{
|
|
1783
2100
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -1793,6 +2110,16 @@ declare const PromptData: z.ZodObject<{
|
|
|
1793
2110
|
file_id?: string | undefined;
|
|
1794
2111
|
}>;
|
|
1795
2112
|
type: z.ZodLiteral<"file">;
|
|
2113
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2114
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
2115
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
2116
|
+
}, "strip", z.ZodTypeAny, {
|
|
2117
|
+
type: "ephemeral";
|
|
2118
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2119
|
+
}, {
|
|
2120
|
+
type: "ephemeral";
|
|
2121
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2122
|
+
}>>;
|
|
1796
2123
|
}, "strip", z.ZodTypeAny, {
|
|
1797
2124
|
type: "file";
|
|
1798
2125
|
file: {
|
|
@@ -1800,6 +2127,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
1800
2127
|
file_data?: string | undefined;
|
|
1801
2128
|
file_id?: string | undefined;
|
|
1802
2129
|
};
|
|
2130
|
+
cache_control?: {
|
|
2131
|
+
type: "ephemeral";
|
|
2132
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2133
|
+
} | undefined;
|
|
1803
2134
|
}, {
|
|
1804
2135
|
type: "file";
|
|
1805
2136
|
file: {
|
|
@@ -1807,6 +2138,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
1807
2138
|
file_data?: string | undefined;
|
|
1808
2139
|
file_id?: string | undefined;
|
|
1809
2140
|
};
|
|
2141
|
+
cache_control?: {
|
|
2142
|
+
type: "ephemeral";
|
|
2143
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2144
|
+
} | undefined;
|
|
1810
2145
|
}>]>, "many">]>;
|
|
1811
2146
|
role: z.ZodLiteral<"user">;
|
|
1812
2147
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1817,6 +2152,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
1817
2152
|
text: string;
|
|
1818
2153
|
cache_control?: {
|
|
1819
2154
|
type: "ephemeral";
|
|
2155
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1820
2156
|
} | undefined;
|
|
1821
2157
|
} | {
|
|
1822
2158
|
type: "image_url";
|
|
@@ -1824,6 +2160,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
1824
2160
|
url: string;
|
|
1825
2161
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1826
2162
|
};
|
|
2163
|
+
cache_control?: {
|
|
2164
|
+
type: "ephemeral";
|
|
2165
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2166
|
+
} | undefined;
|
|
1827
2167
|
} | {
|
|
1828
2168
|
type: "file";
|
|
1829
2169
|
file: {
|
|
@@ -1831,6 +2171,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
1831
2171
|
file_data?: string | undefined;
|
|
1832
2172
|
file_id?: string | undefined;
|
|
1833
2173
|
};
|
|
2174
|
+
cache_control?: {
|
|
2175
|
+
type: "ephemeral";
|
|
2176
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2177
|
+
} | undefined;
|
|
1834
2178
|
})[];
|
|
1835
2179
|
name?: string | undefined;
|
|
1836
2180
|
}, {
|
|
@@ -1840,6 +2184,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
1840
2184
|
text?: string | undefined;
|
|
1841
2185
|
cache_control?: {
|
|
1842
2186
|
type: "ephemeral";
|
|
2187
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1843
2188
|
} | undefined;
|
|
1844
2189
|
} | {
|
|
1845
2190
|
type: "image_url";
|
|
@@ -1847,6 +2192,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
1847
2192
|
url: string;
|
|
1848
2193
|
detail?: "auto" | "low" | "high" | undefined;
|
|
1849
2194
|
};
|
|
2195
|
+
cache_control?: {
|
|
2196
|
+
type: "ephemeral";
|
|
2197
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2198
|
+
} | undefined;
|
|
1850
2199
|
} | {
|
|
1851
2200
|
type: "file";
|
|
1852
2201
|
file: {
|
|
@@ -1854,6 +2203,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
1854
2203
|
file_data?: string | undefined;
|
|
1855
2204
|
file_id?: string | undefined;
|
|
1856
2205
|
};
|
|
2206
|
+
cache_control?: {
|
|
2207
|
+
type: "ephemeral";
|
|
2208
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2209
|
+
} | undefined;
|
|
1857
2210
|
})[];
|
|
1858
2211
|
name?: string | undefined;
|
|
1859
2212
|
}>, z.ZodObject<{
|
|
@@ -1863,22 +2216,27 @@ declare const PromptData: z.ZodObject<{
|
|
|
1863
2216
|
type: z.ZodLiteral<"text">;
|
|
1864
2217
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1865
2218
|
type: z.ZodLiteral<"ephemeral">;
|
|
2219
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1866
2220
|
}, "strip", z.ZodTypeAny, {
|
|
1867
2221
|
type: "ephemeral";
|
|
2222
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1868
2223
|
}, {
|
|
1869
2224
|
type: "ephemeral";
|
|
2225
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1870
2226
|
}>>;
|
|
1871
2227
|
}, "strip", z.ZodTypeAny, {
|
|
1872
2228
|
type: "text";
|
|
1873
2229
|
text: string;
|
|
1874
2230
|
cache_control?: {
|
|
1875
2231
|
type: "ephemeral";
|
|
2232
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1876
2233
|
} | undefined;
|
|
1877
2234
|
}, {
|
|
1878
2235
|
type: "text";
|
|
1879
2236
|
text?: string | undefined;
|
|
1880
2237
|
cache_control?: {
|
|
1881
2238
|
type: "ephemeral";
|
|
2239
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1882
2240
|
} | undefined;
|
|
1883
2241
|
}>, "many">, z.ZodNull]>>;
|
|
1884
2242
|
function_call: z.ZodOptional<z.ZodObject<{
|
|
@@ -1943,6 +2301,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
1943
2301
|
text: string;
|
|
1944
2302
|
cache_control?: {
|
|
1945
2303
|
type: "ephemeral";
|
|
2304
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1946
2305
|
} | undefined;
|
|
1947
2306
|
}[] | null | undefined;
|
|
1948
2307
|
tool_calls?: {
|
|
@@ -1970,6 +2329,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
1970
2329
|
text?: string | undefined;
|
|
1971
2330
|
cache_control?: {
|
|
1972
2331
|
type: "ephemeral";
|
|
2332
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1973
2333
|
} | undefined;
|
|
1974
2334
|
}[] | null | undefined;
|
|
1975
2335
|
tool_calls?: {
|
|
@@ -1991,22 +2351,27 @@ declare const PromptData: z.ZodObject<{
|
|
|
1991
2351
|
type: z.ZodLiteral<"text">;
|
|
1992
2352
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1993
2353
|
type: z.ZodLiteral<"ephemeral">;
|
|
2354
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1994
2355
|
}, "strip", z.ZodTypeAny, {
|
|
1995
2356
|
type: "ephemeral";
|
|
2357
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1996
2358
|
}, {
|
|
1997
2359
|
type: "ephemeral";
|
|
2360
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1998
2361
|
}>>;
|
|
1999
2362
|
}, "strip", z.ZodTypeAny, {
|
|
2000
2363
|
type: "text";
|
|
2001
2364
|
text: string;
|
|
2002
2365
|
cache_control?: {
|
|
2003
2366
|
type: "ephemeral";
|
|
2367
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2004
2368
|
} | undefined;
|
|
2005
2369
|
}, {
|
|
2006
2370
|
type: "text";
|
|
2007
2371
|
text?: string | undefined;
|
|
2008
2372
|
cache_control?: {
|
|
2009
2373
|
type: "ephemeral";
|
|
2374
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2010
2375
|
} | undefined;
|
|
2011
2376
|
}>, "many">]>;
|
|
2012
2377
|
role: z.ZodLiteral<"tool">;
|
|
@@ -2018,6 +2383,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2018
2383
|
text: string;
|
|
2019
2384
|
cache_control?: {
|
|
2020
2385
|
type: "ephemeral";
|
|
2386
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2021
2387
|
} | undefined;
|
|
2022
2388
|
}[];
|
|
2023
2389
|
tool_call_id: string;
|
|
@@ -2028,6 +2394,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2028
2394
|
text?: string | undefined;
|
|
2029
2395
|
cache_control?: {
|
|
2030
2396
|
type: "ephemeral";
|
|
2397
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2031
2398
|
} | undefined;
|
|
2032
2399
|
}[];
|
|
2033
2400
|
tool_call_id?: string | undefined;
|
|
@@ -2049,22 +2416,27 @@ declare const PromptData: z.ZodObject<{
|
|
|
2049
2416
|
type: z.ZodLiteral<"text">;
|
|
2050
2417
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2051
2418
|
type: z.ZodLiteral<"ephemeral">;
|
|
2419
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
2052
2420
|
}, "strip", z.ZodTypeAny, {
|
|
2053
2421
|
type: "ephemeral";
|
|
2422
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2054
2423
|
}, {
|
|
2055
2424
|
type: "ephemeral";
|
|
2425
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2056
2426
|
}>>;
|
|
2057
2427
|
}, "strip", z.ZodTypeAny, {
|
|
2058
2428
|
type: "text";
|
|
2059
2429
|
text: string;
|
|
2060
2430
|
cache_control?: {
|
|
2061
2431
|
type: "ephemeral";
|
|
2432
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2062
2433
|
} | undefined;
|
|
2063
2434
|
}, {
|
|
2064
2435
|
type: "text";
|
|
2065
2436
|
text?: string | undefined;
|
|
2066
2437
|
cache_control?: {
|
|
2067
2438
|
type: "ephemeral";
|
|
2439
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2068
2440
|
} | undefined;
|
|
2069
2441
|
}>, "many">]>;
|
|
2070
2442
|
role: z.ZodLiteral<"developer">;
|
|
@@ -2076,6 +2448,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2076
2448
|
text: string;
|
|
2077
2449
|
cache_control?: {
|
|
2078
2450
|
type: "ephemeral";
|
|
2451
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2079
2452
|
} | undefined;
|
|
2080
2453
|
}[];
|
|
2081
2454
|
name?: string | undefined;
|
|
@@ -2086,6 +2459,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2086
2459
|
text?: string | undefined;
|
|
2087
2460
|
cache_control?: {
|
|
2088
2461
|
type: "ephemeral";
|
|
2462
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2089
2463
|
} | undefined;
|
|
2090
2464
|
}[];
|
|
2091
2465
|
name?: string | undefined;
|
|
@@ -2109,6 +2483,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2109
2483
|
text: string;
|
|
2110
2484
|
cache_control?: {
|
|
2111
2485
|
type: "ephemeral";
|
|
2486
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2112
2487
|
} | undefined;
|
|
2113
2488
|
}[];
|
|
2114
2489
|
name?: string | undefined;
|
|
@@ -2119,6 +2494,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2119
2494
|
text: string;
|
|
2120
2495
|
cache_control?: {
|
|
2121
2496
|
type: "ephemeral";
|
|
2497
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2122
2498
|
} | undefined;
|
|
2123
2499
|
} | {
|
|
2124
2500
|
type: "image_url";
|
|
@@ -2126,6 +2502,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
2126
2502
|
url: string;
|
|
2127
2503
|
detail?: "auto" | "low" | "high" | undefined;
|
|
2128
2504
|
};
|
|
2505
|
+
cache_control?: {
|
|
2506
|
+
type: "ephemeral";
|
|
2507
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2508
|
+
} | undefined;
|
|
2129
2509
|
} | {
|
|
2130
2510
|
type: "file";
|
|
2131
2511
|
file: {
|
|
@@ -2133,6 +2513,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
2133
2513
|
file_data?: string | undefined;
|
|
2134
2514
|
file_id?: string | undefined;
|
|
2135
2515
|
};
|
|
2516
|
+
cache_control?: {
|
|
2517
|
+
type: "ephemeral";
|
|
2518
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2519
|
+
} | undefined;
|
|
2136
2520
|
})[];
|
|
2137
2521
|
name?: string | undefined;
|
|
2138
2522
|
} | {
|
|
@@ -2147,6 +2531,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2147
2531
|
text: string;
|
|
2148
2532
|
cache_control?: {
|
|
2149
2533
|
type: "ephemeral";
|
|
2534
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2150
2535
|
} | undefined;
|
|
2151
2536
|
}[] | null | undefined;
|
|
2152
2537
|
tool_calls?: {
|
|
@@ -2169,6 +2554,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2169
2554
|
text: string;
|
|
2170
2555
|
cache_control?: {
|
|
2171
2556
|
type: "ephemeral";
|
|
2557
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2172
2558
|
} | undefined;
|
|
2173
2559
|
}[];
|
|
2174
2560
|
tool_call_id: string;
|
|
@@ -2183,6 +2569,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2183
2569
|
text: string;
|
|
2184
2570
|
cache_control?: {
|
|
2185
2571
|
type: "ephemeral";
|
|
2572
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2186
2573
|
} | undefined;
|
|
2187
2574
|
}[];
|
|
2188
2575
|
name?: string | undefined;
|
|
@@ -2200,6 +2587,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2200
2587
|
text?: string | undefined;
|
|
2201
2588
|
cache_control?: {
|
|
2202
2589
|
type: "ephemeral";
|
|
2590
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2203
2591
|
} | undefined;
|
|
2204
2592
|
}[];
|
|
2205
2593
|
name?: string | undefined;
|
|
@@ -2210,6 +2598,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2210
2598
|
text?: string | undefined;
|
|
2211
2599
|
cache_control?: {
|
|
2212
2600
|
type: "ephemeral";
|
|
2601
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2213
2602
|
} | undefined;
|
|
2214
2603
|
} | {
|
|
2215
2604
|
type: "image_url";
|
|
@@ -2217,6 +2606,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
2217
2606
|
url: string;
|
|
2218
2607
|
detail?: "auto" | "low" | "high" | undefined;
|
|
2219
2608
|
};
|
|
2609
|
+
cache_control?: {
|
|
2610
|
+
type: "ephemeral";
|
|
2611
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2612
|
+
} | undefined;
|
|
2220
2613
|
} | {
|
|
2221
2614
|
type: "file";
|
|
2222
2615
|
file: {
|
|
@@ -2224,6 +2617,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
2224
2617
|
file_data?: string | undefined;
|
|
2225
2618
|
file_id?: string | undefined;
|
|
2226
2619
|
};
|
|
2620
|
+
cache_control?: {
|
|
2621
|
+
type: "ephemeral";
|
|
2622
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2623
|
+
} | undefined;
|
|
2227
2624
|
})[];
|
|
2228
2625
|
name?: string | undefined;
|
|
2229
2626
|
} | {
|
|
@@ -2238,6 +2635,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2238
2635
|
text?: string | undefined;
|
|
2239
2636
|
cache_control?: {
|
|
2240
2637
|
type: "ephemeral";
|
|
2638
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2241
2639
|
} | undefined;
|
|
2242
2640
|
}[] | null | undefined;
|
|
2243
2641
|
tool_calls?: {
|
|
@@ -2260,6 +2658,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2260
2658
|
text?: string | undefined;
|
|
2261
2659
|
cache_control?: {
|
|
2262
2660
|
type: "ephemeral";
|
|
2661
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2263
2662
|
} | undefined;
|
|
2264
2663
|
}[];
|
|
2265
2664
|
tool_call_id?: string | undefined;
|
|
@@ -2274,6 +2673,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
2274
2673
|
text?: string | undefined;
|
|
2275
2674
|
cache_control?: {
|
|
2276
2675
|
type: "ephemeral";
|
|
2676
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2277
2677
|
} | undefined;
|
|
2278
2678
|
}[];
|
|
2279
2679
|
name?: string | undefined;
|
|
@@ -2891,18 +3291,21 @@ declare const PromptData: z.ZodObject<{
|
|
|
2891
3291
|
choice_scores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2892
3292
|
choice: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2893
3293
|
allow_no_match: z.ZodOptional<z.ZodBoolean>;
|
|
3294
|
+
allow_skip: z.ZodOptional<z.ZodBoolean>;
|
|
2894
3295
|
}, "strip", z.ZodTypeAny, {
|
|
2895
3296
|
type: "llm_classifier";
|
|
2896
3297
|
use_cot: boolean;
|
|
2897
3298
|
choice_scores?: Record<string, number> | undefined;
|
|
2898
3299
|
choice?: string[] | undefined;
|
|
2899
3300
|
allow_no_match?: boolean | undefined;
|
|
3301
|
+
allow_skip?: boolean | undefined;
|
|
2900
3302
|
}, {
|
|
2901
3303
|
type: "llm_classifier";
|
|
2902
3304
|
use_cot: boolean;
|
|
2903
3305
|
choice_scores?: Record<string, number> | undefined;
|
|
2904
3306
|
choice?: string[] | undefined;
|
|
2905
3307
|
allow_no_match?: boolean | undefined;
|
|
3308
|
+
allow_skip?: boolean | undefined;
|
|
2906
3309
|
}>, z.ZodNull]>>;
|
|
2907
3310
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2908
3311
|
type: z.ZodLiteral<"function">;
|
|
@@ -3105,6 +3508,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3105
3508
|
text: string;
|
|
3106
3509
|
cache_control?: {
|
|
3107
3510
|
type: "ephemeral";
|
|
3511
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3108
3512
|
} | undefined;
|
|
3109
3513
|
}[];
|
|
3110
3514
|
name?: string | undefined;
|
|
@@ -3115,6 +3519,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3115
3519
|
text: string;
|
|
3116
3520
|
cache_control?: {
|
|
3117
3521
|
type: "ephemeral";
|
|
3522
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3118
3523
|
} | undefined;
|
|
3119
3524
|
} | {
|
|
3120
3525
|
type: "image_url";
|
|
@@ -3122,6 +3527,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
3122
3527
|
url: string;
|
|
3123
3528
|
detail?: "auto" | "low" | "high" | undefined;
|
|
3124
3529
|
};
|
|
3530
|
+
cache_control?: {
|
|
3531
|
+
type: "ephemeral";
|
|
3532
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3533
|
+
} | undefined;
|
|
3125
3534
|
} | {
|
|
3126
3535
|
type: "file";
|
|
3127
3536
|
file: {
|
|
@@ -3129,6 +3538,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
3129
3538
|
file_data?: string | undefined;
|
|
3130
3539
|
file_id?: string | undefined;
|
|
3131
3540
|
};
|
|
3541
|
+
cache_control?: {
|
|
3542
|
+
type: "ephemeral";
|
|
3543
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3544
|
+
} | undefined;
|
|
3132
3545
|
})[];
|
|
3133
3546
|
name?: string | undefined;
|
|
3134
3547
|
} | {
|
|
@@ -3143,6 +3556,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3143
3556
|
text: string;
|
|
3144
3557
|
cache_control?: {
|
|
3145
3558
|
type: "ephemeral";
|
|
3559
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3146
3560
|
} | undefined;
|
|
3147
3561
|
}[] | null | undefined;
|
|
3148
3562
|
tool_calls?: {
|
|
@@ -3165,6 +3579,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3165
3579
|
text: string;
|
|
3166
3580
|
cache_control?: {
|
|
3167
3581
|
type: "ephemeral";
|
|
3582
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3168
3583
|
} | undefined;
|
|
3169
3584
|
}[];
|
|
3170
3585
|
tool_call_id: string;
|
|
@@ -3179,6 +3594,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3179
3594
|
text: string;
|
|
3180
3595
|
cache_control?: {
|
|
3181
3596
|
type: "ephemeral";
|
|
3597
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3182
3598
|
} | undefined;
|
|
3183
3599
|
}[];
|
|
3184
3600
|
name?: string | undefined;
|
|
@@ -3202,6 +3618,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3202
3618
|
choice_scores?: Record<string, number> | undefined;
|
|
3203
3619
|
choice?: string[] | undefined;
|
|
3204
3620
|
allow_no_match?: boolean | undefined;
|
|
3621
|
+
allow_skip?: boolean | undefined;
|
|
3205
3622
|
} | null | undefined;
|
|
3206
3623
|
tool_functions?: ({
|
|
3207
3624
|
type: "function";
|
|
@@ -3355,6 +3772,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3355
3772
|
text?: string | undefined;
|
|
3356
3773
|
cache_control?: {
|
|
3357
3774
|
type: "ephemeral";
|
|
3775
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3358
3776
|
} | undefined;
|
|
3359
3777
|
}[];
|
|
3360
3778
|
name?: string | undefined;
|
|
@@ -3365,6 +3783,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3365
3783
|
text?: string | undefined;
|
|
3366
3784
|
cache_control?: {
|
|
3367
3785
|
type: "ephemeral";
|
|
3786
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3368
3787
|
} | undefined;
|
|
3369
3788
|
} | {
|
|
3370
3789
|
type: "image_url";
|
|
@@ -3372,6 +3791,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
3372
3791
|
url: string;
|
|
3373
3792
|
detail?: "auto" | "low" | "high" | undefined;
|
|
3374
3793
|
};
|
|
3794
|
+
cache_control?: {
|
|
3795
|
+
type: "ephemeral";
|
|
3796
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3797
|
+
} | undefined;
|
|
3375
3798
|
} | {
|
|
3376
3799
|
type: "file";
|
|
3377
3800
|
file: {
|
|
@@ -3379,6 +3802,10 @@ declare const PromptData: z.ZodObject<{
|
|
|
3379
3802
|
file_data?: string | undefined;
|
|
3380
3803
|
file_id?: string | undefined;
|
|
3381
3804
|
};
|
|
3805
|
+
cache_control?: {
|
|
3806
|
+
type: "ephemeral";
|
|
3807
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3808
|
+
} | undefined;
|
|
3382
3809
|
})[];
|
|
3383
3810
|
name?: string | undefined;
|
|
3384
3811
|
} | {
|
|
@@ -3393,6 +3820,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3393
3820
|
text?: string | undefined;
|
|
3394
3821
|
cache_control?: {
|
|
3395
3822
|
type: "ephemeral";
|
|
3823
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3396
3824
|
} | undefined;
|
|
3397
3825
|
}[] | null | undefined;
|
|
3398
3826
|
tool_calls?: {
|
|
@@ -3415,6 +3843,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3415
3843
|
text?: string | undefined;
|
|
3416
3844
|
cache_control?: {
|
|
3417
3845
|
type: "ephemeral";
|
|
3846
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3418
3847
|
} | undefined;
|
|
3419
3848
|
}[];
|
|
3420
3849
|
tool_call_id?: string | undefined;
|
|
@@ -3429,6 +3858,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3429
3858
|
text?: string | undefined;
|
|
3430
3859
|
cache_control?: {
|
|
3431
3860
|
type: "ephemeral";
|
|
3861
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3432
3862
|
} | undefined;
|
|
3433
3863
|
}[];
|
|
3434
3864
|
name?: string | undefined;
|
|
@@ -3452,6 +3882,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
3452
3882
|
choice_scores?: Record<string, number> | undefined;
|
|
3453
3883
|
choice?: string[] | undefined;
|
|
3454
3884
|
allow_no_match?: boolean | undefined;
|
|
3885
|
+
allow_skip?: boolean | undefined;
|
|
3455
3886
|
} | null | undefined;
|
|
3456
3887
|
tool_functions?: ({
|
|
3457
3888
|
type: "function";
|
|
@@ -3526,22 +3957,27 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3526
3957
|
type: z.ZodLiteral<"text">;
|
|
3527
3958
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3528
3959
|
type: z.ZodLiteral<"ephemeral">;
|
|
3960
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
3529
3961
|
}, "strip", z.ZodTypeAny, {
|
|
3530
3962
|
type: "ephemeral";
|
|
3963
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3531
3964
|
}, {
|
|
3532
3965
|
type: "ephemeral";
|
|
3966
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3533
3967
|
}>>;
|
|
3534
3968
|
}, "strip", z.ZodTypeAny, {
|
|
3535
3969
|
type: "text";
|
|
3536
3970
|
text: string;
|
|
3537
3971
|
cache_control?: {
|
|
3538
3972
|
type: "ephemeral";
|
|
3973
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3539
3974
|
} | undefined;
|
|
3540
3975
|
}, {
|
|
3541
3976
|
type: "text";
|
|
3542
3977
|
text?: string | undefined;
|
|
3543
3978
|
cache_control?: {
|
|
3544
3979
|
type: "ephemeral";
|
|
3980
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3545
3981
|
} | undefined;
|
|
3546
3982
|
}>, "many">]>;
|
|
3547
3983
|
role: z.ZodLiteral<"system">;
|
|
@@ -3553,6 +3989,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3553
3989
|
text: string;
|
|
3554
3990
|
cache_control?: {
|
|
3555
3991
|
type: "ephemeral";
|
|
3992
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3556
3993
|
} | undefined;
|
|
3557
3994
|
}[];
|
|
3558
3995
|
name?: string | undefined;
|
|
@@ -3563,6 +4000,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3563
4000
|
text?: string | undefined;
|
|
3564
4001
|
cache_control?: {
|
|
3565
4002
|
type: "ephemeral";
|
|
4003
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3566
4004
|
} | undefined;
|
|
3567
4005
|
}[];
|
|
3568
4006
|
name?: string | undefined;
|
|
@@ -3572,22 +4010,27 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3572
4010
|
type: z.ZodLiteral<"text">;
|
|
3573
4011
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3574
4012
|
type: z.ZodLiteral<"ephemeral">;
|
|
4013
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
3575
4014
|
}, "strip", z.ZodTypeAny, {
|
|
3576
4015
|
type: "ephemeral";
|
|
4016
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3577
4017
|
}, {
|
|
3578
4018
|
type: "ephemeral";
|
|
4019
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3579
4020
|
}>>;
|
|
3580
4021
|
}, "strip", z.ZodTypeAny, {
|
|
3581
4022
|
type: "text";
|
|
3582
4023
|
text: string;
|
|
3583
4024
|
cache_control?: {
|
|
3584
4025
|
type: "ephemeral";
|
|
4026
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3585
4027
|
} | undefined;
|
|
3586
4028
|
}, {
|
|
3587
4029
|
type: "text";
|
|
3588
4030
|
text?: string | undefined;
|
|
3589
4031
|
cache_control?: {
|
|
3590
4032
|
type: "ephemeral";
|
|
4033
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3591
4034
|
} | undefined;
|
|
3592
4035
|
}>, z.ZodObject<{
|
|
3593
4036
|
image_url: z.ZodObject<{
|
|
@@ -3601,18 +4044,36 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3601
4044
|
detail?: "auto" | "low" | "high" | undefined;
|
|
3602
4045
|
}>;
|
|
3603
4046
|
type: z.ZodLiteral<"image_url">;
|
|
4047
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
4048
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
4049
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
4050
|
+
}, "strip", z.ZodTypeAny, {
|
|
4051
|
+
type: "ephemeral";
|
|
4052
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4053
|
+
}, {
|
|
4054
|
+
type: "ephemeral";
|
|
4055
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4056
|
+
}>>;
|
|
3604
4057
|
}, "strip", z.ZodTypeAny, {
|
|
3605
4058
|
type: "image_url";
|
|
3606
4059
|
image_url: {
|
|
3607
4060
|
url: string;
|
|
3608
4061
|
detail?: "auto" | "low" | "high" | undefined;
|
|
3609
4062
|
};
|
|
4063
|
+
cache_control?: {
|
|
4064
|
+
type: "ephemeral";
|
|
4065
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4066
|
+
} | undefined;
|
|
3610
4067
|
}, {
|
|
3611
4068
|
type: "image_url";
|
|
3612
4069
|
image_url: {
|
|
3613
4070
|
url: string;
|
|
3614
4071
|
detail?: "auto" | "low" | "high" | undefined;
|
|
3615
4072
|
};
|
|
4073
|
+
cache_control?: {
|
|
4074
|
+
type: "ephemeral";
|
|
4075
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4076
|
+
} | undefined;
|
|
3616
4077
|
}>, z.ZodObject<{
|
|
3617
4078
|
file: z.ZodObject<{
|
|
3618
4079
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -3628,6 +4089,16 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3628
4089
|
file_id?: string | undefined;
|
|
3629
4090
|
}>;
|
|
3630
4091
|
type: z.ZodLiteral<"file">;
|
|
4092
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
4093
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
4094
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
4095
|
+
}, "strip", z.ZodTypeAny, {
|
|
4096
|
+
type: "ephemeral";
|
|
4097
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4098
|
+
}, {
|
|
4099
|
+
type: "ephemeral";
|
|
4100
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4101
|
+
}>>;
|
|
3631
4102
|
}, "strip", z.ZodTypeAny, {
|
|
3632
4103
|
type: "file";
|
|
3633
4104
|
file: {
|
|
@@ -3635,6 +4106,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3635
4106
|
file_data?: string | undefined;
|
|
3636
4107
|
file_id?: string | undefined;
|
|
3637
4108
|
};
|
|
4109
|
+
cache_control?: {
|
|
4110
|
+
type: "ephemeral";
|
|
4111
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4112
|
+
} | undefined;
|
|
3638
4113
|
}, {
|
|
3639
4114
|
type: "file";
|
|
3640
4115
|
file: {
|
|
@@ -3642,6 +4117,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3642
4117
|
file_data?: string | undefined;
|
|
3643
4118
|
file_id?: string | undefined;
|
|
3644
4119
|
};
|
|
4120
|
+
cache_control?: {
|
|
4121
|
+
type: "ephemeral";
|
|
4122
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4123
|
+
} | undefined;
|
|
3645
4124
|
}>]>, "many">]>;
|
|
3646
4125
|
role: z.ZodLiteral<"user">;
|
|
3647
4126
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -3652,6 +4131,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3652
4131
|
text: string;
|
|
3653
4132
|
cache_control?: {
|
|
3654
4133
|
type: "ephemeral";
|
|
4134
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3655
4135
|
} | undefined;
|
|
3656
4136
|
} | {
|
|
3657
4137
|
type: "image_url";
|
|
@@ -3659,6 +4139,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3659
4139
|
url: string;
|
|
3660
4140
|
detail?: "auto" | "low" | "high" | undefined;
|
|
3661
4141
|
};
|
|
4142
|
+
cache_control?: {
|
|
4143
|
+
type: "ephemeral";
|
|
4144
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4145
|
+
} | undefined;
|
|
3662
4146
|
} | {
|
|
3663
4147
|
type: "file";
|
|
3664
4148
|
file: {
|
|
@@ -3666,6 +4150,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3666
4150
|
file_data?: string | undefined;
|
|
3667
4151
|
file_id?: string | undefined;
|
|
3668
4152
|
};
|
|
4153
|
+
cache_control?: {
|
|
4154
|
+
type: "ephemeral";
|
|
4155
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4156
|
+
} | undefined;
|
|
3669
4157
|
})[];
|
|
3670
4158
|
name?: string | undefined;
|
|
3671
4159
|
}, {
|
|
@@ -3675,6 +4163,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3675
4163
|
text?: string | undefined;
|
|
3676
4164
|
cache_control?: {
|
|
3677
4165
|
type: "ephemeral";
|
|
4166
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3678
4167
|
} | undefined;
|
|
3679
4168
|
} | {
|
|
3680
4169
|
type: "image_url";
|
|
@@ -3682,6 +4171,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3682
4171
|
url: string;
|
|
3683
4172
|
detail?: "auto" | "low" | "high" | undefined;
|
|
3684
4173
|
};
|
|
4174
|
+
cache_control?: {
|
|
4175
|
+
type: "ephemeral";
|
|
4176
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4177
|
+
} | undefined;
|
|
3685
4178
|
} | {
|
|
3686
4179
|
type: "file";
|
|
3687
4180
|
file: {
|
|
@@ -3689,6 +4182,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3689
4182
|
file_data?: string | undefined;
|
|
3690
4183
|
file_id?: string | undefined;
|
|
3691
4184
|
};
|
|
4185
|
+
cache_control?: {
|
|
4186
|
+
type: "ephemeral";
|
|
4187
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4188
|
+
} | undefined;
|
|
3692
4189
|
})[];
|
|
3693
4190
|
name?: string | undefined;
|
|
3694
4191
|
}>, z.ZodObject<{
|
|
@@ -3698,22 +4195,27 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3698
4195
|
type: z.ZodLiteral<"text">;
|
|
3699
4196
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3700
4197
|
type: z.ZodLiteral<"ephemeral">;
|
|
4198
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
3701
4199
|
}, "strip", z.ZodTypeAny, {
|
|
3702
4200
|
type: "ephemeral";
|
|
4201
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3703
4202
|
}, {
|
|
3704
4203
|
type: "ephemeral";
|
|
4204
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3705
4205
|
}>>;
|
|
3706
4206
|
}, "strip", z.ZodTypeAny, {
|
|
3707
4207
|
type: "text";
|
|
3708
4208
|
text: string;
|
|
3709
4209
|
cache_control?: {
|
|
3710
4210
|
type: "ephemeral";
|
|
4211
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3711
4212
|
} | undefined;
|
|
3712
4213
|
}, {
|
|
3713
4214
|
type: "text";
|
|
3714
4215
|
text?: string | undefined;
|
|
3715
4216
|
cache_control?: {
|
|
3716
4217
|
type: "ephemeral";
|
|
4218
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3717
4219
|
} | undefined;
|
|
3718
4220
|
}>, "many">, z.ZodNull]>>;
|
|
3719
4221
|
function_call: z.ZodOptional<z.ZodObject<{
|
|
@@ -3778,6 +4280,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3778
4280
|
text: string;
|
|
3779
4281
|
cache_control?: {
|
|
3780
4282
|
type: "ephemeral";
|
|
4283
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3781
4284
|
} | undefined;
|
|
3782
4285
|
}[] | null | undefined;
|
|
3783
4286
|
tool_calls?: {
|
|
@@ -3805,6 +4308,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3805
4308
|
text?: string | undefined;
|
|
3806
4309
|
cache_control?: {
|
|
3807
4310
|
type: "ephemeral";
|
|
4311
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3808
4312
|
} | undefined;
|
|
3809
4313
|
}[] | null | undefined;
|
|
3810
4314
|
tool_calls?: {
|
|
@@ -3826,22 +4330,27 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3826
4330
|
type: z.ZodLiteral<"text">;
|
|
3827
4331
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3828
4332
|
type: z.ZodLiteral<"ephemeral">;
|
|
4333
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
3829
4334
|
}, "strip", z.ZodTypeAny, {
|
|
3830
4335
|
type: "ephemeral";
|
|
4336
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3831
4337
|
}, {
|
|
3832
4338
|
type: "ephemeral";
|
|
4339
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3833
4340
|
}>>;
|
|
3834
4341
|
}, "strip", z.ZodTypeAny, {
|
|
3835
4342
|
type: "text";
|
|
3836
4343
|
text: string;
|
|
3837
4344
|
cache_control?: {
|
|
3838
4345
|
type: "ephemeral";
|
|
4346
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3839
4347
|
} | undefined;
|
|
3840
4348
|
}, {
|
|
3841
4349
|
type: "text";
|
|
3842
4350
|
text?: string | undefined;
|
|
3843
4351
|
cache_control?: {
|
|
3844
4352
|
type: "ephemeral";
|
|
4353
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3845
4354
|
} | undefined;
|
|
3846
4355
|
}>, "many">]>;
|
|
3847
4356
|
role: z.ZodLiteral<"tool">;
|
|
@@ -3853,6 +4362,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3853
4362
|
text: string;
|
|
3854
4363
|
cache_control?: {
|
|
3855
4364
|
type: "ephemeral";
|
|
4365
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3856
4366
|
} | undefined;
|
|
3857
4367
|
}[];
|
|
3858
4368
|
tool_call_id: string;
|
|
@@ -3863,6 +4373,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3863
4373
|
text?: string | undefined;
|
|
3864
4374
|
cache_control?: {
|
|
3865
4375
|
type: "ephemeral";
|
|
4376
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3866
4377
|
} | undefined;
|
|
3867
4378
|
}[];
|
|
3868
4379
|
tool_call_id?: string | undefined;
|
|
@@ -3884,22 +4395,27 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3884
4395
|
type: z.ZodLiteral<"text">;
|
|
3885
4396
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3886
4397
|
type: z.ZodLiteral<"ephemeral">;
|
|
4398
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
3887
4399
|
}, "strip", z.ZodTypeAny, {
|
|
3888
4400
|
type: "ephemeral";
|
|
4401
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3889
4402
|
}, {
|
|
3890
4403
|
type: "ephemeral";
|
|
4404
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3891
4405
|
}>>;
|
|
3892
4406
|
}, "strip", z.ZodTypeAny, {
|
|
3893
4407
|
type: "text";
|
|
3894
4408
|
text: string;
|
|
3895
4409
|
cache_control?: {
|
|
3896
4410
|
type: "ephemeral";
|
|
4411
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3897
4412
|
} | undefined;
|
|
3898
4413
|
}, {
|
|
3899
4414
|
type: "text";
|
|
3900
4415
|
text?: string | undefined;
|
|
3901
4416
|
cache_control?: {
|
|
3902
4417
|
type: "ephemeral";
|
|
4418
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3903
4419
|
} | undefined;
|
|
3904
4420
|
}>, "many">]>;
|
|
3905
4421
|
role: z.ZodLiteral<"developer">;
|
|
@@ -3911,6 +4427,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3911
4427
|
text: string;
|
|
3912
4428
|
cache_control?: {
|
|
3913
4429
|
type: "ephemeral";
|
|
4430
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3914
4431
|
} | undefined;
|
|
3915
4432
|
}[];
|
|
3916
4433
|
name?: string | undefined;
|
|
@@ -3921,6 +4438,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3921
4438
|
text?: string | undefined;
|
|
3922
4439
|
cache_control?: {
|
|
3923
4440
|
type: "ephemeral";
|
|
4441
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3924
4442
|
} | undefined;
|
|
3925
4443
|
}[];
|
|
3926
4444
|
name?: string | undefined;
|
|
@@ -3944,6 +4462,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3944
4462
|
text: string;
|
|
3945
4463
|
cache_control?: {
|
|
3946
4464
|
type: "ephemeral";
|
|
4465
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3947
4466
|
} | undefined;
|
|
3948
4467
|
}[];
|
|
3949
4468
|
name?: string | undefined;
|
|
@@ -3954,6 +4473,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3954
4473
|
text: string;
|
|
3955
4474
|
cache_control?: {
|
|
3956
4475
|
type: "ephemeral";
|
|
4476
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3957
4477
|
} | undefined;
|
|
3958
4478
|
} | {
|
|
3959
4479
|
type: "image_url";
|
|
@@ -3961,6 +4481,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3961
4481
|
url: string;
|
|
3962
4482
|
detail?: "auto" | "low" | "high" | undefined;
|
|
3963
4483
|
};
|
|
4484
|
+
cache_control?: {
|
|
4485
|
+
type: "ephemeral";
|
|
4486
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4487
|
+
} | undefined;
|
|
3964
4488
|
} | {
|
|
3965
4489
|
type: "file";
|
|
3966
4490
|
file: {
|
|
@@ -3968,6 +4492,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3968
4492
|
file_data?: string | undefined;
|
|
3969
4493
|
file_id?: string | undefined;
|
|
3970
4494
|
};
|
|
4495
|
+
cache_control?: {
|
|
4496
|
+
type: "ephemeral";
|
|
4497
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4498
|
+
} | undefined;
|
|
3971
4499
|
})[];
|
|
3972
4500
|
name?: string | undefined;
|
|
3973
4501
|
} | {
|
|
@@ -3982,6 +4510,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
3982
4510
|
text: string;
|
|
3983
4511
|
cache_control?: {
|
|
3984
4512
|
type: "ephemeral";
|
|
4513
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3985
4514
|
} | undefined;
|
|
3986
4515
|
}[] | null | undefined;
|
|
3987
4516
|
tool_calls?: {
|
|
@@ -4004,6 +4533,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4004
4533
|
text: string;
|
|
4005
4534
|
cache_control?: {
|
|
4006
4535
|
type: "ephemeral";
|
|
4536
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4007
4537
|
} | undefined;
|
|
4008
4538
|
}[];
|
|
4009
4539
|
tool_call_id: string;
|
|
@@ -4018,6 +4548,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4018
4548
|
text: string;
|
|
4019
4549
|
cache_control?: {
|
|
4020
4550
|
type: "ephemeral";
|
|
4551
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4021
4552
|
} | undefined;
|
|
4022
4553
|
}[];
|
|
4023
4554
|
name?: string | undefined;
|
|
@@ -4035,6 +4566,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4035
4566
|
text?: string | undefined;
|
|
4036
4567
|
cache_control?: {
|
|
4037
4568
|
type: "ephemeral";
|
|
4569
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4038
4570
|
} | undefined;
|
|
4039
4571
|
}[];
|
|
4040
4572
|
name?: string | undefined;
|
|
@@ -4045,6 +4577,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4045
4577
|
text?: string | undefined;
|
|
4046
4578
|
cache_control?: {
|
|
4047
4579
|
type: "ephemeral";
|
|
4580
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4048
4581
|
} | undefined;
|
|
4049
4582
|
} | {
|
|
4050
4583
|
type: "image_url";
|
|
@@ -4052,6 +4585,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4052
4585
|
url: string;
|
|
4053
4586
|
detail?: "auto" | "low" | "high" | undefined;
|
|
4054
4587
|
};
|
|
4588
|
+
cache_control?: {
|
|
4589
|
+
type: "ephemeral";
|
|
4590
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4591
|
+
} | undefined;
|
|
4055
4592
|
} | {
|
|
4056
4593
|
type: "file";
|
|
4057
4594
|
file: {
|
|
@@ -4059,6 +4596,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4059
4596
|
file_data?: string | undefined;
|
|
4060
4597
|
file_id?: string | undefined;
|
|
4061
4598
|
};
|
|
4599
|
+
cache_control?: {
|
|
4600
|
+
type: "ephemeral";
|
|
4601
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4602
|
+
} | undefined;
|
|
4062
4603
|
})[];
|
|
4063
4604
|
name?: string | undefined;
|
|
4064
4605
|
} | {
|
|
@@ -4073,6 +4614,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4073
4614
|
text?: string | undefined;
|
|
4074
4615
|
cache_control?: {
|
|
4075
4616
|
type: "ephemeral";
|
|
4617
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4076
4618
|
} | undefined;
|
|
4077
4619
|
}[] | null | undefined;
|
|
4078
4620
|
tool_calls?: {
|
|
@@ -4095,6 +4637,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4095
4637
|
text?: string | undefined;
|
|
4096
4638
|
cache_control?: {
|
|
4097
4639
|
type: "ephemeral";
|
|
4640
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4098
4641
|
} | undefined;
|
|
4099
4642
|
}[];
|
|
4100
4643
|
tool_call_id?: string | undefined;
|
|
@@ -4109,6 +4652,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4109
4652
|
text?: string | undefined;
|
|
4110
4653
|
cache_control?: {
|
|
4111
4654
|
type: "ephemeral";
|
|
4655
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4112
4656
|
} | undefined;
|
|
4113
4657
|
}[];
|
|
4114
4658
|
name?: string | undefined;
|
|
@@ -4726,18 +5270,21 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4726
5270
|
choice_scores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
4727
5271
|
choice: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4728
5272
|
allow_no_match: z.ZodOptional<z.ZodBoolean>;
|
|
5273
|
+
allow_skip: z.ZodOptional<z.ZodBoolean>;
|
|
4729
5274
|
}, "strip", z.ZodTypeAny, {
|
|
4730
5275
|
type: "llm_classifier";
|
|
4731
5276
|
use_cot: boolean;
|
|
4732
5277
|
choice_scores?: Record<string, number> | undefined;
|
|
4733
5278
|
choice?: string[] | undefined;
|
|
4734
5279
|
allow_no_match?: boolean | undefined;
|
|
5280
|
+
allow_skip?: boolean | undefined;
|
|
4735
5281
|
}, {
|
|
4736
5282
|
type: "llm_classifier";
|
|
4737
5283
|
use_cot: boolean;
|
|
4738
5284
|
choice_scores?: Record<string, number> | undefined;
|
|
4739
5285
|
choice?: string[] | undefined;
|
|
4740
5286
|
allow_no_match?: boolean | undefined;
|
|
5287
|
+
allow_skip?: boolean | undefined;
|
|
4741
5288
|
}>, z.ZodNull]>>;
|
|
4742
5289
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
4743
5290
|
type: z.ZodLiteral<"function">;
|
|
@@ -4940,6 +5487,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4940
5487
|
text: string;
|
|
4941
5488
|
cache_control?: {
|
|
4942
5489
|
type: "ephemeral";
|
|
5490
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4943
5491
|
} | undefined;
|
|
4944
5492
|
}[];
|
|
4945
5493
|
name?: string | undefined;
|
|
@@ -4950,6 +5498,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4950
5498
|
text: string;
|
|
4951
5499
|
cache_control?: {
|
|
4952
5500
|
type: "ephemeral";
|
|
5501
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4953
5502
|
} | undefined;
|
|
4954
5503
|
} | {
|
|
4955
5504
|
type: "image_url";
|
|
@@ -4957,6 +5506,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4957
5506
|
url: string;
|
|
4958
5507
|
detail?: "auto" | "low" | "high" | undefined;
|
|
4959
5508
|
};
|
|
5509
|
+
cache_control?: {
|
|
5510
|
+
type: "ephemeral";
|
|
5511
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5512
|
+
} | undefined;
|
|
4960
5513
|
} | {
|
|
4961
5514
|
type: "file";
|
|
4962
5515
|
file: {
|
|
@@ -4964,6 +5517,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4964
5517
|
file_data?: string | undefined;
|
|
4965
5518
|
file_id?: string | undefined;
|
|
4966
5519
|
};
|
|
5520
|
+
cache_control?: {
|
|
5521
|
+
type: "ephemeral";
|
|
5522
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5523
|
+
} | undefined;
|
|
4967
5524
|
})[];
|
|
4968
5525
|
name?: string | undefined;
|
|
4969
5526
|
} | {
|
|
@@ -4978,6 +5535,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
4978
5535
|
text: string;
|
|
4979
5536
|
cache_control?: {
|
|
4980
5537
|
type: "ephemeral";
|
|
5538
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4981
5539
|
} | undefined;
|
|
4982
5540
|
}[] | null | undefined;
|
|
4983
5541
|
tool_calls?: {
|
|
@@ -5000,6 +5558,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5000
5558
|
text: string;
|
|
5001
5559
|
cache_control?: {
|
|
5002
5560
|
type: "ephemeral";
|
|
5561
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5003
5562
|
} | undefined;
|
|
5004
5563
|
}[];
|
|
5005
5564
|
tool_call_id: string;
|
|
@@ -5014,6 +5573,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5014
5573
|
text: string;
|
|
5015
5574
|
cache_control?: {
|
|
5016
5575
|
type: "ephemeral";
|
|
5576
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5017
5577
|
} | undefined;
|
|
5018
5578
|
}[];
|
|
5019
5579
|
name?: string | undefined;
|
|
@@ -5037,6 +5597,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5037
5597
|
choice_scores?: Record<string, number> | undefined;
|
|
5038
5598
|
choice?: string[] | undefined;
|
|
5039
5599
|
allow_no_match?: boolean | undefined;
|
|
5600
|
+
allow_skip?: boolean | undefined;
|
|
5040
5601
|
} | null | undefined;
|
|
5041
5602
|
tool_functions?: ({
|
|
5042
5603
|
type: "function";
|
|
@@ -5190,6 +5751,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5190
5751
|
text?: string | undefined;
|
|
5191
5752
|
cache_control?: {
|
|
5192
5753
|
type: "ephemeral";
|
|
5754
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5193
5755
|
} | undefined;
|
|
5194
5756
|
}[];
|
|
5195
5757
|
name?: string | undefined;
|
|
@@ -5200,6 +5762,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5200
5762
|
text?: string | undefined;
|
|
5201
5763
|
cache_control?: {
|
|
5202
5764
|
type: "ephemeral";
|
|
5765
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5203
5766
|
} | undefined;
|
|
5204
5767
|
} | {
|
|
5205
5768
|
type: "image_url";
|
|
@@ -5207,6 +5770,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5207
5770
|
url: string;
|
|
5208
5771
|
detail?: "auto" | "low" | "high" | undefined;
|
|
5209
5772
|
};
|
|
5773
|
+
cache_control?: {
|
|
5774
|
+
type: "ephemeral";
|
|
5775
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5776
|
+
} | undefined;
|
|
5210
5777
|
} | {
|
|
5211
5778
|
type: "file";
|
|
5212
5779
|
file: {
|
|
@@ -5214,6 +5781,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5214
5781
|
file_data?: string | undefined;
|
|
5215
5782
|
file_id?: string | undefined;
|
|
5216
5783
|
};
|
|
5784
|
+
cache_control?: {
|
|
5785
|
+
type: "ephemeral";
|
|
5786
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5787
|
+
} | undefined;
|
|
5217
5788
|
})[];
|
|
5218
5789
|
name?: string | undefined;
|
|
5219
5790
|
} | {
|
|
@@ -5228,6 +5799,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5228
5799
|
text?: string | undefined;
|
|
5229
5800
|
cache_control?: {
|
|
5230
5801
|
type: "ephemeral";
|
|
5802
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5231
5803
|
} | undefined;
|
|
5232
5804
|
}[] | null | undefined;
|
|
5233
5805
|
tool_calls?: {
|
|
@@ -5250,6 +5822,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5250
5822
|
text?: string | undefined;
|
|
5251
5823
|
cache_control?: {
|
|
5252
5824
|
type: "ephemeral";
|
|
5825
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5253
5826
|
} | undefined;
|
|
5254
5827
|
}[];
|
|
5255
5828
|
tool_call_id?: string | undefined;
|
|
@@ -5264,6 +5837,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5264
5837
|
text?: string | undefined;
|
|
5265
5838
|
cache_control?: {
|
|
5266
5839
|
type: "ephemeral";
|
|
5840
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5267
5841
|
} | undefined;
|
|
5268
5842
|
}[];
|
|
5269
5843
|
name?: string | undefined;
|
|
@@ -5287,6 +5861,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5287
5861
|
choice_scores?: Record<string, number> | undefined;
|
|
5288
5862
|
choice?: string[] | undefined;
|
|
5289
5863
|
allow_no_match?: boolean | undefined;
|
|
5864
|
+
allow_skip?: boolean | undefined;
|
|
5290
5865
|
} | null | undefined;
|
|
5291
5866
|
tool_functions?: ({
|
|
5292
5867
|
type: "function";
|
|
@@ -5315,15 +5890,15 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5315
5890
|
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>, z.ZodNull]>>;
|
|
5316
5891
|
}, "strip", z.ZodTypeAny, {
|
|
5317
5892
|
id: string;
|
|
5318
|
-
org_id: string;
|
|
5319
|
-
name: string;
|
|
5320
5893
|
project_id: string;
|
|
5321
|
-
|
|
5894
|
+
name: string;
|
|
5322
5895
|
slug: string;
|
|
5896
|
+
org_id: string;
|
|
5897
|
+
_xact_id: string;
|
|
5323
5898
|
log_id: "p";
|
|
5324
5899
|
created?: string | null | undefined;
|
|
5325
|
-
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
5326
5900
|
description?: string | null | undefined;
|
|
5901
|
+
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
5327
5902
|
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
|
|
5328
5903
|
tags?: string[] | null | undefined;
|
|
5329
5904
|
prompt_data?: {
|
|
@@ -5457,6 +6032,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5457
6032
|
text: string;
|
|
5458
6033
|
cache_control?: {
|
|
5459
6034
|
type: "ephemeral";
|
|
6035
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5460
6036
|
} | undefined;
|
|
5461
6037
|
}[];
|
|
5462
6038
|
name?: string | undefined;
|
|
@@ -5467,6 +6043,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5467
6043
|
text: string;
|
|
5468
6044
|
cache_control?: {
|
|
5469
6045
|
type: "ephemeral";
|
|
6046
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5470
6047
|
} | undefined;
|
|
5471
6048
|
} | {
|
|
5472
6049
|
type: "image_url";
|
|
@@ -5474,6 +6051,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5474
6051
|
url: string;
|
|
5475
6052
|
detail?: "auto" | "low" | "high" | undefined;
|
|
5476
6053
|
};
|
|
6054
|
+
cache_control?: {
|
|
6055
|
+
type: "ephemeral";
|
|
6056
|
+
ttl?: "5m" | "1h" | undefined;
|
|
6057
|
+
} | undefined;
|
|
5477
6058
|
} | {
|
|
5478
6059
|
type: "file";
|
|
5479
6060
|
file: {
|
|
@@ -5481,6 +6062,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5481
6062
|
file_data?: string | undefined;
|
|
5482
6063
|
file_id?: string | undefined;
|
|
5483
6064
|
};
|
|
6065
|
+
cache_control?: {
|
|
6066
|
+
type: "ephemeral";
|
|
6067
|
+
ttl?: "5m" | "1h" | undefined;
|
|
6068
|
+
} | undefined;
|
|
5484
6069
|
})[];
|
|
5485
6070
|
name?: string | undefined;
|
|
5486
6071
|
} | {
|
|
@@ -5495,6 +6080,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5495
6080
|
text: string;
|
|
5496
6081
|
cache_control?: {
|
|
5497
6082
|
type: "ephemeral";
|
|
6083
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5498
6084
|
} | undefined;
|
|
5499
6085
|
}[] | null | undefined;
|
|
5500
6086
|
tool_calls?: {
|
|
@@ -5517,6 +6103,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5517
6103
|
text: string;
|
|
5518
6104
|
cache_control?: {
|
|
5519
6105
|
type: "ephemeral";
|
|
6106
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5520
6107
|
} | undefined;
|
|
5521
6108
|
}[];
|
|
5522
6109
|
tool_call_id: string;
|
|
@@ -5531,6 +6118,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5531
6118
|
text: string;
|
|
5532
6119
|
cache_control?: {
|
|
5533
6120
|
type: "ephemeral";
|
|
6121
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5534
6122
|
} | undefined;
|
|
5535
6123
|
}[];
|
|
5536
6124
|
name?: string | undefined;
|
|
@@ -5554,6 +6142,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5554
6142
|
choice_scores?: Record<string, number> | undefined;
|
|
5555
6143
|
choice?: string[] | undefined;
|
|
5556
6144
|
allow_no_match?: boolean | undefined;
|
|
6145
|
+
allow_skip?: boolean | undefined;
|
|
5557
6146
|
} | null | undefined;
|
|
5558
6147
|
tool_functions?: ({
|
|
5559
6148
|
type: "function";
|
|
@@ -5579,15 +6168,15 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5579
6168
|
} | null | undefined;
|
|
5580
6169
|
}, {
|
|
5581
6170
|
id: string;
|
|
5582
|
-
org_id: string;
|
|
5583
|
-
name: string;
|
|
5584
6171
|
project_id: string;
|
|
5585
|
-
|
|
6172
|
+
name: string;
|
|
5586
6173
|
slug: string;
|
|
6174
|
+
org_id: string;
|
|
6175
|
+
_xact_id: string;
|
|
5587
6176
|
log_id: "p";
|
|
5588
6177
|
created?: string | null | undefined;
|
|
5589
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
5590
6178
|
description?: string | null | undefined;
|
|
6179
|
+
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
5591
6180
|
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
|
|
5592
6181
|
tags?: string[] | null | undefined;
|
|
5593
6182
|
prompt_data?: {
|
|
@@ -5721,6 +6310,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5721
6310
|
text?: string | undefined;
|
|
5722
6311
|
cache_control?: {
|
|
5723
6312
|
type: "ephemeral";
|
|
6313
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5724
6314
|
} | undefined;
|
|
5725
6315
|
}[];
|
|
5726
6316
|
name?: string | undefined;
|
|
@@ -5731,6 +6321,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5731
6321
|
text?: string | undefined;
|
|
5732
6322
|
cache_control?: {
|
|
5733
6323
|
type: "ephemeral";
|
|
6324
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5734
6325
|
} | undefined;
|
|
5735
6326
|
} | {
|
|
5736
6327
|
type: "image_url";
|
|
@@ -5738,6 +6329,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5738
6329
|
url: string;
|
|
5739
6330
|
detail?: "auto" | "low" | "high" | undefined;
|
|
5740
6331
|
};
|
|
6332
|
+
cache_control?: {
|
|
6333
|
+
type: "ephemeral";
|
|
6334
|
+
ttl?: "5m" | "1h" | undefined;
|
|
6335
|
+
} | undefined;
|
|
5741
6336
|
} | {
|
|
5742
6337
|
type: "file";
|
|
5743
6338
|
file: {
|
|
@@ -5745,6 +6340,10 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5745
6340
|
file_data?: string | undefined;
|
|
5746
6341
|
file_id?: string | undefined;
|
|
5747
6342
|
};
|
|
6343
|
+
cache_control?: {
|
|
6344
|
+
type: "ephemeral";
|
|
6345
|
+
ttl?: "5m" | "1h" | undefined;
|
|
6346
|
+
} | undefined;
|
|
5748
6347
|
})[];
|
|
5749
6348
|
name?: string | undefined;
|
|
5750
6349
|
} | {
|
|
@@ -5759,6 +6358,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5759
6358
|
text?: string | undefined;
|
|
5760
6359
|
cache_control?: {
|
|
5761
6360
|
type: "ephemeral";
|
|
6361
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5762
6362
|
} | undefined;
|
|
5763
6363
|
}[] | null | undefined;
|
|
5764
6364
|
tool_calls?: {
|
|
@@ -5781,6 +6381,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5781
6381
|
text?: string | undefined;
|
|
5782
6382
|
cache_control?: {
|
|
5783
6383
|
type: "ephemeral";
|
|
6384
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5784
6385
|
} | undefined;
|
|
5785
6386
|
}[];
|
|
5786
6387
|
tool_call_id?: string | undefined;
|
|
@@ -5795,6 +6396,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5795
6396
|
text?: string | undefined;
|
|
5796
6397
|
cache_control?: {
|
|
5797
6398
|
type: "ephemeral";
|
|
6399
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5798
6400
|
} | undefined;
|
|
5799
6401
|
}[];
|
|
5800
6402
|
name?: string | undefined;
|
|
@@ -5818,6 +6420,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
5818
6420
|
choice_scores?: Record<string, number> | undefined;
|
|
5819
6421
|
choice?: string[] | undefined;
|
|
5820
6422
|
allow_no_match?: boolean | undefined;
|
|
6423
|
+
allow_skip?: boolean | undefined;
|
|
5821
6424
|
} | null | undefined;
|
|
5822
6425
|
tool_functions?: ({
|
|
5823
6426
|
type: "function";
|
|
@@ -6233,6 +6836,31 @@ declare abstract class IDGenerator {
|
|
|
6233
6836
|
abstract shareRootSpanId(): boolean;
|
|
6234
6837
|
}
|
|
6235
6838
|
|
|
6839
|
+
type TraceContextHeaderValue = string | number | readonly string[] | null | undefined;
|
|
6840
|
+
/**
|
|
6841
|
+
* Minimal structural interface for outbound HTTP header carriers.
|
|
6842
|
+
*
|
|
6843
|
+
* Supports plain objects, Web/Fetch-compatible `Headers`, Node/Fastify-style
|
|
6844
|
+
* response carriers, and mutable `HeadersInit` tuple arrays.
|
|
6845
|
+
*/
|
|
6846
|
+
type TraceContextCarrier = {
|
|
6847
|
+
[name: string]: TraceContextHeaderValue;
|
|
6848
|
+
} | {
|
|
6849
|
+
get(name: string): TraceContextHeaderValue;
|
|
6850
|
+
set(name: string, value: string): void;
|
|
6851
|
+
delete?(name: string): void;
|
|
6852
|
+
} | {
|
|
6853
|
+
getHeader(name: string): TraceContextHeaderValue;
|
|
6854
|
+
setHeader(name: string, value: string): void;
|
|
6855
|
+
removeHeader?(name: string): void;
|
|
6856
|
+
} | {
|
|
6857
|
+
get?(name: string): TraceContextHeaderValue;
|
|
6858
|
+
getHeader?(name: string): TraceContextHeaderValue;
|
|
6859
|
+
header(name: string, value: string): void;
|
|
6860
|
+
delete?(name: string): void;
|
|
6861
|
+
removeHeader?(name: string): void;
|
|
6862
|
+
} | [string, string][];
|
|
6863
|
+
|
|
6236
6864
|
declare const TRANSACTION_ID_FIELD = "_xact_id";
|
|
6237
6865
|
declare const IS_MERGE_FIELD = "_is_merge";
|
|
6238
6866
|
declare const MERGE_PATHS_FIELD = "_merge_paths";
|
|
@@ -6323,13 +6951,13 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
6323
6951
|
function_ids: z.ZodArray<z.ZodUnknown, "many">;
|
|
6324
6952
|
triggered_xact_id: z.ZodString;
|
|
6325
6953
|
}, "strip", z.ZodTypeAny, {
|
|
6954
|
+
kind: "complete_triggered_functions";
|
|
6326
6955
|
triggered_xact_id: string;
|
|
6327
6956
|
function_ids: unknown[];
|
|
6328
|
-
kind: "complete_triggered_functions";
|
|
6329
6957
|
}, {
|
|
6958
|
+
kind: "complete_triggered_functions";
|
|
6330
6959
|
triggered_xact_id: string;
|
|
6331
6960
|
function_ids: unknown[];
|
|
6332
|
-
kind: "complete_triggered_functions";
|
|
6333
6961
|
}>]>;
|
|
6334
6962
|
type AsyncScoringControlType = z.infer<typeof AsyncScoringControl>;
|
|
6335
6963
|
declare const ObjectReference: z.ZodObject<{
|
|
@@ -6406,6 +7034,7 @@ type ExperimentEvent = Partial<InputField> & Partial<OtherExperimentLogFields> &
|
|
|
6406
7034
|
span_parents: string[];
|
|
6407
7035
|
span_attributes: Record<string, unknown>;
|
|
6408
7036
|
context: Record<string, unknown>;
|
|
7037
|
+
is_root: boolean | null;
|
|
6409
7038
|
[AUDIT_SOURCE_FIELD]: Source;
|
|
6410
7039
|
[AUDIT_METADATA_FIELD]?: Record<string, unknown>;
|
|
6411
7040
|
}>;
|
|
@@ -6641,6 +7270,10 @@ declare class LRUCache<K, V> {
|
|
|
6641
7270
|
* @returns The cached value if found, undefined otherwise.
|
|
6642
7271
|
*/
|
|
6643
7272
|
get(key: K): V | undefined;
|
|
7273
|
+
/**
|
|
7274
|
+
* Checks whether a key exists and marks it as most recently used.
|
|
7275
|
+
*/
|
|
7276
|
+
has(key: K): boolean;
|
|
6644
7277
|
/**
|
|
6645
7278
|
* Stores a value in the cache.
|
|
6646
7279
|
* If the key already exists, the value is updated and marked as most recently used.
|
|
@@ -6650,6 +7283,23 @@ declare class LRUCache<K, V> {
|
|
|
6650
7283
|
* @param value - The value to store.
|
|
6651
7284
|
*/
|
|
6652
7285
|
set(key: K, value: V): void;
|
|
7286
|
+
/**
|
|
7287
|
+
* Removes an item from the cache.
|
|
7288
|
+
*/
|
|
7289
|
+
delete(key: K): boolean;
|
|
7290
|
+
/**
|
|
7291
|
+
* Iterates over cache entries from least to most recently used.
|
|
7292
|
+
*/
|
|
7293
|
+
entries(): IterableIterator<[K, V]>;
|
|
7294
|
+
/**
|
|
7295
|
+
* Iterates over cache keys from least to most recently used.
|
|
7296
|
+
*/
|
|
7297
|
+
keys(): IterableIterator<K>;
|
|
7298
|
+
/**
|
|
7299
|
+
* Iterates over cache values from least to most recently used.
|
|
7300
|
+
*/
|
|
7301
|
+
values(): IterableIterator<V>;
|
|
7302
|
+
[Symbol.iterator](): IterableIterator<[K, V]>;
|
|
6653
7303
|
/**
|
|
6654
7304
|
* Removes all items from the cache.
|
|
6655
7305
|
*/
|
|
@@ -6919,6 +7569,8 @@ declare class SpanCache {
|
|
|
6919
7569
|
dispose(): void;
|
|
6920
7570
|
}
|
|
6921
7571
|
|
|
7572
|
+
/// <reference lib="dom" />
|
|
7573
|
+
|
|
6922
7574
|
declare const RESET_CONTEXT_MANAGER_STATE: unique symbol;
|
|
6923
7575
|
declare const datasetRestorePreviewResultSchema: z.ZodObject<{
|
|
6924
7576
|
rows_to_restore: z.ZodNumber;
|
|
@@ -6969,32 +7621,32 @@ declare const parametersRowSchema: z.ZodObject<{
|
|
|
6969
7621
|
metadata: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodNull]>>;
|
|
6970
7622
|
}, "strip", z.ZodTypeAny, {
|
|
6971
7623
|
id: string;
|
|
7624
|
+
project_id: string;
|
|
6972
7625
|
name: string;
|
|
7626
|
+
slug: string;
|
|
6973
7627
|
function_type: "parameters";
|
|
6974
|
-
project_id: string;
|
|
6975
7628
|
_xact_id: string;
|
|
6976
|
-
slug: string;
|
|
6977
7629
|
function_data: {
|
|
6978
7630
|
type: "parameters";
|
|
6979
7631
|
__schema: Record<string, unknown>;
|
|
6980
7632
|
data?: Record<string, unknown> | undefined;
|
|
6981
7633
|
};
|
|
6982
|
-
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
6983
7634
|
description?: string | null | undefined;
|
|
7635
|
+
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
6984
7636
|
}, {
|
|
6985
7637
|
id: string;
|
|
7638
|
+
project_id: string;
|
|
6986
7639
|
name: string;
|
|
7640
|
+
slug: string;
|
|
6987
7641
|
function_type: "parameters";
|
|
6988
|
-
project_id: string;
|
|
6989
7642
|
_xact_id: string;
|
|
6990
|
-
slug: string;
|
|
6991
7643
|
function_data: {
|
|
6992
7644
|
type: "parameters";
|
|
6993
7645
|
__schema: Record<string, unknown>;
|
|
6994
7646
|
data?: Record<string, unknown> | undefined;
|
|
6995
7647
|
};
|
|
6996
|
-
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
6997
7648
|
description?: string | null | undefined;
|
|
7649
|
+
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
6998
7650
|
}>;
|
|
6999
7651
|
type ParametersRow = z.infer<typeof parametersRowSchema>;
|
|
7000
7652
|
|
|
@@ -7011,7 +7663,12 @@ type StartSpanArgs = {
|
|
|
7011
7663
|
type?: SpanType;
|
|
7012
7664
|
spanAttributes?: Record<any, any>;
|
|
7013
7665
|
startTime?: number;
|
|
7014
|
-
|
|
7666
|
+
/**
|
|
7667
|
+
* The parent to start this span under. May be an exported span slug string
|
|
7668
|
+
* (from `span.export()`) or an opaque W3C trace-context (from
|
|
7669
|
+
* {@link extractTraceContextFromHeaders}).
|
|
7670
|
+
*/
|
|
7671
|
+
parent?: string | PropagationContext;
|
|
7015
7672
|
event?: StartSpanEventArgs;
|
|
7016
7673
|
propagatedEvent?: StartSpanEventArgs;
|
|
7017
7674
|
spanId?: string;
|
|
@@ -7113,6 +7770,24 @@ interface Span extends Exportable {
|
|
|
7113
7770
|
* @returns Serialized representation of this span's identifiers.
|
|
7114
7771
|
*/
|
|
7115
7772
|
export(): Promise<string>;
|
|
7773
|
+
/**
|
|
7774
|
+
* Inject W3C trace-context headers (`traceparent` and `baggage`) for this span
|
|
7775
|
+
* into a carrier, for distributed tracing across service boundaries.
|
|
7776
|
+
*
|
|
7777
|
+
* Adds `traceparent` (trace identity) and, when this span's Braintrust parent
|
|
7778
|
+
* is known, a `baggage` entry `braintrust.parent=<parent>` (merged with any
|
|
7779
|
+
* pre-existing baggage). Propagation is best-effort and never throws; if the
|
|
7780
|
+
* span's ids are not W3C-shaped hex (e.g. legacy UUID mode), `traceparent` is
|
|
7781
|
+
* omitted.
|
|
7782
|
+
*
|
|
7783
|
+
* @param carrier Optional existing carrier (e.g. outbound HTTP headers) to
|
|
7784
|
+
* mutate and return. Supports plain objects, Web `Headers`, Node-style
|
|
7785
|
+
* `setHeader` carriers, framework `header` carriers, and mutable
|
|
7786
|
+
* `HeadersInit` tuple arrays. A new object is created if not provided.
|
|
7787
|
+
* @returns The carrier with propagation headers injected.
|
|
7788
|
+
*/
|
|
7789
|
+
inject(): Record<string, string>;
|
|
7790
|
+
inject<T extends TraceContextCarrier>(carrier: T): T;
|
|
7116
7791
|
/**
|
|
7117
7792
|
* Format a permalink to the Braintrust application for viewing this span.
|
|
7118
7793
|
*
|
|
@@ -7234,7 +7909,7 @@ declare class BraintrustState {
|
|
|
7234
7909
|
id: string;
|
|
7235
7910
|
currentExperiment: Experiment | undefined;
|
|
7236
7911
|
currentLogger: Logger<false> | undefined;
|
|
7237
|
-
currentParent: IsoAsyncLocalStorage<string>;
|
|
7912
|
+
currentParent: IsoAsyncLocalStorage<string | PropagationContext>;
|
|
7238
7913
|
currentSpan: IsoAsyncLocalStorage<Span>;
|
|
7239
7914
|
private _bgLogger;
|
|
7240
7915
|
private _overrideBgLogger;
|
|
@@ -7352,6 +8027,15 @@ type DatasetPipelineDeferredJSONAttachmentHook = (data: unknown, options?: {
|
|
|
7352
8027
|
declare global {
|
|
7353
8028
|
var __BT_DATASET_PIPELINE_DEFER_JSON_ATTACHMENT__: DatasetPipelineDeferredJSONAttachmentHook | undefined;
|
|
7354
8029
|
}
|
|
8030
|
+
/**
|
|
8031
|
+
* An opaque W3C trace-context, as returned by
|
|
8032
|
+
* {@link extractTraceContextFromHeaders}.
|
|
8033
|
+
*
|
|
8034
|
+
* Carries the relevant W3C headers (`traceparent`, `baggage`, `tracestate`).
|
|
8035
|
+
* Callers MUST treat it as opaque and pass it straight to
|
|
8036
|
+
* `startSpan({ parent })`.
|
|
8037
|
+
*/
|
|
8038
|
+
type PropagationContext = Record<string, string>;
|
|
7355
8039
|
interface ParentSpanIds {
|
|
7356
8040
|
spanId: string;
|
|
7357
8041
|
rootSpanId: string;
|
|
@@ -7443,6 +8127,12 @@ declare class Logger<IsAsyncFlush extends boolean> implements Exportable {
|
|
|
7443
8127
|
* Resolution order: state -> linkArgs -> env var
|
|
7444
8128
|
*/
|
|
7445
8129
|
_getLinkBaseUrl(): string | null;
|
|
8130
|
+
/**
|
|
8131
|
+
* Return this logger's Braintrust parent string (`project_id:<id>` or
|
|
8132
|
+
* `project_name:<name>`) for the `braintrust.parent` baggage entry, or
|
|
8133
|
+
* undefined when it cannot be determined synchronously.
|
|
8134
|
+
*/
|
|
8135
|
+
_getOtelParent(): string | undefined;
|
|
7446
8136
|
}
|
|
7447
8137
|
interface BackgroundLoggerOpts {
|
|
7448
8138
|
noExitFlush?: boolean;
|
|
@@ -7512,6 +8202,9 @@ type DatasetPinState = {
|
|
|
7512
8202
|
pinnedEnvironment?: string;
|
|
7513
8203
|
pinnedSnapshotName?: string;
|
|
7514
8204
|
};
|
|
8205
|
+
declare global {
|
|
8206
|
+
var __bt_eval_internal_btql: Record<string, unknown> | undefined;
|
|
8207
|
+
}
|
|
7515
8208
|
/**
|
|
7516
8209
|
* Options for logging in to Braintrust.
|
|
7517
8210
|
*/
|
|
@@ -7571,8 +8264,9 @@ declare class ObjectFetcher<RecordType> implements AsyncIterable<WithTransaction
|
|
|
7571
8264
|
private pinnedVersion;
|
|
7572
8265
|
private mutateRecord?;
|
|
7573
8266
|
private _internal_btql?;
|
|
8267
|
+
private _internalBrainstoreRealtime;
|
|
7574
8268
|
private _fetchedData;
|
|
7575
|
-
constructor(objectType: "dataset" | "experiment" | "project_logs" | "playground_logs", pinnedVersion: string | undefined, mutateRecord?: ((r: any) => WithTransactionId<RecordType>) | undefined, _internal_btql?: Record<string, unknown> | undefined);
|
|
8269
|
+
constructor(objectType: "dataset" | "experiment" | "project_logs" | "playground_logs", pinnedVersion: string | undefined, mutateRecord?: ((r: any) => WithTransactionId<RecordType>) | undefined, _internal_btql?: Record<string, unknown> | undefined, _internalBrainstoreRealtime?: boolean);
|
|
7576
8270
|
get id(): Promise<string>;
|
|
7577
8271
|
protected getState(): Promise<BraintrustState>;
|
|
7578
8272
|
protected getPinnedVersion(): string | undefined;
|
|
@@ -7708,6 +8402,12 @@ declare class Experiment extends ObjectFetcher<ExperimentEvent> implements Expor
|
|
|
7708
8402
|
* See {@link Span.startSpan} for more details.
|
|
7709
8403
|
*/
|
|
7710
8404
|
export(): Promise<string>;
|
|
8405
|
+
/**
|
|
8406
|
+
* Return this experiment's Braintrust parent string (`experiment_id:<id>`) for
|
|
8407
|
+
* the `braintrust.parent` baggage entry, or undefined when it cannot be
|
|
8408
|
+
* determined synchronously.
|
|
8409
|
+
*/
|
|
8410
|
+
_getOtelParent(): string | undefined;
|
|
7711
8411
|
/**
|
|
7712
8412
|
* Flush any pending rows to the server.
|
|
7713
8413
|
*/
|
|
@@ -8248,6 +8948,312 @@ declare function braintrustFlueInstrumentation(): FlueInstrumentation;
|
|
|
8248
8948
|
*/
|
|
8249
8949
|
declare const braintrustFlueObserver: BraintrustFlueObserver;
|
|
8250
8950
|
|
|
8951
|
+
/**
|
|
8952
|
+
* Vendored types for eve's authored hook APIs.
|
|
8953
|
+
*
|
|
8954
|
+
* Keep this surface intentionally narrow. These types are not exported to SDK
|
|
8955
|
+
* users and should only cover fields we read, correlate, or log.
|
|
8956
|
+
*/
|
|
8957
|
+
type EveJsonValue = null | boolean | number | string | EveJsonValue[] | {
|
|
8958
|
+
readonly [key: string]: EveJsonValue;
|
|
8959
|
+
};
|
|
8960
|
+
type EveJsonObject = {
|
|
8961
|
+
readonly [key: string]: EveJsonValue;
|
|
8962
|
+
};
|
|
8963
|
+
interface EveHookContext {
|
|
8964
|
+
readonly agent?: {
|
|
8965
|
+
readonly name?: string;
|
|
8966
|
+
readonly nodeId?: string;
|
|
8967
|
+
};
|
|
8968
|
+
readonly channel?: {
|
|
8969
|
+
readonly kind?: string;
|
|
8970
|
+
readonly continuationToken?: string;
|
|
8971
|
+
};
|
|
8972
|
+
readonly session?: {
|
|
8973
|
+
readonly id?: string;
|
|
8974
|
+
readonly parent?: {
|
|
8975
|
+
readonly callId?: string;
|
|
8976
|
+
readonly rootSessionId?: string;
|
|
8977
|
+
readonly sessionId?: string;
|
|
8978
|
+
readonly turn?: {
|
|
8979
|
+
readonly id?: string;
|
|
8980
|
+
readonly sequence?: number;
|
|
8981
|
+
};
|
|
8982
|
+
};
|
|
8983
|
+
};
|
|
8984
|
+
}
|
|
8985
|
+
type EveAssistantStepFinishReason = "content-filter" | "error" | "length" | "other" | "stop" | "tool-calls";
|
|
8986
|
+
interface EveStreamEventMeta {
|
|
8987
|
+
readonly at: string;
|
|
8988
|
+
}
|
|
8989
|
+
interface EveRuntimeToolCallActionRequest {
|
|
8990
|
+
readonly callId: string;
|
|
8991
|
+
readonly input: EveJsonObject;
|
|
8992
|
+
readonly kind: "tool-call";
|
|
8993
|
+
readonly toolName: string;
|
|
8994
|
+
}
|
|
8995
|
+
interface EveRuntimeToolResultActionResult {
|
|
8996
|
+
readonly callId: string;
|
|
8997
|
+
readonly isError?: boolean;
|
|
8998
|
+
readonly kind: "tool-result";
|
|
8999
|
+
readonly output: EveJsonValue;
|
|
9000
|
+
readonly toolName: string;
|
|
9001
|
+
}
|
|
9002
|
+
type EveRuntimeActionRequest = EveRuntimeToolCallActionRequest | {
|
|
9003
|
+
readonly callId: string;
|
|
9004
|
+
readonly input?: EveJsonObject;
|
|
9005
|
+
readonly kind: "load-skill" | "remote-agent-call";
|
|
9006
|
+
readonly name?: string;
|
|
9007
|
+
} | {
|
|
9008
|
+
readonly callId: string;
|
|
9009
|
+
readonly input: EveJsonObject;
|
|
9010
|
+
readonly kind: "subagent-call";
|
|
9011
|
+
readonly name?: string;
|
|
9012
|
+
readonly subagentName?: string;
|
|
9013
|
+
};
|
|
9014
|
+
type EveRuntimeActionResult = EveRuntimeToolResultActionResult | {
|
|
9015
|
+
readonly callId: string;
|
|
9016
|
+
readonly isError?: boolean;
|
|
9017
|
+
readonly kind: "load-skill-result";
|
|
9018
|
+
readonly output?: EveJsonValue;
|
|
9019
|
+
readonly name?: string;
|
|
9020
|
+
} | {
|
|
9021
|
+
readonly callId: string;
|
|
9022
|
+
readonly isError?: boolean;
|
|
9023
|
+
readonly kind: "subagent-result";
|
|
9024
|
+
readonly output?: EveJsonValue;
|
|
9025
|
+
readonly subagentName?: string;
|
|
9026
|
+
};
|
|
9027
|
+
type EveActionResultStatus = "completed" | "failed" | "rejected";
|
|
9028
|
+
interface EveActionResultError {
|
|
9029
|
+
readonly code: string;
|
|
9030
|
+
readonly message: string;
|
|
9031
|
+
}
|
|
9032
|
+
type EveHandleMessageStreamEvent = {
|
|
9033
|
+
readonly data: {
|
|
9034
|
+
readonly invocation?: unknown;
|
|
9035
|
+
readonly runtime?: {
|
|
9036
|
+
readonly agentId: string;
|
|
9037
|
+
readonly agentName?: string;
|
|
9038
|
+
readonly eveVersion: string;
|
|
9039
|
+
readonly modelId: string;
|
|
9040
|
+
};
|
|
9041
|
+
};
|
|
9042
|
+
readonly meta?: EveStreamEventMeta;
|
|
9043
|
+
readonly type: "session.started";
|
|
9044
|
+
} | {
|
|
9045
|
+
readonly data: {
|
|
9046
|
+
readonly sequence: number;
|
|
9047
|
+
readonly turnId: string;
|
|
9048
|
+
};
|
|
9049
|
+
readonly meta?: EveStreamEventMeta;
|
|
9050
|
+
readonly type: "turn.started";
|
|
9051
|
+
} | {
|
|
9052
|
+
readonly data: {
|
|
9053
|
+
readonly sequence: number;
|
|
9054
|
+
readonly turnId: string;
|
|
9055
|
+
};
|
|
9056
|
+
readonly meta?: EveStreamEventMeta;
|
|
9057
|
+
readonly type: "turn.completed";
|
|
9058
|
+
} | {
|
|
9059
|
+
readonly data: {
|
|
9060
|
+
readonly message: string;
|
|
9061
|
+
readonly sequence: number;
|
|
9062
|
+
readonly turnId: string;
|
|
9063
|
+
};
|
|
9064
|
+
readonly meta?: EveStreamEventMeta;
|
|
9065
|
+
readonly type: "message.received";
|
|
9066
|
+
} | {
|
|
9067
|
+
readonly data: {
|
|
9068
|
+
readonly finishReason: EveAssistantStepFinishReason;
|
|
9069
|
+
readonly message: string | null;
|
|
9070
|
+
readonly sequence: number;
|
|
9071
|
+
readonly stepIndex: number;
|
|
9072
|
+
readonly turnId: string;
|
|
9073
|
+
};
|
|
9074
|
+
readonly meta?: EveStreamEventMeta;
|
|
9075
|
+
readonly type: "message.completed";
|
|
9076
|
+
} | {
|
|
9077
|
+
readonly data: {
|
|
9078
|
+
readonly result: EveJsonValue;
|
|
9079
|
+
readonly sequence: number;
|
|
9080
|
+
readonly stepIndex: number;
|
|
9081
|
+
readonly turnId: string;
|
|
9082
|
+
};
|
|
9083
|
+
readonly meta?: EveStreamEventMeta;
|
|
9084
|
+
readonly type: "result.completed";
|
|
9085
|
+
} | {
|
|
9086
|
+
readonly data: {
|
|
9087
|
+
readonly sequence: number;
|
|
9088
|
+
readonly stepIndex: number;
|
|
9089
|
+
readonly turnId: string;
|
|
9090
|
+
};
|
|
9091
|
+
readonly meta?: EveStreamEventMeta;
|
|
9092
|
+
readonly type: "step.started";
|
|
9093
|
+
} | {
|
|
9094
|
+
readonly data: {
|
|
9095
|
+
readonly finishReason: EveAssistantStepFinishReason;
|
|
9096
|
+
readonly providerMetadata?: {
|
|
9097
|
+
readonly gateway?: {
|
|
9098
|
+
readonly generationId?: string;
|
|
9099
|
+
};
|
|
9100
|
+
};
|
|
9101
|
+
readonly sequence: number;
|
|
9102
|
+
readonly stepIndex: number;
|
|
9103
|
+
readonly turnId: string;
|
|
9104
|
+
readonly usage?: {
|
|
9105
|
+
readonly cacheReadTokens?: number;
|
|
9106
|
+
readonly cacheWriteTokens?: number;
|
|
9107
|
+
readonly costUsd?: number;
|
|
9108
|
+
readonly inputTokens?: number;
|
|
9109
|
+
readonly outputTokens?: number;
|
|
9110
|
+
};
|
|
9111
|
+
};
|
|
9112
|
+
readonly meta?: EveStreamEventMeta;
|
|
9113
|
+
readonly type: "step.completed";
|
|
9114
|
+
} | {
|
|
9115
|
+
readonly data: {
|
|
9116
|
+
readonly code: string;
|
|
9117
|
+
readonly details?: EveJsonObject;
|
|
9118
|
+
readonly message: string;
|
|
9119
|
+
readonly sequence: number;
|
|
9120
|
+
readonly stepIndex: number;
|
|
9121
|
+
readonly turnId: string;
|
|
9122
|
+
};
|
|
9123
|
+
readonly meta?: EveStreamEventMeta;
|
|
9124
|
+
readonly type: "step.failed";
|
|
9125
|
+
} | {
|
|
9126
|
+
readonly data: {
|
|
9127
|
+
readonly actions: readonly EveRuntimeActionRequest[];
|
|
9128
|
+
readonly sequence: number;
|
|
9129
|
+
readonly stepIndex: number;
|
|
9130
|
+
readonly turnId: string;
|
|
9131
|
+
};
|
|
9132
|
+
readonly meta?: EveStreamEventMeta;
|
|
9133
|
+
readonly type: "actions.requested";
|
|
9134
|
+
} | {
|
|
9135
|
+
readonly data: {
|
|
9136
|
+
readonly error?: EveActionResultError;
|
|
9137
|
+
readonly result: EveRuntimeActionResult;
|
|
9138
|
+
readonly sequence: number;
|
|
9139
|
+
readonly stepIndex: number;
|
|
9140
|
+
readonly status: EveActionResultStatus;
|
|
9141
|
+
readonly turnId: string;
|
|
9142
|
+
};
|
|
9143
|
+
readonly meta?: EveStreamEventMeta;
|
|
9144
|
+
readonly type: "action.result";
|
|
9145
|
+
} | {
|
|
9146
|
+
readonly data: {
|
|
9147
|
+
readonly callId: string;
|
|
9148
|
+
readonly childSessionId: string;
|
|
9149
|
+
readonly name: string;
|
|
9150
|
+
readonly remote?: {
|
|
9151
|
+
readonly url?: string;
|
|
9152
|
+
};
|
|
9153
|
+
readonly sequence: number;
|
|
9154
|
+
readonly toolName?: string;
|
|
9155
|
+
readonly turnId: string;
|
|
9156
|
+
};
|
|
9157
|
+
readonly meta?: EveStreamEventMeta;
|
|
9158
|
+
readonly type: "subagent.called";
|
|
9159
|
+
} | {
|
|
9160
|
+
readonly data: {
|
|
9161
|
+
readonly callId: string;
|
|
9162
|
+
readonly error?: EveActionResultError;
|
|
9163
|
+
readonly output?: EveJsonValue;
|
|
9164
|
+
readonly sequence: number;
|
|
9165
|
+
readonly status?: EveActionResultStatus;
|
|
9166
|
+
readonly subagentName: string;
|
|
9167
|
+
readonly turnId: string;
|
|
9168
|
+
};
|
|
9169
|
+
readonly meta?: EveStreamEventMeta;
|
|
9170
|
+
readonly type: "subagent.completed";
|
|
9171
|
+
} | {
|
|
9172
|
+
readonly data: {
|
|
9173
|
+
readonly code: string;
|
|
9174
|
+
readonly details?: EveJsonObject;
|
|
9175
|
+
readonly message: string;
|
|
9176
|
+
readonly sequence: number;
|
|
9177
|
+
readonly turnId: string;
|
|
9178
|
+
};
|
|
9179
|
+
readonly meta?: EveStreamEventMeta;
|
|
9180
|
+
readonly type: "turn.failed";
|
|
9181
|
+
} | {
|
|
9182
|
+
readonly data: {
|
|
9183
|
+
readonly code: string;
|
|
9184
|
+
readonly details?: EveJsonObject;
|
|
9185
|
+
readonly message: string;
|
|
9186
|
+
readonly sessionId: string;
|
|
9187
|
+
};
|
|
9188
|
+
readonly meta?: EveStreamEventMeta;
|
|
9189
|
+
readonly type: "session.failed";
|
|
9190
|
+
} | {
|
|
9191
|
+
readonly data: {
|
|
9192
|
+
readonly wait: "next-user-message";
|
|
9193
|
+
};
|
|
9194
|
+
readonly meta?: EveStreamEventMeta;
|
|
9195
|
+
readonly type: "session.waiting";
|
|
9196
|
+
} | {
|
|
9197
|
+
readonly meta?: EveStreamEventMeta;
|
|
9198
|
+
readonly type: "session.completed";
|
|
9199
|
+
};
|
|
9200
|
+
interface EveHookDefinition {
|
|
9201
|
+
readonly events?: {
|
|
9202
|
+
readonly "*"?: (event: EveHandleMessageStreamEvent, ctx: EveHookContext) => void | Promise<void>;
|
|
9203
|
+
readonly [eventType: string]: ((event: EveHandleMessageStreamEvent, ctx: EveHookContext) => void | Promise<void>) | undefined;
|
|
9204
|
+
};
|
|
9205
|
+
}
|
|
9206
|
+
interface EveInstrumentationSetupContext {
|
|
9207
|
+
readonly agentName: string;
|
|
9208
|
+
}
|
|
9209
|
+
interface EveInstrumentationModelInput {
|
|
9210
|
+
readonly instructions?: string | readonly EveJsonObject[];
|
|
9211
|
+
readonly messages: readonly EveJsonObject[];
|
|
9212
|
+
}
|
|
9213
|
+
interface EveInstrumentationStepStartedEventInput {
|
|
9214
|
+
readonly channel?: unknown;
|
|
9215
|
+
readonly modelInput: EveInstrumentationModelInput;
|
|
9216
|
+
readonly session: {
|
|
9217
|
+
readonly id?: string;
|
|
9218
|
+
};
|
|
9219
|
+
readonly step: {
|
|
9220
|
+
readonly index?: number;
|
|
9221
|
+
};
|
|
9222
|
+
readonly turn: {
|
|
9223
|
+
readonly id?: string;
|
|
9224
|
+
readonly sequence?: number;
|
|
9225
|
+
};
|
|
9226
|
+
}
|
|
9227
|
+
interface EveInstrumentationDefinition {
|
|
9228
|
+
readonly events?: {
|
|
9229
|
+
readonly "step.started"?: (input: EveInstrumentationStepStartedEventInput) => void | {
|
|
9230
|
+
readonly runtimeContext?: EveJsonObject;
|
|
9231
|
+
};
|
|
9232
|
+
readonly [eventType: string]: ((input: EveInstrumentationStepStartedEventInput) => void | {
|
|
9233
|
+
readonly runtimeContext?: EveJsonObject;
|
|
9234
|
+
}) | undefined;
|
|
9235
|
+
};
|
|
9236
|
+
readonly recordInputs?: boolean;
|
|
9237
|
+
readonly recordOutputs?: boolean;
|
|
9238
|
+
readonly setup?: (context: EveInstrumentationSetupContext) => void;
|
|
9239
|
+
}
|
|
9240
|
+
|
|
9241
|
+
type EveStateHandle<T> = {
|
|
9242
|
+
get(): T;
|
|
9243
|
+
update(fn: (current: T) => T): void;
|
|
9244
|
+
};
|
|
9245
|
+
type EveDefineState = <T>(name: string, initial: () => T) => EveStateHandle<T>;
|
|
9246
|
+
/** Manual hook instrumentation for eve runtime stream events. */
|
|
9247
|
+
declare function braintrustEveHook(options: {
|
|
9248
|
+
defineState: EveDefineState;
|
|
9249
|
+
metadata?: Record<string, unknown>;
|
|
9250
|
+
}): EveHookDefinition;
|
|
9251
|
+
/** Eve instrumentation helper for logger setup and durable LLM input capture. */
|
|
9252
|
+
declare function braintrustEveInstrumentation(options: {
|
|
9253
|
+
defineState: EveDefineState;
|
|
9254
|
+
setup?: EveInstrumentationDefinition["setup"];
|
|
9255
|
+
}): EveInstrumentationDefinition;
|
|
9256
|
+
|
|
8251
9257
|
/**
|
|
8252
9258
|
* Plugin registry and configuration for auto-instrumentation.
|
|
8253
9259
|
*
|
|
@@ -8284,4 +9290,4 @@ declare const braintrustFlueObserver: BraintrustFlueObserver;
|
|
|
8284
9290
|
*/
|
|
8285
9291
|
declare function configureInstrumentation(config: InstrumentationConfig): void;
|
|
8286
9292
|
|
|
8287
|
-
export { type AsyncEndEvent, type AsyncStartEvent, type BaseContext, BasePlugin, BraintrustPlugin, type BraintrustPluginConfig, type ChannelHandlers, type EndEvent, type ErrorEvent, type InstrumentationConfig, OpenAIAgentsTraceProcessor, type OpenAIAgentsTraceProcessorOptions, type StartEvent, braintrustFlueInstrumentation, braintrustFlueObserver, configureInstrumentation, createChannelName, isValidChannelName, parseChannelName };
|
|
9293
|
+
export { type AsyncEndEvent, type AsyncStartEvent, type BaseContext, BasePlugin, BraintrustPlugin, type BraintrustPluginConfig, type ChannelHandlers, type EndEvent, type ErrorEvent, type InstrumentationConfig, OpenAIAgentsTraceProcessor, type OpenAIAgentsTraceProcessorOptions, type StartEvent, braintrustEveHook, braintrustEveInstrumentation, braintrustFlueInstrumentation, braintrustFlueObserver, configureInstrumentation, createChannelName, isValidChannelName, parseChannelName };
|