braintrust 3.21.0 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +47 -0
  2. package/dev/dist/index.d.mts +1030 -1
  3. package/dev/dist/index.d.ts +1030 -1
  4. package/dev/dist/index.js +1429 -663
  5. package/dev/dist/index.mjs +811 -45
  6. package/dist/apply-auto-instrumentation.js +222 -186
  7. package/dist/apply-auto-instrumentation.mjs +37 -1
  8. package/dist/auto-instrumentations/bundler/esbuild.cjs +53 -1
  9. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  10. package/dist/auto-instrumentations/bundler/next.cjs +53 -1
  11. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  12. package/dist/auto-instrumentations/bundler/rollup.cjs +53 -1
  13. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  14. package/dist/auto-instrumentations/bundler/vite.cjs +53 -1
  15. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  16. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +53 -1
  17. package/dist/auto-instrumentations/bundler/webpack.cjs +53 -1
  18. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  19. package/dist/auto-instrumentations/{chunk-TKRPRPGD.mjs → chunk-EXY7QCJD.mjs} +5 -2
  20. package/dist/auto-instrumentations/{chunk-T6J4C7LX.mjs → chunk-KIMLYPRW.mjs} +1 -1
  21. package/dist/auto-instrumentations/{chunk-BRQX23KL.mjs → chunk-YXLNSAMJ.mjs} +51 -0
  22. package/dist/auto-instrumentations/hook.mjs +224 -31
  23. package/dist/auto-instrumentations/index.cjs +52 -0
  24. package/dist/auto-instrumentations/index.d.mts +3 -1
  25. package/dist/auto-instrumentations/index.d.ts +3 -1
  26. package/dist/auto-instrumentations/index.mjs +3 -1
  27. package/dist/browser.d.mts +3273 -93
  28. package/dist/browser.d.ts +3273 -93
  29. package/dist/browser.js +2495 -63
  30. package/dist/browser.mjs +2495 -63
  31. package/dist/{chunk-KMGUTPB7.mjs → chunk-36IPYKMG.mjs} +20 -1
  32. package/dist/{chunk-BFGIH2ZJ.js → chunk-CDIKAHDZ.js} +21 -2
  33. package/dist/{chunk-FY7DAKA5.js → chunk-FZWPFCVE.js} +1590 -832
  34. package/dist/{chunk-O2P765XK.mjs → chunk-IXL4PMY4.mjs} +802 -44
  35. package/dist/cli.js +816 -47
  36. package/dist/edge-light.d.mts +1 -1
  37. package/dist/edge-light.d.ts +1 -1
  38. package/dist/edge-light.js +2495 -63
  39. package/dist/edge-light.mjs +2495 -63
  40. package/dist/index.d.mts +3273 -93
  41. package/dist/index.d.ts +3273 -93
  42. package/dist/index.js +2078 -416
  43. package/dist/index.mjs +1664 -2
  44. package/dist/instrumentation/index.d.mts +912 -2
  45. package/dist/instrumentation/index.d.ts +912 -2
  46. package/dist/instrumentation/index.js +2202 -42
  47. package/dist/instrumentation/index.mjs +2200 -42
  48. package/dist/vitest-evals-reporter.js +16 -16
  49. package/dist/vitest-evals-reporter.mjs +2 -2
  50. package/dist/workerd.d.mts +1 -1
  51. package/dist/workerd.d.ts +1 -1
  52. package/dist/workerd.js +2495 -63
  53. package/dist/workerd.mjs +2495 -63
  54. package/package.json +5 -2
@@ -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;
@@ -3108,6 +3508,7 @@ declare const PromptData: z.ZodObject<{
3108
3508
  text: string;
3109
3509
  cache_control?: {
3110
3510
  type: "ephemeral";
3511
+ ttl?: "5m" | "1h" | undefined;
3111
3512
  } | undefined;
3112
3513
  }[];
3113
3514
  name?: string | undefined;
@@ -3118,6 +3519,7 @@ declare const PromptData: z.ZodObject<{
3118
3519
  text: string;
3119
3520
  cache_control?: {
3120
3521
  type: "ephemeral";
3522
+ ttl?: "5m" | "1h" | undefined;
3121
3523
  } | undefined;
3122
3524
  } | {
3123
3525
  type: "image_url";
@@ -3125,6 +3527,10 @@ declare const PromptData: z.ZodObject<{
3125
3527
  url: string;
3126
3528
  detail?: "auto" | "low" | "high" | undefined;
3127
3529
  };
3530
+ cache_control?: {
3531
+ type: "ephemeral";
3532
+ ttl?: "5m" | "1h" | undefined;
3533
+ } | undefined;
3128
3534
  } | {
3129
3535
  type: "file";
3130
3536
  file: {
@@ -3132,6 +3538,10 @@ declare const PromptData: z.ZodObject<{
3132
3538
  file_data?: string | undefined;
3133
3539
  file_id?: string | undefined;
3134
3540
  };
3541
+ cache_control?: {
3542
+ type: "ephemeral";
3543
+ ttl?: "5m" | "1h" | undefined;
3544
+ } | undefined;
3135
3545
  })[];
3136
3546
  name?: string | undefined;
