braintrust 3.31.0 → 3.33.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 (62) hide show
  1. package/README.md +0 -43
  2. package/dev/dist/index.d.mts +767 -0
  3. package/dev/dist/index.d.ts +767 -0
  4. package/dev/dist/index.js +3115 -908
  5. package/dev/dist/index.mjs +2466 -259
  6. package/dist/apply-auto-instrumentation.js +325 -221
  7. package/dist/apply-auto-instrumentation.mjs +110 -6
  8. package/dist/auto-instrumentations/bundler/esbuild.cjs +182 -7
  9. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  10. package/dist/auto-instrumentations/bundler/next.cjs +182 -7
  11. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  12. package/dist/auto-instrumentations/bundler/rollup.cjs +182 -7
  13. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  14. package/dist/auto-instrumentations/bundler/vite.cjs +182 -7
  15. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  16. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +182 -7
  17. package/dist/auto-instrumentations/bundler/webpack.cjs +182 -7
  18. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  19. package/dist/auto-instrumentations/{chunk-U64OYU4Q.mjs → chunk-T2DMPWFI.mjs} +113 -6
  20. package/dist/auto-instrumentations/{chunk-LW4HDHXT.mjs → chunk-UHJ2DNYJ.mjs} +74 -2
  21. package/dist/auto-instrumentations/{chunk-OXINGIEZ.mjs → chunk-W5QNG3PV.mjs} +1 -1
  22. package/dist/auto-instrumentations/hook.mjs +209 -9
  23. package/dist/auto-instrumentations/index.cjs +115 -6
  24. package/dist/auto-instrumentations/index.d.mts +5 -1
  25. package/dist/auto-instrumentations/index.d.ts +5 -1
  26. package/dist/auto-instrumentations/index.mjs +5 -1
  27. package/dist/browser.d.mts +2324 -342
  28. package/dist/browser.d.ts +2324 -342
  29. package/dist/browser.js +3573 -626
  30. package/dist/browser.mjs +3573 -626
  31. package/dist/chunk-7P6ASYW6.mjs +9 -0
  32. package/dist/{chunk-V32LW47Z.js → chunk-AXJTOUOC.js} +3022 -1131
  33. package/dist/{chunk-4AQGZS6X.js → chunk-G3VHOHRC.js} +85 -11
  34. package/dist/chunk-MLKGABMK.js +9 -0
  35. package/dist/{chunk-AJT4FR25.mjs → chunk-MZLBAFVJ.mjs} +2051 -160
  36. package/dist/{chunk-CE3BLB2L.mjs → chunk-TZVZN2JJ.mjs} +84 -10
  37. package/dist/cli.js +2614 -297
  38. package/dist/custom-views.d.mts +112 -0
  39. package/dist/custom-views.d.ts +112 -0
  40. package/dist/custom-views.js +13 -0
  41. package/dist/custom-views.mjs +13 -0
  42. package/dist/edge-light.d.mts +1 -1
  43. package/dist/edge-light.d.ts +1 -1
  44. package/dist/edge-light.js +3573 -626
  45. package/dist/edge-light.mjs +3573 -626
  46. package/dist/index.d.mts +2324 -342
  47. package/dist/index.d.ts +2324 -342
  48. package/dist/index.js +1959 -969
  49. package/dist/index.mjs +1450 -460
  50. package/dist/instrumentation/index.d.mts +439 -245
  51. package/dist/instrumentation/index.d.ts +439 -245
  52. package/dist/instrumentation/index.js +2550 -258
  53. package/dist/instrumentation/index.mjs +2550 -258
  54. package/dist/vitest-evals-reporter.js +17 -16
  55. package/dist/vitest-evals-reporter.mjs +3 -2
  56. package/dist/workerd.d.mts +1 -1
  57. package/dist/workerd.d.ts +1 -1
  58. package/dist/workerd.js +3573 -626
  59. package/dist/workerd.mjs +3573 -626
  60. package/package.json +10 -2
  61. package/util/dist/index.d.mts +326 -0
  62. package/util/dist/index.d.ts +326 -0
@@ -320,6 +320,48 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
320
320
  type: "ephemeral";
321
321
  ttl?: "5m" | "1h" | undefined;
322
322
  } | undefined;