3137
3547
  } | {
@@ -3146,6 +3556,7 @@ declare const PromptData: z.ZodObject<{
3146
3556
  text: string;
3147
3557
  cache_control?: {
3148
3558
  type: "ephemeral";
3559
+ ttl?: "5m" | "1h" | undefined;
3149
3560
  } | undefined;
3150
3561
  }[] | null | undefined;
3151
3562
  tool_calls?: {
@@ -3168,6 +3579,7 @@ declare const PromptData: z.ZodObject<{
3168
3579
  text: string;
3169
3580
  cache_control?: {
3170
3581
  type: "ephemeral";
3582
+ ttl?: "5m" | "1h" | undefined;
3171
3583
  } | undefined;
3172
3584
  }[];
3173
3585
  tool_call_id: string;
@@ -3182,6 +3594,7 @@ declare const PromptData: z.ZodObject<{
3182
3594
  text: string;
3183
3595
  cache_control?: {
3184
3596
  type: "ephemeral";
3597
+ ttl?: "5m" | "1h" | undefined;
3185
3598
  } | undefined;
3186
3599
  }[];
3187
3600
  name?: string | undefined;
@@ -3359,6 +3772,7 @@ declare const PromptData: z.ZodObject<{
3359
3772
  text?: string | undefined;
3360
3773
  cache_control?: {
3361
3774
  type: "ephemeral";
3775
+ ttl?: "5m" | "1h" | undefined;
3362
3776
  } | undefined;
3363
3777
  }[];
3364
3778
  name?: string | undefined;
@@ -3369,6 +3783,7 @@ declare const PromptData: z.ZodObject<{
3369
3783
  text?: string | undefined;
3370
3784
  cache_control?: {
3371
3785
  type: "ephemeral";
3786
+ ttl?: "5m" | "1h" | undefined;
3372
3787
  } | undefined;
3373
3788
  } | {
3374
3789
  type: "image_url";
@@ -3376,6 +3791,10 @@ declare const PromptData: z.ZodObject<{
3376
3791
  url: string;
3377
3792
  detail?: "auto" | "low" | "high" | undefined;
3378
3793
  };
3794
+ cache_control?: {
3795
+ type: "ephemeral";
3796
+ ttl?: "5m" | "1h" | undefined;
3797
+ } | undefined;
3379
3798
  } | {
3380
3799
  type: "file";
3381
3800
  file: {
@@ -3383,6 +3802,10 @@ declare const PromptData: z.ZodObject<{
3383
3802
  file_data?: string | undefined;
3384
3803
  file_id?: string | undefined;
3385
3804
  };
3805
+ cache_control?: {
3806
+ type: "ephemeral";
3807
+ ttl?: "5m" | "1h" | undefined;
3808
+ } | undefined;
3386
3809
  })[];
3387
3810
  name?: string | undefined;
3388
3811
  } | {
@@ -3397,6 +3820,7 @@ declare const PromptData: z.ZodObject<{
3397
3820
  text?: string | undefined;
3398
3821
  cache_control?: {
3399
3822
  type: "ephemeral";
3823
+ ttl?: "5m" | "1h" | undefined;
3400
3824
  } | undefined;
3401
3825
  }[] | null | undefined;
3402
3826
  tool_calls?: {
@@ -3419,6 +3843,7 @@ declare const PromptData: z.ZodObject<{
3419
3843
  text?: string | undefined;
3420
3844
  cache_control?: {
3421
3845
  type: "ephemeral";
3846
+ ttl?: "5m" | "1h" | undefined;
3422
3847
  } | undefined;
3423
3848
  }[];
3424
3849
  tool_call_id?: string | undefined;
@@ -3433,6 +3858,7 @@ declare const PromptData: z.ZodObject<{
3433
3858
  text?: string | undefined;
3434
3859
  cache_control?: {
3435
3860
  type: "ephemeral";
3861
+ ttl?: "5m" | "1h" | undefined;
3436
3862
  } | undefined;
3437
3863
  }[];
3438
3864
  name?: string | undefined;
@@ -3531,22 +3957,27 @@ declare const Prompt$1: z.ZodObject<{
3531
3957
  type: z.ZodLiteral<"text">;
3532
3958
  cache_control: z.ZodOptional<z.ZodObject<{
3533
3959
  type: z.ZodLiteral<"ephemeral">;
3960
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
3534
3961
  }, "strip", z.ZodTypeAny, {
3535
3962
  type: "ephemeral";
3963
+ ttl?: "5m" | "1h" | undefined;
3536
3964
  }, {
3537
3965
  type: "ephemeral";
3966
+ ttl?: "5m" | "1h" | undefined;
3538
3967
  }>>;
3539
3968
  }, "strip", z.ZodTypeAny, {
3540
3969
  type: "text";
3541
3970
  text: string;
3542
3971
  cache_control?: {
3543
3972
  type: "ephemeral";
3973
+ ttl?: "5m" | "1h" | undefined;
3544
3974
  } | undefined;
3545
3975
  }, {
3546
3976
  type: "text";
3547
3977
  text?: string | undefined;
3548
3978
  cache_control?: {
3549
3979
  type: "ephemeral";
3980
+ ttl?: "5m" | "1h" | undefined;
3550
3981
  } | undefined;
3551
3982
  }>, "many">]>;
3552
3983
  role: z.ZodLiteral<"system">;
@@ -3558,6 +3989,7 @@ declare const Prompt$1: z.ZodObject<{
3558
3989
  text: string;
3559
3990
  cache_control?: {
3560
3991
  type: "ephemeral";
3992
+ ttl?: "5m" | "1h" | undefined;
3561
3993
  } | undefined;
3562
3994
  }[];
3563
3995
  name?: string | undefined;
@@ -3568,6 +4000,7 @@ declare const Prompt$1: z.ZodObject<{
3568
4000
  text?: string | undefined;
3569
4001
  cache_control?: {
3570
4002
  type: "ephemeral";
4003
+ ttl?: "5m" | "1h" | undefined;
3571
4004
  } | undefined;
3572
4005
  }[];
3573
4006
  name?: string | undefined;
@@ -3577,22 +4010,27 @@ declare const Prompt$1: z.ZodObject<{
3577
4010
  type: z.ZodLiteral<"text">;
3578
4011
  cache_control: z.ZodOptional<z.ZodObject<{
3579
4012
  type: z.ZodLiteral<"ephemeral">;
4013
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
3580
4014
  }, "strip", z.ZodTypeAny, {
3581
4015
  type: "ephemeral";
4016
+ ttl?: "5m" | "1h" | undefined;
3582
4017
  }, {
3583
4018
  type: "ephemeral";
4019
+ ttl?: "5m" | "1h" | undefined;
3584
4020
  }>>;
3585
4021
  }, "strip", z.ZodTypeAny, {
3586
4022
  type: "text";
3587
4023
  text: string;
3588
4024
  cache_control?: {
3589
4025
  type: "ephemeral";
4026
+ ttl?: "5m" | "1h" | undefined;
3590
4027
  } | undefined;
3591
4028
  }, {
3592
4029
  type: "text";
3593
4030
  text?: string | undefined;
3594
4031
  cache_control?: {
3595
4032
  type: "ephemeral";
4033
+ ttl?: "5m" | "1h" | undefined;
3596
4034
  } | undefined;
3597
4035
  }>, z.ZodObject<{
3598
4036
  image_url: z.ZodObject<{
@@ -3606,18 +4044,36 @@ declare const Prompt$1: z.ZodObject<{
3606
4044
  detail?: "auto" | "low" | "high" | undefined;
3607
4045
  }>;
3608
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
+ }>>;
3609
4057
  }, "strip", z.ZodTypeAny, {
3610
4058
  type: "image_url";
3611
4059
  image_url: {
3612
4060
  url: string;
3613
4061
  detail?: "auto" | "low" | "high" | undefined;
3614
4062
  };
4063
+ cache_control?: {
4064
+ type: "ephemeral";
4065
+ ttl?: "5m" | "1h" | undefined;
4066
+ } | undefined;
3615
4067
  }, {
3616
4068
  type: "image_url";
3617
4069
  image_url: {
3618
4070
  url: string;
3619
4071
  detail?: "auto" | "low" | "high" | undefined;
3620
4072
  };
4073
+ cache_control?: {
4074
+ type: "ephemeral";
4075
+ ttl?: "5m" | "1h" | undefined;
4076
+ } | undefined;
3621
4077
  }>, z.ZodObject<{
3622
4078
  file: z.ZodObject<{
3623
4079
  file_data: z.ZodOptional<z.ZodString>;
@@ -3633,6 +4089,16 @@ declare const Prompt$1: z.ZodObject<{
3633
4089
  file_id?: string | undefined;
3634
4090
  }>;
3635
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
+ }>>;
3636
4102
  }, "strip", z.ZodTypeAny, {
3637
4103
  type: "file";
3638
4104
  file: {
@@ -3640,6 +4106,10 @@ declare const Prompt$1: z.ZodObject<{
3640
4106
  file_data?: string | undefined;
3641
4107
  file_id?: string | undefined;
3642
4108
  };
4109
+ cache_control?: {
4110
+ type: "ephemeral";
4111
+ ttl?: "5m" | "1h" | undefined;
4112
+ } | undefined;
3643
4113
  }, {
3644
4114
  type: "file";
3645
4115
  file: {
@@ -3647,6 +4117,10 @@ declare const Prompt$1: z.ZodObject<{
3647
4117
  file_data?: string | undefined;
3648
4118
  file_id?: string | undefined;
3649
4119
  };
4120
+ cache_control?: {
4121
+ type: "ephemeral";
4122
+ ttl?: "5m" | "1h" | undefined;
4123
+ } | undefined;
3650
4124
  }>]>, "many">]>;
3651
4125
  role: z.ZodLiteral<"user">;
3652
4126
  name: z.ZodOptional<z.ZodString>;
@@ -3657,6 +4131,7 @@ declare const Prompt$1: z.ZodObject<{
3657
4131
  text: string;
3658
4132
  cache_control?: {
3659
4133
  type: "ephemeral";
4134
+ ttl?: "5m" | "1h" | undefined;
3660
4135
  } | undefined;
3661
4136
  } | {
3662
4137
  type: "image_url";
@@ -3664,6 +4139,10 @@ declare const Prompt$1: z.ZodObject<{
3664
4139
  url: string;
3665
4140
  detail?: "auto" | "low" | "high" | undefined;
3666
4141
  };
4142
+ cache_control?: {
4143
+ type: "ephemeral";
4144
+ ttl?: "5m" | "1h" | undefined;
4145
+ } | undefined;
3667
4146
  } | {
3668
4147
  type: "file";
3669
4148
  file: {
@@ -3671,6 +4150,10 @@ declare const Prompt$1: z.ZodObject<{
3671
4150
  file_data?: string | undefined;
3672
4151
  file_id?: string | undefined;
3673
4152
  };
4153
+ cache_control?: {
4154
+ type: "ephemeral";
4155
+ ttl?: "5m" | "1h" | undefined;
4156
+ } | undefined;
3674
4157
  })[];
3675
4158
  name?: string | undefined;
3676
4159
  }, {
@@ -3680,6 +4163,7 @@ declare const Prompt$1: z.ZodObject<{
3680
4163
  text?: string | undefined;
3681
4164
  cache_control?: {
3682
4165
  type: "ephemeral";
4166
+ ttl?: "5m" | "1h" | undefined;
3683
4167
  } | undefined;
3684
4168
  } | {
3685
4169
  type: "image_url";
@@ -3687,6 +4171,10 @@ declare const Prompt$1: z.ZodObject<{
3687
4171
  url: string;
3688
4172
  detail?: "auto" | "low" | "high" | undefined;
3689
4173
  };
4174
+ cache_control?: {
4175
+ type: "ephemeral";
4176
+ ttl?: "5m" | "1h" | undefined;
4177
+ } | undefined;
3690
4178
  } | {
3691
4179
  type: "file";
3692
4180
  file: {
@@ -3694,6 +4182,10 @@ declare const Prompt$1: z.ZodObject<{
3694
4182
  file_data?: string | undefined;
3695
4183
  file_id?: string | undefined;
3696
4184
  };
4185
+ cache_control?: {
4186
+ type: "ephemeral";
4187
+ ttl?: "5m" | "1h" | undefined;
4188
+ } | undefined;
3697
4189
  })[];
3698
4190
  name?: string | undefined;
3699
4191
  }>, z.ZodObject<{
@@ -3703,22 +4195,27 @@ declare const Prompt$1: z.ZodObject<{
3703
4195
  type: z.ZodLiteral<"text">;
3704
4196
  cache_control: z.ZodOptional<z.ZodObject<{
3705
4197
  type: z.ZodLiteral<"ephemeral">;
4198
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
3706
4199
  }, "strip", z.ZodTypeAny, {
3707
4200
  type: "ephemeral";
4201
+ ttl?: "5m" | "1h" | undefined;
3708
4202
  }, {
3709
4203
  type: "ephemeral";
4204
+ ttl?: "5m" | "1h" | undefined;
3710
4205
  }>>;
3711
4206
  }, "strip", z.ZodTypeAny, {
3712
4207
  type: "text";
3713
4208
  text: string;
3714
4209
  cache_control?: {
3715
4210
  type: "ephemeral";
4211
+ ttl?: "5m" | "1h" | undefined;
3716
4212
  } | undefined;
3717
4213
  }, {
3718
4214
  type: "text";
3719
4215
  text?: string | undefined;
3720
4216
  cache_control?: {
3721
4217
  type: "ephemeral";
4218
+ ttl?: "5m" | "1h" | undefined;
3722
4219
  } | undefined;
3723
4220
  }>, "many">, z.ZodNull]>>;
3724
4221
  function_call: z.ZodOptional<z.ZodObject<{
@@ -3783,6 +4280,7 @@ declare const Prompt$1: z.ZodObject<{
3783
4280
  text: string;
3784
4281
  cache_control?: {
3785
4282
  type: "ephemeral";
4283
+ ttl?: "5m" | "1h" | undefined;
3786
4284
  } | undefined;
3787
4285
  }[] | null | undefined;
3788
4286
  tool_calls?: {
@@ -3810,6 +4308,7 @@ declare const Prompt$1: z.ZodObject<{
3810
4308
  text?: string | undefined;
3811
4309
  cache_control?: {
3812
4310
  type: "ephemeral";
4311
+ ttl?: "5m" | "1h" | undefined;
3813
4312
  } | undefined;
3814
4313
  }[] | null | undefined;
3815
4314
  tool_calls?: {
@@ -3831,22 +4330,27 @@ declare const Prompt$1: z.ZodObject<{
3831
4330
  type: z.ZodLiteral<"text">;
3832
4331
  cache_control: z.ZodOptional<z.ZodObject<{
3833
4332
  type: z.ZodLiteral<"ephemeral">;
4333
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
3834
4334
  }, "strip", z.ZodTypeAny, {
3835
4335
  type: "ephemeral";
4336
+ ttl?: "5m" | "1h" | undefined;
3836
4337
  }, {
3837
4338
  type: "ephemeral";
4339
+ ttl?: "5m" | "1h" | undefined;
3838
4340
  }>>;
3839
4341
  }, "strip", z.ZodTypeAny, {
3840
4342
  type: "text";
3841
4343
  text: string;
3842
4344
  cache_control?: {
3843
4345
  type: "ephemeral";
4346
+ ttl?: "5m" | "1h" | undefined;
3844
4347
  } | undefined;
3845
4348
  }, {
3846
4349
  type: "text";
3847
4350
  text?: string | undefined;
3848
4351
  cache_control?: {
3849
4352
  type: "ephemeral";
4353
+ ttl?: "5m" | "1h" | undefined;
3850
4354
  } | undefined;
3851
4355
  }>, "many">]>;
3852
4356
  role: z.ZodLiteral<"tool">;
@@ -3858,6 +4362,7 @@ declare const Prompt$1: z.ZodObject<{
3858
4362
  text: string;
3859
4363
  cache_control?: {
3860
4364
  type: "ephemeral";
4365
+ ttl?: "5m" | "1h" | undefined;
3861
4366
  } | undefined;
3862
4367
  }[];
3863
4368
  tool_call_id: string;
@@ -3868,6 +4373,7 @@ declare const Prompt$1: z.ZodObject<{
3868
4373
  text?: string | undefined;
3869
4374
  cache_control?: {
3870
4375
  type: "ephemeral";
4376
+ ttl?: "5m" | "1h" | undefined;
3871
4377
  } | undefined;
3872
4378
  }[];
3873
4379
  tool_call_id?: string | undefined;
@@ -3889,22 +4395,27 @@ declare const Prompt$1: z.ZodObject<{
3889
4395
  type: z.ZodLiteral<"text">;
3890
4396
  cache_control: z.ZodOptional<z.ZodObject<{
3891
4397
  type: z.ZodLiteral<"ephemeral">;
4398
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
3892
4399
  }, "strip", z.ZodTypeAny, {
3893
4400
  type: "ephemeral";
4401
+ ttl?: "5m" | "1h" | undefined;
3894
4402
  }, {
3895
4403
  type: "ephemeral";
4404
+ ttl?: "5m" | "1h" | undefined;
3896
4405
  }>>;
3897
4406
  }, "strip", z.ZodTypeAny, {
3898
4407
  type: "text";
3899
4408
  text: string;
3900
4409
  cache_control?: {
3901
4410
  type: "ephemeral";
4411
+ ttl?: "5m" | "1h" | undefined;
3902
4412
  } | undefined;
3903
4413
  }, {
3904
4414
  type: "text";
3905
4415
  text?: string | undefined;
3906
4416
  cache_control?: {
3907
4417
  type: "ephemeral";
4418
+ ttl?: "5m" | "1h" | undefined;
3908
4419
  } | undefined;
3909
4420
  }>, "many">]>;
3910
4421
  role: z.ZodLiteral<"developer">;
@@ -3916,6 +4427,7 @@ declare const Prompt$1: z.ZodObject<{
3916
4427
  text: string;
3917
4428
  cache_control?: {
3918
4429
  type: "ephemeral";
4430
+ ttl?: "5m" | "1h" | undefined;
3919
4431
  } | undefined;
3920
4432
  }[];
3921
4433
  name?: string | undefined;
@@ -3926,6 +4438,7 @@ declare const Prompt$1: z.ZodObject<{
3926
4438
  text?: string | undefined;
3927
4439
  cache_control?: {
3928
4440
  type: "ephemeral";
4441
+ ttl?: "5m" | "1h" | undefined;
3929
4442
  } | undefined;
3930
4443
  }[];
3931
4444
  name?: string | undefined;
@@ -3949,6 +4462,7 @@ declare const Prompt$1: z.ZodObject<{
3949
4462
  text: string;
3950
4463
  cache_control?: {
3951
4464
  type: "ephemeral";
4465
+ ttl?: "5m" | "1h" | undefined;
3952
4466
  } | undefined;
3953
4467
  }[];
3954
4468
  name?: string | undefined;
@@ -3959,6 +4473,7 @@ declare const Prompt$1: z.ZodObject<{
3959
4473
  text: string;
3960
4474
  cache_control?: {
3961
4475
  type: "ephemeral";
4476
+ ttl?: "5m" | "1h" | undefined;
3962
4477
  } | undefined;
3963
4478
  } | {
3964
4479
  type: "image_url";
@@ -3966,6 +4481,10 @@ declare const Prompt$1: z.ZodObject<{
3966
4481
  url: string;
3967
4482
  detail?: "auto" | "low" | "high" | undefined;
3968
4483
  };
4484
+ cache_control?: {
4485
+ type: "ephemeral";
4486
+ ttl?: "5m" | "1h" | undefined;
4487
+ } | undefined;
3969
4488
  } | {
3970
4489
  type: "file";
3971
4490
  file: {
@@ -3973,6 +4492,10 @@ declare const Prompt$1: z.ZodObject<{
3973
4492
  file_data?: string | undefined;
3974
4493
  file_id?: string | undefined;
3975
4494
  };
4495
+ cache_control?: {
4496
+ type: "ephemeral";
4497
+ ttl?: "5m" | "1h" | undefined;
4498
+ } | undefined;
3976
4499
  })[];
3977
4500
  name?: string | undefined;
3978
4501
  } | {
@@ -3987,6 +4510,7 @@ declare const Prompt$1: z.ZodObject<{
3987
4510
  text: string;
3988
4511
  cache_control?: {
3989
4512
  type: "ephemeral";
4513
+ ttl?: "5m" | "1h" | undefined;
3990
4514
  } | undefined;
3991
4515
  }[] | null | undefined;
3992
4516
  tool_calls?: {
@@ -4009,6 +4533,7 @@ declare const Prompt$1: z.ZodObject<{
4009
4533
  text: string;
4010
4534
  cache_control?: {
4011
4535
  type: "ephemeral";
4536
+ ttl?: "5m" | "1h" | undefined;
4012
4537
  } | undefined;
4013
4538
  }[];
4014
4539
  tool_call_id: string;
@@ -4023,6 +4548,7 @@ declare const Prompt$1: z.ZodObject<{
4023
4548
  text: string;
4024
4549
  cache_control?: {
4025
4550
  type: "ephemeral";
4551
+ ttl?: "5m" | "1h" | undefined;
4026
4552
  } | undefined;
4027
4553
  }[];
4028
4554
  name?: string | undefined;
@@ -4040,6 +4566,7 @@ declare const Prompt$1: z.ZodObject<{
4040
4566
  text?: string | undefined;
4041
4567
  cache_control?: {
4042
4568
  type: "ephemeral";
4569
+ ttl?: "5m" | "1h" | undefined;
4043
4570
  } | undefined;
4044
4571
  }[];
4045
4572
  name?: string | undefined;
@@ -4050,6 +4577,7 @@ declare const Prompt$1: z.ZodObject<{
4050
4577
  text?: string | undefined;
4051
4578
  cache_control?: {
4052
4579
  type: "ephemeral";
4580
+ ttl?: "5m" | "1h" | undefined;
4053
4581
  } | undefined;
4054
4582
  } | {
4055
4583
  type: "image_url";
@@ -4057,6 +4585,10 @@ declare const Prompt$1: z.ZodObject<{
4057
4585
  url: string;
4058
4586
  detail?: "auto" | "low" | "high" | undefined;
4059
4587
  };
4588
+ cache_control?: {
4589
+ type: "ephemeral";
4590
+ ttl?: "5m" | "1h" | undefined;
4591
+ } | undefined;
4060
4592
  } | {
4061
4593
  type: "file";
4062
4594
  file: {
@@ -4064,6 +4596,10 @@ declare const Prompt$1: z.ZodObject<{
4064
4596
  file_data?: string | undefined;
4065
4597
  file_id?: string | undefined;
4066
4598
  };
4599
+ cache_control?: {
4600
+ type: "ephemeral";
4601
+ ttl?: "5m" | "1h" | undefined;
4602
+ } | undefined;
4067
4603
  })[];
4068
4604
  name?: string | undefined;
4069
4605
  } | {
@@ -4078,6 +4614,7 @@ declare const Prompt$1: z.ZodObject<{
4078
4614
  text?: string | undefined;
4079
4615
  cache_control?: {
4080
4616
  type: "ephemeral";
4617
+ ttl?: "5m" | "1h" | undefined;
4081
4618
  } | undefined;
4082
4619
  }[] | null | undefined;
4083
4620
  tool_calls?: {
@@ -4100,6 +4637,7 @@ declare const Prompt$1: z.ZodObject<{
4100
4637
  text?: string | undefined;
4101
4638
  cache_control?: {
4102
4639
  type: "ephemeral";
4640
+ ttl?: "5m" | "1h" | undefined;
4103
4641
  } | undefined;
4104
4642
  }[];
4105
4643
  tool_call_id?: string | undefined;
@@ -4114,6 +4652,7 @@ declare const Prompt$1: z.ZodObject<{
4114
4652
  text?: string | undefined;
4115
4653
  cache_control?: {
4116
4654
  type: "ephemeral";
4655
+ ttl?: "5m" | "1h" | undefined;
4117
4656
  } | undefined;
4118
4657
  }[];
4119
4658
  name?: string | undefined;
@@ -4948,6 +5487,7 @@ declare const Prompt$1: z.ZodObject<{
4948
5487
  text: string;
4949
5488
  cache_control?: {
4950
5489
  type: "ephemeral";
5490
+ ttl?: "5m" | "1h" | undefined;
4951
5491
  } | undefined;
4952
5492
  }[];
4953
5493
  name?: string | undefined;
@@ -4958,6 +5498,7 @@ declare const Prompt$1: z.ZodObject<{
4958
5498
  text: string;
4959
5499
  cache_control?: {
4960
5500
  type: "ephemeral";
5501
+ ttl?: "5m" | "1h" | undefined;
4961
5502
  } | undefined;
4962
5503
  } | {
4963
5504
  type: "image_url";
@@ -4965,6 +5506,10 @@ declare const Prompt$1: z.ZodObject<{
4965
5506
  url: string;
4966
5507
  detail?: "auto" | "low" | "high" | undefined;
4967
5508
  };
5509
+ cache_control?: {
5510
+ type: "ephemeral";
5511
+ ttl?: "5m" | "1h" | undefined;
5512
+ } | undefined;
4968
5513
  } | {
4969
5514
  type: "file";
4970
5515
  file: {
@@ -4972,6 +5517,10 @@ declare const Prompt$1: z.ZodObject<{
4972
5517
  file_data?: string | undefined;
4973
5518
  file_id?: string | undefined;
4974
5519
  };
5520
+ cache_control?: {
5521
+ type: "ephemeral";
5522
+ ttl?: "5m" | "1h" | undefined;
5523
+ } | undefined;
4975
5524
  })[];
4976
5525
  name?: string | undefined;
4977
5526
  } | {
@@ -4986,6 +5535,7 @@ declare const Prompt$1: z.ZodObject<{
4986
5535
  text: string;
4987
5536
  cache_control?: {
4988
5537
  type: "ephemeral";
5538
+ ttl?: "5m" | "1h" | undefined;
4989
5539
  } | undefined;
4990
5540
  }[] | null | undefined;
4991
5541
  tool_calls?: {
@@ -5008,6 +5558,7 @@ declare const Prompt$1: z.ZodObject<{
5008
5558
  text: string;
5009
5559
  cache_control?: {
5010
5560
  type: "ephemeral";
5561
+ ttl?: "5m" | "1h" | undefined;
5011
5562
  } | undefined;
5012
5563
  }[];
5013
5564
  tool_call_id: string;
@@ -5022,6 +5573,7 @@ declare const Prompt$1: z.ZodObject<{
5022
5573
  text: string;
5023
5574
  cache_control?: {
5024
5575
  type: "ephemeral";
5576
+ ttl?: "5m" | "1h" | undefined;
5025
5577
  } | undefined;
5026
5578
  }[];
5027
5579
  name?: string | undefined;
@@ -5199,6 +5751,7 @@ declare const Prompt$1: z.ZodObject<{
5199
5751
  text?: string | undefined;
5200
5752
  cache_control?: {
5201
5753
  type: "ephemeral";
5754
+ ttl?: "5m" | "1h" | undefined;
5202
5755
  } | undefined;
5203
5756
  }[];
5204
5757
  name?: string | undefined;
@@ -5209,6 +5762,7 @@ declare const Prompt$1: z.ZodObject<{
5209
5762
  text?: string | undefined;
5210
5763
  cache_control?: {
5211
5764
  type: "ephemeral";
5765
+ ttl?: "5m" | "1h" | undefined;
5212
5766
  } | undefined;
5213
5767
  } | {
5214
5768
  type: "image_url";
@@ -5216,6 +5770,10 @@ declare const Prompt$1: z.ZodObject<{
5216
5770
  url: string;
5217
5771
  detail?: "auto" | "low" | "high" | undefined;
5218
5772
  };
5773
+ cache_control?: {
5774
+ type: "ephemeral";
5775
+ ttl?: "5m" | "1h" | undefined;
5776
+ } | undefined;
5219
5777
  } | {
5220
5778
  type: "file";
5221
5779
  file: {
@@ -5223,6 +5781,10 @@ declare const Prompt$1: z.ZodObject<{
5223
5781
  file_data?: string | undefined;
5224
5782
  file_id?: string | undefined;
5225
5783
  };
5784
+ cache_control?: {
5785
+ type: "ephemeral";
5786
+ ttl?: "5m" | "1h" | undefined;
5787
+ } | undefined;
5226
5788
  })[];
5227
5789
  name?: string | undefined;
5228
5790
  } | {
@@ -5237,6 +5799,7 @@ declare const Prompt$1: z.ZodObject<{
5237
5799
  text?: string | undefined;
5238
5800
  cache_control?: {
5239
5801
  type: "ephemeral";
5802
+ ttl?: "5m" | "1h" | undefined;
5240
5803
  } | undefined;
5241
5804
  }[] | null | undefined;
5242
5805
  tool_calls?: {
@@ -5259,6 +5822,7 @@ declare const Prompt$1: z.ZodObject<{
5259
5822
  text?: string | undefined;
5260
5823
  cache_control?: {
5261
5824
  type: "ephemeral";
5825
+ ttl?: "5m" | "1h" | undefined;
5262
5826
  } | undefined;
5263
5827
  }[];
5264
5828
  tool_call_id?: string | undefined;
@@ -5273,6 +5837,7 @@ declare const Prompt$1: z.ZodObject<{
5273
5837
  text?: string | undefined;
5274
5838
  cache_control?: {
5275
5839
  type: "ephemeral";
5840
+ ttl?: "5m" | "1h" | undefined;
5276
5841
  } | undefined;
5277
5842
  }[];
5278
5843
  name?: string | undefined;
@@ -5467,6 +6032,7 @@ declare const Prompt$1: z.ZodObject<{
5467
6032
  text: string;
5468
6033
  cache_control?: {
5469
6034
  type: "ephemeral";
6035
+ ttl?: "5m" | "1h" | undefined;
5470
6036
  } | undefined;
5471
6037
  }[];
5472
6038
  name?: string | undefined;
@@ -5477,6 +6043,7 @@ declare const Prompt$1: z.ZodObject<{
5477
6043
  text: string;
5478
6044
  cache_control?: {
5479
6045
  type: "ephemeral";
6046
+ ttl?: "5m" | "1h" | undefined;
5480
6047
  } | undefined;
5481
6048
  } | {
5482
6049
  type: "image_url";
@@ -5484,6 +6051,10 @@ declare const Prompt$1: z.ZodObject<{
5484
6051
  url: string;
5485
6052
  detail?: "auto" | "low" | "high" | undefined;
5486
6053
  };
6054
+ cache_control?: {
6055
+ type: "ephemeral";
6056
+ ttl?: "5m" | "1h" | undefined;
6057
+ } | undefined;
5487
6058
  } | {
5488
6059
  type: "file";
5489
6060
  file: {
@@ -5491,6 +6062,10 @@ declare const Prompt$1: z.ZodObject<{
5491
6062
  file_data?: string | undefined;
5492
6063
  file_id?: string | undefined;
5493
6064
  };
6065
+ cache_control?: {
6066
+ type: "ephemeral";
6067
+ ttl?: "5m" | "1h" | undefined;
6068
+ } | undefined;
5494
6069
  })[];
5495
6070
  name?: string | undefined;
5496
6071
  } | {
@@ -5505,6 +6080,7 @@ declare const Prompt$1: z.ZodObject<{
5505
6080
  text: string;
5506
6081
  cache_control?: {
5507
6082
  type: "ephemeral";
6083
+ ttl?: "5m" | "1h" | undefined;
5508
6084
  } | undefined;
5509
6085
  }[] | null | undefined;
5510
6086
  tool_calls?: {
@@ -5527,6 +6103,7 @@ declare const Prompt$1: z.ZodObject<{
5527
6103
  text: string;
5528
6104
  cache_control?: {
5529
6105
  type: "ephemeral";
6106
+ ttl?: "5m" | "1h" | undefined;
5530
6107
  } | undefined;
5531
6108
  }[];
5532
6109
  tool_call_id: string;
@@ -5541,6 +6118,7 @@ declare const Prompt$1: z.ZodObject<{
5541
6118
  text: string;
5542
6119
  cache_control?: {
5543
6120
  type: "ephemeral";
6121
+ ttl?: "5m" | "1h" | undefined;
5544
6122
  } | undefined;
5545
6123
  }[];
5546
6124
  name?: string | undefined;
@@ -5732,6 +6310,7 @@ declare const Prompt$1: z.ZodObject<{
5732
6310
  text?: string | undefined;
5733
6311
  cache_control?: {
5734
6312
  type: "ephemeral";
6313
+ ttl?: "5m" | "1h" | undefined;
5735
6314
  } | undefined;
5736
6315
  }[];
5737
6316
  name?: string | undefined;
@@ -5742,6 +6321,7 @@ declare const Prompt$1: z.ZodObject<{
5742
6321
  text?: string | undefined;
5743
6322
  cache_control?: {
5744
6323
  type: "ephemeral";
6324
+ ttl?: "5m" | "1h" | undefined;
5745
6325
  } | undefined;
5746
6326
  } | {
5747
6327
  type: "image_url";
@@ -5749,6 +6329,10 @@ declare const Prompt$1: z.ZodObject<{
5749
6329
  url: string;
5750
6330
  detail?: "auto" | "low" | "high" | undefined;
5751
6331
  };
6332
+ cache_control?: {
6333
+ type: "ephemeral";
6334
+ ttl?: "5m" | "1h" | undefined;
6335
+ } | undefined;
5752
6336
  } | {
5753
6337
  type: "file";
5754
6338
  file: {
@@ -5756,6 +6340,10 @@ declare const Prompt$1: z.ZodObject<{
5756
6340
  file_data?: string | undefined;
5757
6341
  file_id?: string | undefined;
5758
6342
  };
6343
+ cache_control?: {
6344
+ type: "ephemeral";
6345
+ ttl?: "5m" | "1h" | undefined;
6346
+ } | undefined;
5759
6347
  })[];
5760
6348
  name?: string | undefined;
5761
6349
  } | {
@@ -5770,6 +6358,7 @@ declare const Prompt$1: z.ZodObject<{
5770
6358
  text?: string | undefined;
5771
6359
  cache_control?: {
5772
6360
  type: "ephemeral";
6361
+ ttl?: "5m" | "1h" | undefined;
5773
6362
  } | undefined;
5774
6363
  }[] | null | undefined;
5775
6364
  tool_calls?: {
@@ -5792,6 +6381,7 @@ declare const Prompt$1: z.ZodObject<{
5792
6381
  text?: string | undefined;
5793
6382
  cache_control?: {
5794
6383
  type: "ephemeral";
6384
+ ttl?: "5m" | "1h" | undefined;
5795
6385
  } | undefined;
5796
6386
  }[];
5797
6387
  tool_call_id?: string | undefined;
@@ -5806,6 +6396,7 @@ declare const Prompt$1: z.ZodObject<{
5806
6396
  text?: string | undefined;
5807
6397
  cache_control?: {
5808
6398
  type: "ephemeral";
6399
+ ttl?: "5m" | "1h" | undefined;
5809
6400
  } | undefined;
5810
6401
  }[];
5811
6402
  name?: string | undefined;
@@ -6166,6 +6757,7 @@ interface InstrumentationIntegrationsConfig {
6166
6757
  strandsAgentSDK?: boolean;
6167
6758
  langchain?: boolean;
6168
6759
  langgraph?: boolean;
6760
+ langsmith?: boolean;
6169
6761
  }
6170
6762
  interface InstrumentationConfig {
6171
6763
  /**
@@ -6217,6 +6809,7 @@ declare class BraintrustPlugin extends BasePlugin {
6217
6809
  private gitHubCopilotPlugin;
6218
6810
  private fluePlugin;
6219
6811
  private langChainPlugin;
6812
+ private langSmithPlugin;
6220
6813
  private piCodingAgentPlugin;
6221
6814
  private strandsAgentSDKPlugin;
6222
6815
  constructor(config?: BraintrustPluginConfig);
@@ -6679,6 +7272,10 @@ declare class LRUCache<K, V> {
6679
7272
  * @returns The cached value if found, undefined otherwise.
6680
7273
  */
6681
7274
  get(key: K): V | undefined;
7275
+ /**
7276
+ * Checks whether a key exists and marks it as most recently used.
7277
+ */
7278
+ has(key: K): boolean;
6682
7279
  /**
6683
7280
  * Stores a value in the cache.
6684
7281
  * If the key already exists, the value is updated and marked as most recently used.
@@ -6688,6 +7285,23 @@ declare class LRUCache<K, V> {
6688
7285
  * @param value - The value to store.
6689
7286
  */
6690
7287
  set(key: K, value: V): void;
7288
+ /**
7289
+ * Removes an item from the cache.
7290
+ */
7291
+ delete(key: K): boolean;
7292
+ /**
7293
+ * Iterates over cache entries from least to most recently used.
7294
+ */
7295
+ entries(): IterableIterator<[K, V]>;
7296
+ /**
7297
+ * Iterates over cache keys from least to most recently used.
7298
+ */
7299
+ keys(): IterableIterator<K>;
7300
+ /**
7301
+ * Iterates over cache values from least to most recently used.
7302
+ */
7303
+ values(): IterableIterator<V>;
7304
+ [Symbol.iterator](): IterableIterator<[K, V]>;
6691
7305
  /**
6692
7306
  * Removes all items from the cache.
6693
7307
  */
@@ -7374,7 +7988,7 @@ declare class HTTPConnection {
7374
7988
  set_token(token: string): void;
7375
7989
  _reset(): void;
7376
7990
  get(path: string, params?: Record<string, string | string[] | undefined> | undefined, config?: RequestInit): Promise<Response>;
7377
- post(path: string, params?: Record<string, unknown> | string, config?: RequestInit): Promise<Response>;
7991
+ post(path: string, params?: Record<string, unknown> | string, config?: RequestInit, retries?: number): Promise<Response>;
7378
7992
  get_json(object_type: string, args?: Record<string, string | string[] | undefined> | undefined, retries?: number): Promise<any>;
7379
7993
  post_json(object_type: string, args?: Record<string, unknown> | string | undefined): Promise<any>;
7380
7994
  toString(): string;
@@ -8336,6 +8950,302 @@ declare function braintrustFlueInstrumentation(): FlueInstrumentation;
8336
8950
  */
8337
8951
  declare const braintrustFlueObserver: BraintrustFlueObserver;
8338
8952
 
8953
+ /**
8954
+ * Vendored types for eve's authored hook APIs.
8955
+ *
8956
+ * Keep this surface intentionally narrow. These types are not exported to SDK
8957
+ * users and should only cover fields we read, correlate, or log.
8958
+ */
8959
+ type EveJsonValue = null | boolean | number | string | EveJsonValue[] | {
8960
+ readonly [key: string]: EveJsonValue;
8961
+ };
8962
+ type EveJsonObject = {
8963
+ readonly [key: string]: EveJsonValue;
8964
+ };
8965
+ interface EveHookContext {
8966
+ readonly session?: {
8967
+ readonly id?: string;
8968
+ readonly parent?: {
8969
+ readonly callId?: string;
8970
+ readonly sessionId?: string;
8971
+ readonly turn?: {
8972
+ readonly id?: string;
8973
+ };
8974
+ };
8975
+ };
8976
+ }
8977
+ type EveAssistantStepFinishReason = "content-filter" | "error" | "length" | "other" | "stop" | "tool-calls";
8978
+ interface EveStreamEventMeta {
8979
+ readonly at: string;
8980
+ }
8981
+ interface EveRuntimeToolCallActionRequest {
8982
+ readonly callId: string;
8983
+ readonly input: EveJsonObject;
8984
+ readonly kind: "tool-call";
8985
+ readonly toolName: string;
8986
+ }
8987
+ interface EveRuntimeToolResultActionResult {
8988
+ readonly callId: string;
8989
+ readonly isError?: boolean;
8990
+ readonly kind: "tool-result";
8991
+ readonly output: EveJsonValue;
8992
+ readonly toolName: string;
8993
+ }
8994
+ type EveRuntimeActionRequest = EveRuntimeToolCallActionRequest | {
8995
+ readonly callId: string;
8996
+ readonly input?: EveJsonObject;
8997
+ readonly kind: "load-skill" | "remote-agent-call";
8998
+ readonly name?: string;
8999
+ } | {
9000
+ readonly callId: string;
9001
+ readonly input: EveJsonObject;
9002
+ readonly kind: "subagent-call";
9003
+ readonly name?: string;
9004
+ readonly subagentName?: string;
9005
+ };
9006
+ type EveRuntimeActionResult = EveRuntimeToolResultActionResult | {
9007
+ readonly callId: string;
9008
+ readonly isError?: boolean;
9009
+ readonly kind: "load-skill-result";
9010
+ readonly output?: EveJsonValue;
9011
+ readonly name?: string;
9012
+ } | {
9013
+ readonly callId: string;
9014
+ readonly isError?: boolean;
9015
+ readonly kind: "subagent-result";
9016
+ readonly output?: EveJsonValue;
9017
+ readonly subagentName?: string;
9018
+ };
9019
+ type EveActionResultStatus = "completed" | "failed" | "rejected";
9020
+ interface EveActionResultError {
9021
+ readonly code: string;
9022
+ readonly message: string;
9023
+ }
9024
+ type EveHandleMessageStreamEvent = {
9025
+ readonly data: {
9026
+ readonly invocation?: unknown;
9027
+ readonly runtime?: {
9028
+ readonly agentId: string;
9029
+ readonly agentName?: string;
9030
+ readonly eveVersion: string;
9031
+ readonly modelId: string;
9032
+ };
9033
+ };
9034
+ readonly meta?: EveStreamEventMeta;
9035
+ readonly type: "session.started";
9036
+ } | {
9037
+ readonly data: {
9038
+ readonly sequence: number;
9039
+ readonly turnId: string;
9040
+ };
9041
+ readonly meta?: EveStreamEventMeta;
9042
+ readonly type: "turn.started";
9043
+ } | {
9044
+ readonly data: {
9045
+ readonly sequence: number;
9046
+ readonly turnId: string;
9047
+ };
9048
+ readonly meta?: EveStreamEventMeta;
9049
+ readonly type: "turn.completed";
9050
+ } | {
9051
+ readonly data: {
9052
+ readonly message: string;
9053
+ readonly sequence: number;
9054
+ readonly turnId: string;
9055
+ };
9056
+ readonly meta?: EveStreamEventMeta;
9057
+ readonly type: "message.received";
9058
+ } | {
9059
+ readonly data: {
9060
+ readonly finishReason: EveAssistantStepFinishReason;
9061
+ readonly message: string | null;
9062
+ readonly sequence: number;
9063
+ readonly stepIndex: number;
9064
+ readonly turnId: string;
9065
+ };
9066
+ readonly meta?: EveStreamEventMeta;
9067
+ readonly type: "message.completed";
9068
+ } | {
9069
+ readonly data: {
9070
+ readonly result: EveJsonValue;
9071
+ readonly sequence: number;
9072
+ readonly stepIndex: number;
9073
+ readonly turnId: string;
9074
+ };
9075
+ readonly meta?: EveStreamEventMeta;
9076
+ readonly type: "result.completed";
9077
+ } | {
9078
+ readonly data: {
9079
+ readonly sequence: number;
9080
+ readonly stepIndex: number;
9081
+ readonly turnId: string;
9082
+ };
9083
+ readonly meta?: EveStreamEventMeta;
9084
+ readonly type: "step.started";
9085
+ } | {
9086
+ readonly data: {
9087
+ readonly finishReason: EveAssistantStepFinishReason;
9088
+ readonly providerMetadata?: {
9089
+ readonly gateway?: {
9090
+ readonly generationId?: string;
9091
+ };
9092
+ };
9093
+ readonly sequence: number;
9094
+ readonly stepIndex: number;
9095
+ readonly turnId: string;
9096
+ readonly usage?: {
9097
+ readonly cacheReadTokens?: number;
9098
+ readonly cacheWriteTokens?: number;
9099
+ readonly costUsd?: number;
9100
+ readonly inputTokens?: number;
9101
+ readonly outputTokens?: number;
9102
+ };
9103
+ };
9104
+ readonly meta?: EveStreamEventMeta;
9105
+ readonly type: "step.completed";
9106
+ } | {
9107
+ readonly data: {
9108
+ readonly code: string;
9109
+ readonly details?: EveJsonObject;
9110
+ readonly message: string;
9111
+ readonly sequence: number;
9112
+ readonly stepIndex: number;
9113
+ readonly turnId: string;
9114
+ };
9115
+ readonly meta?: EveStreamEventMeta;
9116
+ readonly type: "step.failed";
9117
+ } | {
9118
+ readonly data: {
9119
+ readonly actions: readonly EveRuntimeActionRequest[];
9120
+ readonly sequence: number;
9121
+ readonly stepIndex: number;
9122
+ readonly turnId: string;
9123
+ };
9124
+ readonly meta?: EveStreamEventMeta;
9125
+ readonly type: "actions.requested";
9126
+ } | {
9127
+ readonly data: {
9128
+ readonly error?: EveActionResultError;
9129
+ readonly result: EveRuntimeActionResult;
9130
+ readonly sequence: number;
9131
+ readonly stepIndex: number;
9132
+ readonly status: EveActionResultStatus;
9133
+ readonly turnId: string;
9134
+ };
9135
+ readonly meta?: EveStreamEventMeta;
9136
+ readonly type: "action.result";
9137
+ } | {
9138
+ readonly data: {
9139
+ readonly callId: string;
9140
+ readonly childSessionId: string;
9141
+ readonly name: string;
9142
+ readonly remote?: {
9143
+ readonly url?: string;
9144
+ };
9145
+ readonly sequence: number;
9146
+ readonly toolName?: string;
9147
+ readonly turnId: string;
9148
+ };
9149
+ readonly meta?: EveStreamEventMeta;
9150
+ readonly type: "subagent.called";
9151
+ } | {
9152
+ readonly data: {
9153
+ readonly callId: string;
9154
+ readonly error?: EveActionResultError;
9155
+ readonly output?: EveJsonValue;
9156
+ readonly sequence: number;
9157
+ readonly status?: EveActionResultStatus;
9158
+ readonly subagentName: string;
9159
+ readonly turnId: string;
9160
+ };
9161
+ readonly meta?: EveStreamEventMeta;
9162
+ readonly type: "subagent.completed";
9163
+ } | {
9164
+ readonly data: {
9165
+ readonly code: string;
9166
+ readonly details?: EveJsonObject;
9167
+ readonly message: string;
9168
+ readonly sequence: number;
9169
+ readonly turnId: string;
9170
+ };
9171
+ readonly meta?: EveStreamEventMeta;
9172
+ readonly type: "turn.failed";
9173
+ } | {
9174
+ readonly data: {
9175
+ readonly code: string;
9176
+ readonly details?: EveJsonObject;
9177
+ readonly message: string;
9178
+ readonly sessionId: string;
9179
+ };
9180
+ readonly meta?: EveStreamEventMeta;
9181
+ readonly type: "session.failed";
9182
+ } | {
9183
+ readonly data: {
9184
+ readonly wait: "next-user-message";
9185
+ };
9186
+ readonly meta?: EveStreamEventMeta;
9187
+ readonly type: "session.waiting";
9188
+ } | {
9189
+ readonly meta?: EveStreamEventMeta;
9190
+ readonly type: "session.completed";
9191
+ };
9192
+ interface EveHookDefinition {
9193
+ readonly events?: {
9194
+ readonly "*"?: (event: EveHandleMessageStreamEvent, ctx: EveHookContext) => void | Promise<void>;
9195
+ readonly [eventType: string]: ((event: EveHandleMessageStreamEvent, ctx: EveHookContext) => void | Promise<void>) | undefined;
9196
+ };
9197
+ }
9198
+ interface EveInstrumentationSetupContext {
9199
+ readonly agentName: string;
9200
+ }
9201
+ interface EveInstrumentationModelInput {
9202
+ readonly instructions?: string | readonly EveJsonObject[];
9203
+ readonly messages: readonly EveJsonObject[];
9204
+ }
9205
+ interface EveInstrumentationStepStartedEventInput {
9206
+ readonly channel?: unknown;
9207
+ readonly modelInput: EveInstrumentationModelInput;
9208
+ readonly session: {
9209
+ readonly id?: string;
9210
+ };
9211
+ readonly step: {
9212
+ readonly index?: number;
9213
+ };
9214
+ readonly turn: {
9215
+ readonly id?: string;
9216
+ readonly sequence?: number;
9217
+ };
9218
+ }
9219
+ interface EveInstrumentationDefinition {
9220
+ readonly events?: {
9221
+ readonly "step.started"?: (input: EveInstrumentationStepStartedEventInput) => void | {
9222
+ readonly runtimeContext?: EveJsonObject;
9223
+ };
9224
+ readonly [eventType: string]: ((input: EveInstrumentationStepStartedEventInput) => void | {
9225
+ readonly runtimeContext?: EveJsonObject;
9226
+ }) | undefined;
9227
+ };
9228
+ readonly recordInputs?: boolean;
9229
+ readonly recordOutputs?: boolean;
9230
+ readonly setup?: (context: EveInstrumentationSetupContext) => void;
9231
+ }
9232
+
9233
+ type EveStateHandle<T> = {
9234
+ get(): T;
9235
+ update(fn: (current: T) => T): void;
9236
+ };
9237
+ type EveDefineState = <T>(name: string, initial: () => T) => EveStateHandle<T>;
9238
+ /** Manual hook instrumentation for eve runtime stream events. */
9239
+ declare function braintrustEveHook(options: {
9240
+ defineState: EveDefineState;
9241
+ metadata?: Record<string, unknown>;
9242
+ }): EveHookDefinition;
9243
+ /** Eve instrumentation helper for logger setup and durable LLM input capture. */
9244
+ declare function braintrustEveInstrumentation(options: {
9245
+ defineState: EveDefineState;
9246
+ setup?: EveInstrumentationDefinition["setup"];
9247
+ }): EveInstrumentationDefinition;
9248
+
8339
9249
  /**
8340
9250
  * Plugin registry and configuration for auto-instrumentation.
8341
9251
  *
@@ -8372,4 +9282,4 @@ declare const braintrustFlueObserver: BraintrustFlueObserver;
8372
9282
  */
8373
9283
  declare function configureInstrumentation(config: InstrumentationConfig): void;
8374
9284
 
8375
- 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 };
9285
+ 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 };