323
+ }>, z.ZodObject<{
324
+ input_audio: z.ZodObject<{
325
+ data: z.ZodString;
326
+ format: z.ZodEnum<["wav", "mp3"]>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ data: string;
329
+ format: "wav" | "mp3";
330
+ }, {
331
+ data: string;
332
+ format: "wav" | "mp3";
333
+ }>;
334
+ type: z.ZodLiteral<"input_audio">;
335
+ cache_control: z.ZodOptional<z.ZodObject<{
336
+ type: z.ZodLiteral<"ephemeral">;
337
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ type: "ephemeral";
340
+ ttl?: "5m" | "1h" | undefined;
341
+ }, {
342
+ type: "ephemeral";
343
+ ttl?: "5m" | "1h" | undefined;
344
+ }>>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ type: "input_audio";
347
+ input_audio: {
348
+ data: string;
349
+ format: "wav" | "mp3";
350
+ };
351
+ cache_control?: {
352
+ type: "ephemeral";
353
+ ttl?: "5m" | "1h" | undefined;
354
+ } | undefined;
355
+ }, {
356
+ type: "input_audio";
357
+ input_audio: {
358
+ data: string;
359
+ format: "wav" | "mp3";
360
+ };
361
+ cache_control?: {
362
+ type: "ephemeral";
363
+ ttl?: "5m" | "1h" | undefined;
364
+ } | undefined;
323
365
  }>, z.ZodObject<{
324
366
  file: z.ZodObject<{
325
367
  file_data: z.ZodOptional<z.ZodString>;
@@ -389,6 +431,16 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
389
431
  type: "ephemeral";
390
432
  ttl?: "5m" | "1h" | undefined;
391
433
  } | undefined;
434
+ } | {
435
+ type: "input_audio";
436
+ input_audio: {
437
+ data: string;
438
+ format: "wav" | "mp3";
439
+ };
440
+ cache_control?: {
441
+ type: "ephemeral";
442
+ ttl?: "5m" | "1h" | undefined;
443
+ } | undefined;
392
444
  } | {
393
445
  type: "file";
394
446
  file: {
@@ -421,6 +473,16 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
421
473
  type: "ephemeral";
422
474
  ttl?: "5m" | "1h" | undefined;
423
475
  } | undefined;
476
+ } | {
477
+ type: "input_audio";
478
+ input_audio: {
479
+ data: string;
480
+ format: "wav" | "mp3";
481
+ };
482
+ cache_control?: {
483
+ type: "ephemeral";
484
+ ttl?: "5m" | "1h" | undefined;
485
+ } | undefined;
424
486
  } | {
425
487
  type: "file";
426
488
  file: {
@@ -822,6 +884,48 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
822
884
  type: "ephemeral";
823
885
  ttl?: "5m" | "1h" | undefined;
824
886
  } | undefined;
887
+ }>, z.ZodObject<{
888
+ input_audio: z.ZodObject<{
889
+ data: z.ZodString;
890
+ format: z.ZodEnum<["wav", "mp3"]>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ data: string;
893
+ format: "wav" | "mp3";
894
+ }, {
895
+ data: string;
896
+ format: "wav" | "mp3";
897
+ }>;
898
+ type: z.ZodLiteral<"input_audio">;
899
+ cache_control: z.ZodOptional<z.ZodObject<{
900
+ type: z.ZodLiteral<"ephemeral">;
901
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
902
+ }, "strip", z.ZodTypeAny, {
903
+ type: "ephemeral";
904
+ ttl?: "5m" | "1h" | undefined;
905
+ }, {
906
+ type: "ephemeral";
907
+ ttl?: "5m" | "1h" | undefined;
908
+ }>>;
909
+ }, "strip", z.ZodTypeAny, {
910
+ type: "input_audio";
911
+ input_audio: {
912
+ data: string;
913
+ format: "wav" | "mp3";
914
+ };
915
+ cache_control?: {
916
+ type: "ephemeral";
917
+ ttl?: "5m" | "1h" | undefined;
918
+ } | undefined;
919
+ }, {
920
+ type: "input_audio";
921
+ input_audio: {
922
+ data: string;
923
+ format: "wav" | "mp3";
924
+ };
925
+ cache_control?: {
926
+ type: "ephemeral";
927
+ ttl?: "5m" | "1h" | undefined;
928
+ } | undefined;
825
929
  }>, z.ZodObject<{
826
930
  file: z.ZodObject<{
827
931
  file_data: z.ZodOptional<z.ZodString>;
@@ -891,6 +995,16 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
891
995
  type: "ephemeral";
892
996
  ttl?: "5m" | "1h" | undefined;
893
997
  } | undefined;
998
+ } | {
999
+ type: "input_audio";
1000
+ input_audio: {
1001
+ data: string;
1002
+ format: "wav" | "mp3";
1003
+ };
1004
+ cache_control?: {
1005
+ type: "ephemeral";
1006
+ ttl?: "5m" | "1h" | undefined;
1007
+ } | undefined;
894
1008
  } | {
895
1009
  type: "file";
896
1010
  file: {
@@ -923,6 +1037,16 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
923
1037
  type: "ephemeral";
924
1038
  ttl?: "5m" | "1h" | undefined;
925
1039
  } | undefined;
1040
+ } | {
1041
+ type: "input_audio";
1042
+ input_audio: {
1043
+ data: string;
1044
+ format: "wav" | "mp3";
1045
+ };
1046
+ cache_control?: {
1047
+ type: "ephemeral";
1048
+ ttl?: "5m" | "1h" | undefined;
1049
+ } | undefined;
926
1050
  } | {
927
1051
  type: "file";
928
1052
  file: {
@@ -1371,6 +1495,48 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
1371
1495
  type: "ephemeral";
1372
1496
  ttl?: "5m" | "1h" | undefined;
1373
1497
  } | undefined;
1498
+ }>, z.ZodObject<{
1499
+ input_audio: z.ZodObject<{
1500
+ data: z.ZodString;
1501
+ format: z.ZodEnum<["wav", "mp3"]>;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ data: string;
1504
+ format: "wav" | "mp3";
1505
+ }, {
1506
+ data: string;
1507
+ format: "wav" | "mp3";
1508
+ }>;
1509
+ type: z.ZodLiteral<"input_audio">;
1510
+ cache_control: z.ZodOptional<z.ZodObject<{
1511
+ type: z.ZodLiteral<"ephemeral">;
1512
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ type: "ephemeral";
1515
+ ttl?: "5m" | "1h" | undefined;
1516
+ }, {
1517
+ type: "ephemeral";
1518
+ ttl?: "5m" | "1h" | undefined;
1519
+ }>>;
1520
+ }, "strip", z.ZodTypeAny, {
1521
+ type: "input_audio";
1522
+ input_audio: {
1523
+ data: string;
1524
+ format: "wav" | "mp3";
1525
+ };
1526
+ cache_control?: {
1527
+ type: "ephemeral";
1528
+ ttl?: "5m" | "1h" | undefined;
1529
+ } | undefined;
1530
+ }, {
1531
+ type: "input_audio";
1532
+ input_audio: {
1533
+ data: string;
1534
+ format: "wav" | "mp3";
1535
+ };
1536
+ cache_control?: {
1537
+ type: "ephemeral";
1538
+ ttl?: "5m" | "1h" | undefined;
1539
+ } | undefined;
1374
1540
  }>, z.ZodObject<{
1375
1541
  file: z.ZodObject<{
1376
1542
  file_data: z.ZodOptional<z.ZodString>;
@@ -1440,6 +1606,16 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
1440
1606
  type: "ephemeral";
1441
1607
  ttl?: "5m" | "1h" | undefined;
1442
1608
  } | undefined;
1609
+ } | {
1610
+ type: "input_audio";
1611
+ input_audio: {
1612
+ data: string;
1613
+ format: "wav" | "mp3";
1614
+ };
1615
+ cache_control?: {
1616
+ type: "ephemeral";
1617
+ ttl?: "5m" | "1h" | undefined;
1618
+ } | undefined;
1443
1619
  } | {
1444
1620
  type: "file";
1445
1621
  file: {
@@ -1472,6 +1648,16 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
1472
1648
  type: "ephemeral";
1473
1649
  ttl?: "5m" | "1h" | undefined;
1474
1650
  } | undefined;
1651
+ } | {
1652
+ type: "input_audio";
1653
+ input_audio: {
1654
+ data: string;
1655
+ format: "wav" | "mp3";
1656
+ };
1657
+ cache_control?: {
1658
+ type: "ephemeral";
1659
+ ttl?: "5m" | "1h" | undefined;
1660
+ } | undefined;
1475
1661
  } | {
1476
1662
  type: "file";
1477
1663
  file: {
@@ -1782,6 +1968,16 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
1782
1968
  type: "ephemeral";
1783
1969
  ttl?: "5m" | "1h" | undefined;
1784
1970
  } | undefined;
1971
+ } | {
1972
+ type: "input_audio";
1973
+ input_audio: {
1974
+ data: string;
1975
+ format: "wav" | "mp3";
1976
+ };
1977
+ cache_control?: {
1978
+ type: "ephemeral";
1979
+ ttl?: "5m" | "1h" | undefined;
1980
+ } | undefined;
1785
1981
  } | {
1786
1982
  type: "file";
1787
1983
  file: {
@@ -1886,6 +2082,16 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
1886
2082
  type: "ephemeral";
1887
2083
  ttl?: "5m" | "1h" | undefined;
1888
2084
  } | undefined;
2085
+ } | {
2086
+ type: "input_audio";
2087
+ input_audio: {
2088
+ data: string;
2089
+ format: "wav" | "mp3";
2090
+ };
2091
+ cache_control?: {
2092
+ type: "ephemeral";
2093
+ ttl?: "5m" | "1h" | undefined;
2094
+ } | undefined;
1889
2095
  } | {
1890
2096
  type: "file";
1891
2097
  file: {
@@ -2095,6 +2301,48 @@ declare const PromptData: z.ZodObject<{
2095
2301
  type: "ephemeral";
2096
2302
  ttl?: "5m" | "1h" | undefined;
2097
2303
  } | undefined;
2304
+ }>, z.ZodObject<{
2305
+ input_audio: z.ZodObject<{
2306
+ data: z.ZodString;
2307
+ format: z.ZodEnum<["wav", "mp3"]>;
2308
+ }, "strip", z.ZodTypeAny, {
2309
+ data: string;
2310
+ format: "wav" | "mp3";
2311
+ }, {
2312
+ data: string;
2313
+ format: "wav" | "mp3";
2314
+ }>;
2315
+ type: z.ZodLiteral<"input_audio">;
2316
+ cache_control: z.ZodOptional<z.ZodObject<{
2317
+ type: z.ZodLiteral<"ephemeral">;
2318
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
2319
+ }, "strip", z.ZodTypeAny, {
2320
+ type: "ephemeral";
2321
+ ttl?: "5m" | "1h" | undefined;
2322
+ }, {
2323
+ type: "ephemeral";
2324
+ ttl?: "5m" | "1h" | undefined;
2325
+ }>>;
2326
+ }, "strip", z.ZodTypeAny, {
2327
+ type: "input_audio";
2328
+ input_audio: {
2329
+ data: string;
2330
+ format: "wav" | "mp3";
2331
+ };
2332
+ cache_control?: {
2333
+ type: "ephemeral";
2334
+ ttl?: "5m" | "1h" | undefined;
2335
+ } | undefined;
2336
+ }, {
2337
+ type: "input_audio";
2338
+ input_audio: {
2339
+ data: string;
2340
+ format: "wav" | "mp3";
2341
+ };
2342
+ cache_control?: {
2343
+ type: "ephemeral";
2344
+ ttl?: "5m" | "1h" | undefined;
2345
+ } | undefined;
2098
2346
  }>, z.ZodObject<{
2099
2347
  file: z.ZodObject<{
2100
2348
  file_data: z.ZodOptional<z.ZodString>;
@@ -2164,6 +2412,16 @@ declare const PromptData: z.ZodObject<{
2164
2412
  type: "ephemeral";
2165
2413
  ttl?: "5m" | "1h" | undefined;
2166
2414
  } | undefined;
2415
+ } | {
2416
+ type: "input_audio";
2417
+ input_audio: {
2418
+ data: string;
2419
+ format: "wav" | "mp3";
2420
+ };
2421
+ cache_control?: {
2422
+ type: "ephemeral";
2423
+ ttl?: "5m" | "1h" | undefined;
2424
+ } | undefined;
2167
2425
  } | {
2168
2426
  type: "file";
2169
2427
  file: {
@@ -2196,6 +2454,16 @@ declare const PromptData: z.ZodObject<{
2196
2454
  type: "ephemeral";
2197
2455
  ttl?: "5m" | "1h" | undefined;
2198
2456
  } | undefined;
2457
+ } | {
2458
+ type: "input_audio";
2459
+ input_audio: {
2460
+ data: string;
2461
+ format: "wav" | "mp3";
2462
+ };
2463
+ cache_control?: {
2464
+ type: "ephemeral";
2465
+ ttl?: "5m" | "1h" | undefined;
2466
+ } | undefined;
2199
2467
  } | {
2200
2468
  type: "file";
2201
2469
  file: {
@@ -2506,6 +2774,16 @@ declare const PromptData: z.ZodObject<{
2506
2774
  type: "ephemeral";
2507
2775
  ttl?: "5m" | "1h" | undefined;
2508
2776
  } | undefined;
2777
+ } | {
2778
+ type: "input_audio";
2779
+ input_audio: {
2780
+ data: string;
2781
+ format: "wav" | "mp3";
2782
+ };
2783
+ cache_control?: {
2784
+ type: "ephemeral";
2785
+ ttl?: "5m" | "1h" | undefined;
2786
+ } | undefined;
2509
2787
  } | {
2510
2788
  type: "file";
2511
2789
  file: {
@@ -2610,6 +2888,16 @@ declare const PromptData: z.ZodObject<{
2610
2888
  type: "ephemeral";
2611
2889
  ttl?: "5m" | "1h" | undefined;
2612
2890
  } | undefined;
2891
+ } | {
2892
+ type: "input_audio";
2893
+ input_audio: {
2894
+ data: string;
2895
+ format: "wav" | "mp3";
2896
+ };
2897
+ cache_control?: {
2898
+ type: "ephemeral";
2899
+ ttl?: "5m" | "1h" | undefined;
2900
+ } | undefined;
2613
2901
  } | {
2614
2902
  type: "file";
2615
2903
  file: {
@@ -3569,6 +3857,16 @@ declare const PromptData: z.ZodObject<{
3569
3857
  type: "ephemeral";
3570
3858
  ttl?: "5m" | "1h" | undefined;
3571
3859
  } | undefined;
3860
+ } | {
3861
+ type: "input_audio";
3862
+ input_audio: {
3863
+ data: string;
3864
+ format: "wav" | "mp3";
3865
+ };
3866
+ cache_control?: {
3867
+ type: "ephemeral";
3868
+ ttl?: "5m" | "1h" | undefined;
3869
+ } | undefined;
3572
3870
  } | {
3573
3871
  type: "file";
3574
3872
  file: {
@@ -3846,6 +4144,16 @@ declare const PromptData: z.ZodObject<{
3846
4144
  type: "ephemeral";
3847
4145
  ttl?: "5m" | "1h" | undefined;
3848
4146
  } | undefined;
4147
+ } | {
4148
+ type: "input_audio";
4149
+ input_audio: {
4150
+ data: string;
4151
+ format: "wav" | "mp3";
4152
+ };
4153
+ cache_control?: {
4154
+ type: "ephemeral";
4155
+ ttl?: "5m" | "1h" | undefined;
4156
+ } | undefined;
3849
4157
  } | {
3850
4158
  type: "file";
3851
4159
  file: {
@@ -4137,6 +4445,48 @@ declare const Prompt$1: z.ZodObject<{
4137
4445
  type: "ephemeral";
4138
4446
  ttl?: "5m" | "1h" | undefined;
4139
4447
  } | undefined;
4448
+ }>, z.ZodObject<{
4449
+ input_audio: z.ZodObject<{
4450
+ data: z.ZodString;
4451
+ format: z.ZodEnum<["wav", "mp3"]>;
4452
+ }, "strip", z.ZodTypeAny, {
4453
+ data: string;
4454
+ format: "wav" | "mp3";
4455
+ }, {
4456
+ data: string;
4457
+ format: "wav" | "mp3";
4458
+ }>;
4459
+ type: z.ZodLiteral<"input_audio">;
4460
+ cache_control: z.ZodOptional<z.ZodObject<{
4461
+ type: z.ZodLiteral<"ephemeral">;
4462
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
4463
+ }, "strip", z.ZodTypeAny, {
4464
+ type: "ephemeral";
4465
+ ttl?: "5m" | "1h" | undefined;
4466
+ }, {
4467
+ type: "ephemeral";
4468
+ ttl?: "5m" | "1h" | undefined;
4469
+ }>>;
4470
+ }, "strip", z.ZodTypeAny, {
4471
+ type: "input_audio";
4472
+ input_audio: {
4473
+ data: string;
4474
+ format: "wav" | "mp3";
4475
+ };
4476
+ cache_control?: {
4477
+ type: "ephemeral";
4478
+ ttl?: "5m" | "1h" | undefined;
4479
+ } | undefined;
4480
+ }, {
4481
+ type: "input_audio";
4482
+ input_audio: {
4483
+ data: string;
4484
+ format: "wav" | "mp3";
4485
+ };
4486
+ cache_control?: {
4487
+ type: "ephemeral";
4488
+ ttl?: "5m" | "1h" | undefined;
4489
+ } | undefined;
4140
4490
  }>, z.ZodObject<{
4141
4491
  file: z.ZodObject<{
4142
4492
  file_data: z.ZodOptional<z.ZodString>;
@@ -4206,6 +4556,16 @@ declare const Prompt$1: z.ZodObject<{
4206
4556
  type: "ephemeral";
4207
4557
  ttl?: "5m" | "1h" | undefined;
4208
4558
  } | undefined;
4559
+ } | {
4560
+ type: "input_audio";
4561
+ input_audio: {
4562
+ data: string;
4563
+ format: "wav" | "mp3";
4564
+ };
4565
+ cache_control?: {
4566
+ type: "ephemeral";
4567
+ ttl?: "5m" | "1h" | undefined;
4568
+ } | undefined;
4209
4569
  } | {
4210
4570
  type: "file";
4211
4571
  file: {
@@ -4238,6 +4598,16 @@ declare const Prompt$1: z.ZodObject<{
4238
4598
  type: "ephemeral";
4239
4599
  ttl?: "5m" | "1h" | undefined;
4240
4600
  } | undefined;
4601
+ } | {
4602
+ type: "input_audio";
4603
+ input_audio: {
4604
+ data: string;
4605
+ format: "wav" | "mp3";
4606
+ };
4607
+ cache_control?: {
4608
+ type: "ephemeral";
4609
+ ttl?: "5m" | "1h" | undefined;
4610
+ } | undefined;
4241
4611
  } | {
4242
4612
  type: "file";
4243
4613
  file: {
@@ -4548,6 +4918,16 @@ declare const Prompt$1: z.ZodObject<{
4548
4918
  type: "ephemeral";
4549
4919
  ttl?: "5m" | "1h" | undefined;
4550
4920
  } | undefined;
4921
+ } | {
4922
+ type: "input_audio";
4923
+ input_audio: {
4924
+ data: string;
4925
+ format: "wav" | "mp3";
4926
+ };
4927
+ cache_control?: {
4928
+ type: "ephemeral";
4929
+ ttl?: "5m" | "1h" | undefined;
4930
+ } | undefined;
4551
4931
  } | {
4552
4932
  type: "file";
4553
4933
  file: {
@@ -4652,6 +5032,16 @@ declare const Prompt$1: z.ZodObject<{
4652
5032
  type: "ephemeral";
4653
5033
  ttl?: "5m" | "1h" | undefined;
4654
5034
  } | undefined;
5035
+ } | {
5036
+ type: "input_audio";
5037
+ input_audio: {
5038
+ data: string;
5039
+ format: "wav" | "mp3";
5040
+ };
5041
+ cache_control?: {
5042
+ type: "ephemeral";
5043
+ ttl?: "5m" | "1h" | undefined;
5044
+ } | undefined;
4655
5045
  } | {
4656
5046
  type: "file";
4657
5047
  file: {
@@ -5611,6 +6001,16 @@ declare const Prompt$1: z.ZodObject<{
5611
6001
  type: "ephemeral";
5612
6002
  ttl?: "5m" | "1h" | undefined;
5613
6003
  } | undefined;
6004
+ } | {
6005
+ type: "input_audio";
6006
+ input_audio: {
6007
+ data: string;
6008
+ format: "wav" | "mp3";
6009
+ };
6010
+ cache_control?: {
6011
+ type: "ephemeral";
6012
+ ttl?: "5m" | "1h" | undefined;
6013
+ } | undefined;
5614
6014
  } | {
5615
6015
  type: "file";
5616
6016
  file: {
@@ -5888,6 +6288,16 @@ declare const Prompt$1: z.ZodObject<{
5888
6288
  type: "ephemeral";
5889
6289
  ttl?: "5m" | "1h" | undefined;
5890
6290
  } | undefined;
6291
+ } | {
6292
+ type: "input_audio";
6293
+ input_audio: {
6294
+ data: string;
6295
+ format: "wav" | "mp3";
6296
+ };
6297
+ cache_control?: {
6298
+ type: "ephemeral";
6299
+ ttl?: "5m" | "1h" | undefined;
6300
+ } | undefined;
5891
6301
  } | {
5892
6302
  type: "file";
5893
6303
  file: {
@@ -6182,6 +6592,16 @@ declare const Prompt$1: z.ZodObject<{
6182
6592
  type: "ephemeral";
6183
6593
  ttl?: "5m" | "1h" | undefined;
6184
6594
  } | undefined;
6595
+ } | {
6596
+ type: "input_audio";
6597
+ input_audio: {
6598
+ data: string;
6599
+ format: "wav" | "mp3";
6600
+ };
6601
+ cache_control?: {
6602
+ type: "ephemeral";
6603
+ ttl?: "5m" | "1h" | undefined;
6604
+ } | undefined;
6185
6605
  } | {
6186
6606
  type: "file";
6187
6607
  file: {
@@ -6473,6 +6893,16 @@ declare const Prompt$1: z.ZodObject<{
6473
6893
  type: "ephemeral";
6474
6894
  ttl?: "5m" | "1h" | undefined;
6475
6895
  } | undefined;
6896
+ } | {
6897
+ type: "input_audio";
6898
+ input_audio: {
6899
+ data: string;
6900
+ format: "wav" | "mp3";
6901
+ };
6902
+ cache_control?: {
6903
+ type: "ephemeral";
6904
+ ttl?: "5m" | "1h" | undefined;
6905
+ } | undefined;
6476
6906
  } | {
6477
6907
  type: "file";
6478
6908
  file: {
@@ -6888,6 +7318,7 @@ interface InstrumentationIntegrationsConfig {
6888
7318
  aisdk?: boolean;
6889
7319
  google?: boolean;
6890
7320
  googleGenAI?: boolean;
7321
+ googleGenerativeAI?: boolean;
6891
7322
  googleADK?: boolean;
6892
7323
  huggingface?: boolean;
6893
7324
  claudeAgentSDK?: boolean;
@@ -6915,8 +7346,10 @@ interface InstrumentationIntegrationsConfig {
6915
7346
  cloudflareAgents?: boolean;
6916
7347
  langchain?: boolean;
6917
7348
  langgraph?: boolean;
7349
+ langgraphSDK?: boolean;
6918
7350
  langsmith?: boolean;
6919
7351
  voyageai?: boolean;
7352
+ elevenlabs?: boolean;
6920
7353
  }
6921
7354
  interface InstrumentationConfig {
6922
7355
  /**
@@ -6958,12 +7391,14 @@ declare class BraintrustPlugin extends BasePlugin {
6958
7391
  private cloudflareThinkPlugin;
6959
7392
  private cursorSDKPlugin;
6960
7393
  private openAIAgentsPlugin;
7394
+ private googleGenerativeAIPlugin;
6961
7395
  private googleGenAIPlugin;
6962
7396
  private huggingFacePlugin;
6963
7397
  private huggingFaceTransformersPlugin;
6964
7398
  private openRouterPlugin;
6965
7399
  private openRouterAgentPlugin;
6966
7400
  private mistralPlugin;
7401
+ private langGraphSDKPlugin;
6967
7402
  private ollamaPlugin;
6968
7403
  private googleADKPlugin;
6969
7404
  private coherePlugin;
@@ -6976,6 +7411,7 @@ declare class BraintrustPlugin extends BasePlugin {
6976
7411
  private langSmithPlugin;
6977
7412
  private piCodingAgentPlugin;
6978
7413
  private strandsAgentSDKPlugin;
7414
+ private elevenLabsPlugin;
6979
7415
  private voyageAIPlugin;
6980
7416
  private cloudflareAIChatPlugin;
6981
7417
  private cloudflareAgentsPlugin;
@@ -9638,248 +10074,6 @@ type EveJsonValue = null | boolean | number | string | EveJsonValue[] | {
9638
10074
  type EveJsonObject = {
9639
10075
  readonly [key: string]: EveJsonValue;
9640
10076
  };
9641
- interface EveHookContext {
9642
- readonly session: {
9643
- readonly id: string;
9644
- readonly parent?: {
9645
- readonly callId?: string;
9646
- readonly sessionId?: string;
9647
- readonly turn?: {
9648
- readonly id?: string;
9649
- };
9650
- };
9651
- };
9652
- }
9653
- type EveAssistantStepFinishReason = "content-filter" | "error" | "length" | "other" | "stop" | "tool-calls";
9654
- interface EveStreamEventMeta {
9655
- readonly at: string;
9656
- }
9657
- interface EveRuntimeToolCallActionRequest {
9658
- readonly callId: string;
9659
- readonly input: EveJsonObject;
9660
- readonly kind: "tool-call";
9661
- readonly toolName: string;
9662
- }
9663
- interface EveRuntimeToolResultActionResult {
9664
- readonly callId: string;
9665
- readonly isError?: boolean;
9666
- readonly kind: "tool-result";
9667
- readonly output: EveJsonValue;
9668
- readonly toolName: string;
9669
- }
9670
- type EveRuntimeActionRequest = EveRuntimeToolCallActionRequest | {
9671
- readonly callId: string;
9672
- readonly input?: EveJsonObject;
9673
- readonly kind: "load-skill" | "remote-agent-call";
9674
- readonly name?: string;
9675
- } | {
9676
- readonly callId: string;
9677
- readonly input: EveJsonObject;
9678
- readonly kind: "subagent-call";
9679
- readonly name?: string;
9680
- readonly subagentName?: string;
9681
- };
9682
- type EveRuntimeActionResult = EveRuntimeToolResultActionResult | {
9683
- readonly callId: string;
9684
- readonly isError?: boolean;
9685
- readonly kind: "load-skill-result";
9686
- readonly output?: EveJsonValue;
9687
- readonly name?: string;
9688
- } | {
9689
- readonly callId: string;
9690
- readonly isError?: boolean;
9691
- readonly kind: "subagent-result";
9692
- readonly output?: EveJsonValue;
9693
- readonly subagentName?: string;
9694
- };
9695
- type EveActionResultStatus = "completed" | "failed" | "rejected";
9696
- interface EveActionResultError {
9697
- readonly code: string;
9698
- readonly message: string;
9699
- }
9700
- type EveHandleMessageStreamEvent = {
9701
- readonly data: {
9702
- readonly invocation?: unknown;
9703
- readonly runtime?: {
9704
- readonly agentId: string;
9705
- readonly agentName?: string;
9706
- readonly eveVersion: string;
9707
- readonly modelId: string;
9708
- };
9709
- };
9710
- readonly meta?: EveStreamEventMeta;
9711
- readonly type: "session.started";
9712
- } | {
9713
- readonly data: {
9714
- readonly sequence: number;
9715
- readonly turnId: string;
9716
- };
9717
- readonly meta?: EveStreamEventMeta;
9718
- readonly type: "turn.started";
9719
- } | {
9720
- readonly data: {
9721
- readonly sequence: number;
9722
- readonly turnId: string;
9723
- };
9724
- readonly meta?: EveStreamEventMeta;
9725
- readonly type: "turn.completed";
9726
- } | {
9727
- readonly data: {
9728
- readonly message: string;
9729
- readonly sequence: number;
9730
- readonly turnId: string;
9731
- };
9732
- readonly meta?: EveStreamEventMeta;
9733
- readonly type: "message.received";
9734
- } | {
9735
- readonly data: {
9736
- readonly finishReason: EveAssistantStepFinishReason;
9737
- readonly message: string | null;
9738
- readonly sequence: number;
9739
- readonly stepIndex: number;
9740
- readonly turnId: string;
9741
- };
9742
- readonly meta?: EveStreamEventMeta;
9743
- readonly type: "message.completed";
9744
- } | {
9745
- readonly data: {
9746
- readonly reasoning: string;
9747
- readonly sequence: number;
9748
- readonly stepIndex: number;
9749
- readonly turnId: string;
9750
- };
9751
- readonly meta?: EveStreamEventMeta;
9752
- readonly type: "reasoning.completed";
9753
- } | {
9754
- readonly data: {
9755
- readonly result: EveJsonValue;
9756
- readonly sequence: number;
9757
- readonly stepIndex: number;
9758
- readonly turnId: string;
9759
- };
9760
- readonly meta?: EveStreamEventMeta;
9761
- readonly type: "result.completed";
9762
- } | {
9763
- readonly data: {
9764
- readonly sequence: number;
9765
- readonly stepIndex: number;
9766
- readonly turnId: string;
9767
- };
9768
- readonly meta?: EveStreamEventMeta;
9769
- readonly type: "step.started";
9770
- } | {
9771
- readonly data: {
9772
- readonly finishReason: EveAssistantStepFinishReason;
9773
- readonly providerMetadata?: {
9774
- readonly gateway?: {
9775
- readonly generationId?: string;
9776
- };
9777
- };
9778
- readonly sequence: number;
9779
- readonly stepIndex: number;
9780
- readonly turnId: string;
9781
- readonly usage?: {
9782
- readonly cacheReadTokens?: number;
9783
- readonly cacheWriteTokens?: number;
9784
- readonly costUsd?: number;
9785
- readonly inputTokens?: number;
9786
- readonly outputTokens?: number;
9787
- };
9788
- };
9789
- readonly meta?: EveStreamEventMeta;
9790
- readonly type: "step.completed";
9791
- } | {
9792
- readonly data: {
9793
- readonly code: string;
9794
- readonly details?: EveJsonObject;
9795
- readonly message: string;
9796
- readonly sequence: number;
9797
- readonly stepIndex: number;
9798
- readonly turnId: string;
9799
- };
9800
- readonly meta?: EveStreamEventMeta;
9801
- readonly type: "step.failed";
9802
- } | {
9803
- readonly data: {
9804
- readonly actions: readonly EveRuntimeActionRequest[];
9805
- readonly sequence: number;
9806
- readonly stepIndex: number;
9807
- readonly turnId: string;
9808
- };
9809
- readonly meta?: EveStreamEventMeta;
9810
- readonly type: "actions.requested";
9811
- } | {
9812
- readonly data: {
9813
- readonly error?: EveActionResultError;
9814
- readonly result: EveRuntimeActionResult;
9815
- readonly sequence: number;
9816
- readonly stepIndex: number;
9817
- readonly status: EveActionResultStatus;
9818
- readonly turnId: string;
9819
- };
9820
- readonly meta?: EveStreamEventMeta;
9821
- readonly type: "action.result";
9822
- } | {
9823
- readonly data: {
9824
- readonly callId: string;
9825
- readonly childSessionId: string;
9826
- readonly name: string;
9827
- readonly remote?: {
9828
- readonly url?: string;
9829
- };
9830
- readonly sequence: number;
9831
- readonly toolName?: string;
9832
- readonly turnId: string;
9833
- };
9834
- readonly meta?: EveStreamEventMeta;
9835
- readonly type: "subagent.called";
9836
- } | {
9837
- readonly data: {
9838
- readonly callId: string;
9839
- readonly error?: EveActionResultError;
9840
- readonly output?: EveJsonValue;
9841
- readonly sequence: number;
9842
- readonly status?: EveActionResultStatus;
9843
- readonly subagentName: string;
9844
- readonly turnId: string;
9845
- };
9846
- readonly meta?: EveStreamEventMeta;
9847
- readonly type: "subagent.completed";
9848
- } | {
9849
- readonly data: {
9850
- readonly code: string;
9851
- readonly details?: EveJsonObject;
9852
- readonly message: string;
9853
- readonly sequence: number;
9854
- readonly turnId: string;
9855
- };
9856
- readonly meta?: EveStreamEventMeta;
9857
- readonly type: "turn.failed";
9858
- } | {
9859
- readonly data: {
9860
- readonly code: string;
9861
- readonly details?: EveJsonObject;
9862
- readonly message: string;
9863
- readonly sessionId: string;
9864
- };
9865
- readonly meta?: EveStreamEventMeta;
9866
- readonly type: "session.failed";
9867
- } | {
9868
- readonly data: {
9869
- readonly wait: "next-user-message";
9870
- };
9871
- readonly meta?: EveStreamEventMeta;
9872
- readonly type: "session.waiting";
9873
- } | {
9874
- readonly meta?: EveStreamEventMeta;
9875
- readonly type: "session.completed";
9876
- };
9877
- interface EveHookDefinition {
9878
- readonly events?: {
9879
- readonly "*"?: (event: EveHandleMessageStreamEvent, ctx: EveHookContext) => void | Promise<void>;
9880
- readonly [eventType: string]: ((event: EveHandleMessageStreamEvent, ctx: EveHookContext) => void | Promise<void>) | undefined;
9881
- };
9882
- }
9883
10077
  interface EveInstrumentationSetupContext {
9884
10078
  readonly agentName: string;
9885
10079
  }
@@ -10222,7 +10416,7 @@ type EveDefineState = <T>(name: string, initial: () => T) => EveStateHandle<T>;
10222
10416
  declare function braintrustEveHook(options: {
10223
10417
  defineState: EveDefineState;
10224
10418
  metadata?: Record<string, unknown>;
10225
- }): EveHookDefinition;
10419
+ }): any;
10226
10420
 
10227
10421
  type EveProviderInstrumentationOptions = {
10228
10422
  metadata?: Record<string, unknown>;
@@ -10236,11 +10430,11 @@ type EveProviderInstrumentationOptions = {
10236
10430
  * lifecycle and enable `experimental.instrumentationProviders` on the agent.
10237
10431
  * The result is ready to export directly from the instrumentation module.
10238
10432
  */
10239
- declare function braintrustEveInstrumentation(options: EveProviderInstrumentationOptions): EveProviderDefinition;
10433
+ declare function braintrustEveInstrumentation(options: EveProviderInstrumentationOptions): any;
10240
10434
  declare function braintrustEveInstrumentation(options: {
10241
10435
  defineState: EveDefineState;
10242
10436
  setup?: EveInstrumentationDefinition["setup"];
10243
- }): EveInstrumentationDefinition;
10437
+ }): any;
10244
10438
 
10245
10439
  /**
10246
10440
  * Plugin registry and configuration for auto-instrumentation.