braintrust 3.9.0 → 3.11.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 (46) hide show
  1. package/dev/dist/index.d.mts +157 -3
  2. package/dev/dist/index.d.ts +157 -3
  3. package/dev/dist/index.js +10819 -7204
  4. package/dev/dist/index.mjs +7458 -3843
  5. package/dist/auto-instrumentations/bundler/esbuild.cjs +686 -1
  6. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  7. package/dist/auto-instrumentations/bundler/rollup.cjs +686 -1
  8. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/vite.cjs +686 -1
  10. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  11. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +634 -0
  12. package/dist/auto-instrumentations/bundler/webpack.cjs +686 -1
  13. package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
  14. package/dist/auto-instrumentations/{chunk-KIMMUFAK.mjs → chunk-DIV5TO4S.mjs} +679 -1
  15. package/dist/auto-instrumentations/{chunk-G7F6HZGE.mjs → chunk-G6ZWXGZB.mjs} +19 -2
  16. package/dist/auto-instrumentations/{chunk-ITP7RAUY.mjs → chunk-MWZXZQUO.mjs} +23 -1
  17. package/dist/auto-instrumentations/hook.mjs +793 -11
  18. package/dist/auto-instrumentations/index.cjs +774 -7
  19. package/dist/auto-instrumentations/index.d.mts +18 -1
  20. package/dist/auto-instrumentations/index.d.ts +18 -1
  21. package/dist/auto-instrumentations/index.mjs +102 -8
  22. package/dist/auto-instrumentations/loader/cjs-patch.cjs +26 -1
  23. package/dist/auto-instrumentations/loader/cjs-patch.mjs +28 -1
  24. package/dist/auto-instrumentations/loader/esm-hook.mjs +16 -1
  25. package/dist/browser.d.mts +600 -265
  26. package/dist/browser.d.ts +600 -265
  27. package/dist/browser.js +6171 -1851
  28. package/dist/browser.mjs +6171 -1851
  29. package/dist/cli.js +6417 -2794
  30. package/dist/edge-light.d.mts +1 -1
  31. package/dist/edge-light.d.ts +1 -1
  32. package/dist/edge-light.js +6171 -1851
  33. package/dist/edge-light.mjs +6171 -1851
  34. package/dist/index.d.mts +613 -278
  35. package/dist/index.d.ts +613 -278
  36. package/dist/index.js +6507 -2187
  37. package/dist/index.mjs +6171 -1851
  38. package/dist/instrumentation/index.d.mts +19 -0
  39. package/dist/instrumentation/index.d.ts +19 -0
  40. package/dist/instrumentation/index.js +10265 -6841
  41. package/dist/instrumentation/index.mjs +10265 -6841
  42. package/dist/workerd.d.mts +1 -1
  43. package/dist/workerd.d.ts +1 -1
  44. package/dist/workerd.js +6171 -1851
  45. package/dist/workerd.mjs +6171 -1851
  46. package/package.json +16 -22
package/dist/index.d.ts CHANGED
@@ -267,10 +267,10 @@ declare const AttachmentStatus: z.ZodObject<{
267
267
  upload_status: z.ZodEnum<["uploading", "done", "error"]>;
268
268
  error_message: z.ZodOptional<z.ZodString>;
269
269
  }, "strip", z.ZodTypeAny, {
270
- upload_status: "error" | "uploading" | "done";
270
+ upload_status: "uploading" | "done" | "error";
271
271
  error_message?: string | undefined;
272
272
  }, {
273
- upload_status: "error" | "uploading" | "done";
273
+ upload_status: "uploading" | "done" | "error";
274
274
  error_message?: string | undefined;
275
275
  }>;
276
276
  type AttachmentStatusType = z.infer<typeof AttachmentStatus>;
@@ -619,6 +619,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
619
619
  id?: string | undefined;
620
620
  content?: string | undefined;
621
621
  }>, "many">>;
622
+ reasoning_signature: z.ZodOptional<z.ZodString>;
622
623
  }, "strip", z.ZodTypeAny, {
623
624
  role: "assistant";
624
625
  name?: string | undefined;
@@ -645,6 +646,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
645
646
  id?: string | undefined;
646
647
  content?: string | undefined;
647
648
  }[] | undefined;
649
+ reasoning_signature?: string | undefined;
648
650
  }, {
649
651
  role: "assistant";
650
652
  name?: string | undefined;
@@ -671,6 +673,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
671
673
  id?: string | undefined;
672
674
  content?: string | undefined;
673
675
  }[] | undefined;
676
+ reasoning_signature?: string | undefined;
674
677
  }>, z.ZodObject<{
675
678
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
676
679
  text: z.ZodDefault<z.ZodString>;
@@ -1031,6 +1034,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
1031
1034
  id?: string | undefined;
1032
1035
  content?: string | undefined;
1033
1036
  }>, "many">>;
1037
+ reasoning_signature: z.ZodOptional<z.ZodString>;
1034
1038
  }, "strip", z.ZodTypeAny, {
1035
1039
  role: "assistant";
1036
1040
  name?: string | undefined;
@@ -1057,6 +1061,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
1057
1061
  id?: string | undefined;
1058
1062
  content?: string | undefined;
1059
1063
  }[] | undefined;
1064
+ reasoning_signature?: string | undefined;
1060
1065
  }, {
1061
1066
  role: "assistant";
1062
1067
  name?: string | undefined;
@@ -1083,6 +1088,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
1083
1088
  id?: string | undefined;
1084
1089
  content?: string | undefined;
1085
1090
  }[] | undefined;
1091
+ reasoning_signature?: string | undefined;
1086
1092
  }>, z.ZodObject<{
1087
1093
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
1088
1094
  text: z.ZodDefault<z.ZodString>;
@@ -1246,6 +1252,29 @@ declare const SavedFunctionId: z.ZodUnion<[z.ZodObject<{
1246
1252
  function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
1247
1253
  }>]>;
1248
1254
  type SavedFunctionIdType = z.infer<typeof SavedFunctionId>;
1255
+ declare const DatasetSnapshot: z.ZodObject<{
1256
+ id: z.ZodString;
1257
+ dataset_id: z.ZodString;
1258
+ name: z.ZodString;
1259
+ description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
1260
+ xact_id: z.ZodString;
1261
+ created: z.ZodUnion<[z.ZodString, z.ZodNull]>;
1262
+ }, "strip", z.ZodTypeAny, {
1263
+ id: string;
1264
+ created: string | null;
1265
+ name: string;
1266
+ description: string | null;
1267
+ dataset_id: string;
1268
+ xact_id: string;
1269
+ }, {
1270
+ id: string;
1271
+ created: string | null;
1272
+ name: string;
1273
+ description: string | null;
1274
+ dataset_id: string;
1275
+ xact_id: string;
1276
+ }>;
1277
+ type DatasetSnapshotType = z.infer<typeof DatasetSnapshot>;
1249
1278
  declare const RepoInfo: z.ZodUnion<[z.ZodObject<{
1250
1279
  commit: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1251
1280
  branch: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -1875,6 +1904,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
1875
1904
  id?: string | undefined;
1876
1905
  content?: string | undefined;
1877
1906
  }>, "many">>;
1907
+ reasoning_signature: z.ZodOptional<z.ZodString>;
1878
1908
  }, "strip", z.ZodTypeAny, {
1879
1909
  role: "assistant";
1880
1910
  name?: string | undefined;
@@ -1901,6 +1931,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
1901
1931
  id?: string | undefined;
1902
1932
  content?: string | undefined;
1903
1933
  }[] | undefined;
1934
+ reasoning_signature?: string | undefined;
1904
1935
  }, {
1905
1936
  role: "assistant";
1906
1937
  name?: string | undefined;
@@ -1927,6 +1958,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
1927
1958
  id?: string | undefined;
1928
1959
  content?: string | undefined;
1929
1960
  }[] | undefined;
1961
+ reasoning_signature?: string | undefined;
1930
1962
  }>, z.ZodObject<{
1931
1963
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
1932
1964
  text: z.ZodDefault<z.ZodString>;
@@ -2103,6 +2135,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
2103
2135
  id?: string | undefined;
2104
2136
  content?: string | undefined;
2105
2137
  }[] | undefined;
2138
+ reasoning_signature?: string | undefined;
2106
2139
  } | {
2107
2140
  role: "tool";
2108
2141
  content: string | {
@@ -2193,6 +2226,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
2193
2226
  id?: string | undefined;
2194
2227
  content?: string | undefined;
2195
2228
  }[] | undefined;
2229
+ reasoning_signature?: string | undefined;
2196
2230
  } | {
2197
2231
  role: "tool";
2198
2232
  content: string | {
@@ -2698,6 +2732,7 @@ declare const GraphNode: z.ZodUnion<[z.ZodObject<{
2698
2732
  id?: string | undefined;
2699
2733
  content?: string | undefined;
2700
2734
  }>, "many">>;
2735
+ reasoning_signature: z.ZodOptional<z.ZodString>;
2701
2736
  }, "strip", z.ZodTypeAny, {
2702
2737
  role: "assistant";
2703
2738
  name?: string | undefined;
@@ -2724,6 +2759,7 @@ declare const GraphNode: z.ZodUnion<[z.ZodObject<{
2724
2759
  id?: string | undefined;
2725
2760
  content?: string | undefined;
2726
2761
  }[] | undefined;
2762
+ reasoning_signature?: string | undefined;
2727
2763
  }, {
2728
2764
  role: "assistant";
2729
2765
  name?: string | undefined;
@@ -2750,6 +2786,7 @@ declare const GraphNode: z.ZodUnion<[z.ZodObject<{
2750
2786
  id?: string | undefined;
2751
2787
  content?: string | undefined;
2752
2788
  }[] | undefined;
2789
+ reasoning_signature?: string | undefined;
2753
2790
  }>, z.ZodObject<{
2754
2791
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
2755
2792
  text: z.ZodDefault<z.ZodString>;
@@ -2926,6 +2963,7 @@ declare const GraphNode: z.ZodUnion<[z.ZodObject<{
2926
2963
  id?: string | undefined;
2927
2964
  content?: string | undefined;
2928
2965
  }[] | undefined;
2966
+ reasoning_signature?: string | undefined;
2929
2967
  } | {
2930
2968
  role: "tool";
2931
2969
  content: string | {
@@ -3016,6 +3054,7 @@ declare const GraphNode: z.ZodUnion<[z.ZodObject<{
3016
3054
  id?: string | undefined;
3017
3055
  content?: string | undefined;
3018
3056
  }[] | undefined;
3057
+ reasoning_signature?: string | undefined;
3019
3058
  } | {
3020
3059
  role: "tool";
3021
3060
  content: string | {
@@ -3118,6 +3157,7 @@ declare const GraphNode: z.ZodUnion<[z.ZodObject<{
3118
3157
  id?: string | undefined;
3119
3158
  content?: string | undefined;
3120
3159
  }[] | undefined;
3160
+ reasoning_signature?: string | undefined;
3121
3161
  } | {
3122
3162
  role: "tool";
3123
3163
  content: string | {
@@ -3219,6 +3259,7 @@ declare const GraphNode: z.ZodUnion<[z.ZodObject<{
3219
3259
  id?: string | undefined;
3220
3260
  content?: string | undefined;
3221
3261
  }[] | undefined;
3262
+ reasoning_signature?: string | undefined;
3222
3263
  } | {
3223
3264
  role: "tool";
3224
3265
  content: string | {
@@ -3770,6 +3811,7 @@ declare const GraphData: z.ZodObject<{
3770
3811
  id?: string | undefined;
3771
3812
  content?: string | undefined;
3772
3813
  }>, "many">>;
3814
+ reasoning_signature: z.ZodOptional<z.ZodString>;
3773
3815
  }, "strip", z.ZodTypeAny, {
3774
3816
  role: "assistant";
3775
3817
  name?: string | undefined;
@@ -3796,6 +3838,7 @@ declare const GraphData: z.ZodObject<{
3796
3838
  id?: string | undefined;
3797
3839
  content?: string | undefined;
3798
3840
  }[] | undefined;
3841
+ reasoning_signature?: string | undefined;
3799
3842
  }, {
3800
3843
  role: "assistant";
3801
3844
  name?: string | undefined;
@@ -3822,6 +3865,7 @@ declare const GraphData: z.ZodObject<{
3822
3865
  id?: string | undefined;
3823
3866
  content?: string | undefined;
3824
3867
  }[] | undefined;
3868
+ reasoning_signature?: string | undefined;
3825
3869
  }>, z.ZodObject<{
3826
3870
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
3827
3871
  text: z.ZodDefault<z.ZodString>;
@@ -3998,6 +4042,7 @@ declare const GraphData: z.ZodObject<{
3998
4042
  id?: string | undefined;
3999
4043
  content?: string | undefined;
4000
4044
  }[] | undefined;
4045
+ reasoning_signature?: string | undefined;
4001
4046
  } | {
4002
4047
  role: "tool";
4003
4048
  content: string | {
@@ -4088,6 +4133,7 @@ declare const GraphData: z.ZodObject<{
4088
4133
  id?: string | undefined;
4089
4134
  content?: string | undefined;
4090
4135
  }[] | undefined;
4136
+ reasoning_signature?: string | undefined;
4091
4137
  } | {
4092
4138
  role: "tool";
4093
4139
  content: string | {
@@ -4190,6 +4236,7 @@ declare const GraphData: z.ZodObject<{
4190
4236
  id?: string | undefined;
4191
4237
  content?: string | undefined;
4192
4238
  }[] | undefined;
4239
+ reasoning_signature?: string | undefined;
4193
4240
  } | {
4194
4241
  role: "tool";
4195
4242
  content: string | {
@@ -4291,6 +4338,7 @@ declare const GraphData: z.ZodObject<{
4291
4338
  id?: string | undefined;
4292
4339
  content?: string | undefined;
4293
4340
  }[] | undefined;
4341
+ reasoning_signature?: string | undefined;
4294
4342
  } | {
4295
4343
  role: "tool";
4296
4344
  content: string | {
@@ -4493,6 +4541,7 @@ declare const GraphData: z.ZodObject<{
4493
4541
  id?: string | undefined;
4494
4542
  content?: string | undefined;
4495
4543
  }[] | undefined;
4544
+ reasoning_signature?: string | undefined;
4496
4545
  } | {
4497
4546
  role: "tool";
4498
4547
  content: string | {
@@ -4663,6 +4712,7 @@ declare const GraphData: z.ZodObject<{
4663
4712
  id?: string | undefined;
4664
4713
  content?: string | undefined;
4665
4714
  }[] | undefined;
4715
+ reasoning_signature?: string | undefined;
4666
4716
  } | {
4667
4717
  role: "tool";
4668
4718
  content: string | {
@@ -5514,6 +5564,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
5514
5564
  id?: string | undefined;
5515
5565
  content?: string | undefined;
5516
5566
  }>, "many">>;
5567
+ reasoning_signature: z.ZodOptional<z.ZodString>;
5517
5568
  }, "strip", z.ZodTypeAny, {
5518
5569
  role: "assistant";
5519
5570
  name?: string | undefined;
@@ -5540,6 +5591,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
5540
5591
  id?: string | undefined;
5541
5592
  content?: string | undefined;
5542
5593
  }[] | undefined;
5594
+ reasoning_signature?: string | undefined;
5543
5595
  }, {
5544
5596
  role: "assistant";
5545
5597
  name?: string | undefined;
@@ -5566,6 +5618,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
5566
5618
  id?: string | undefined;
5567
5619
  content?: string | undefined;
5568
5620
  }[] | undefined;
5621
+ reasoning_signature?: string | undefined;
5569
5622
  }>, z.ZodObject<{
5570
5623
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
5571
5624
  text: z.ZodDefault<z.ZodString>;
@@ -5742,6 +5795,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
5742
5795
  id?: string | undefined;
5743
5796
  content?: string | undefined;
5744
5797
  }[] | undefined;
5798
+ reasoning_signature?: string | undefined;
5745
5799
  } | {
5746
5800
  role: "tool";
5747
5801
  content: string | {
@@ -5832,6 +5886,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
5832
5886
  id?: string | undefined;
5833
5887
  content?: string | undefined;
5834
5888
  }[] | undefined;
5889
+ reasoning_signature?: string | undefined;
5835
5890
  } | {
5836
5891
  role: "tool";
5837
5892
  content: string | {
@@ -5934,6 +5989,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
5934
5989
  id?: string | undefined;
5935
5990
  content?: string | undefined;
5936
5991
  }[] | undefined;
5992
+ reasoning_signature?: string | undefined;
5937
5993
  } | {
5938
5994
  role: "tool";
5939
5995
  content: string | {
@@ -6035,6 +6091,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6035
6091
  id?: string | undefined;
6036
6092
  content?: string | undefined;
6037
6093
  }[] | undefined;
6094
+ reasoning_signature?: string | undefined;
6038
6095
  } | {
6039
6096
  role: "tool";
6040
6097
  content: string | {
@@ -6237,6 +6294,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6237
6294
  id?: string | undefined;
6238
6295
  content?: string | undefined;
6239
6296
  }[] | undefined;
6297
+ reasoning_signature?: string | undefined;
6240
6298
  } | {
6241
6299
  role: "tool";
6242
6300
  content: string | {
@@ -6407,6 +6465,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6407
6465
  id?: string | undefined;
6408
6466
  content?: string | undefined;
6409
6467
  }[] | undefined;
6468
+ reasoning_signature?: string | undefined;
6410
6469
  } | {
6411
6470
  role: "tool";
6412
6471
  content: string | {
@@ -6639,6 +6698,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6639
6698
  hierarchy_threshold?: number | undefined;
6640
6699
  naming_model?: string | undefined;
6641
6700
  }>>;
6701
+ disable_reconciliation: z.ZodOptional<z.ZodBoolean>;
6642
6702
  distance_threshold: z.ZodOptional<z.ZodNumber>;
6643
6703
  }, "strip", z.ZodTypeAny, {
6644
6704
  type: "topic_map";
@@ -6657,6 +6717,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6657
6717
  hierarchy_threshold?: number | undefined;
6658
6718
  naming_model?: string | undefined;
6659
6719
  } | undefined;
6720
+ disable_reconciliation?: boolean | undefined;
6660
6721
  distance_threshold?: number | undefined;
6661
6722
  }, {
6662
6723
  type: "topic_map";
@@ -6675,6 +6736,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6675
6736
  hierarchy_threshold?: number | undefined;
6676
6737
  naming_model?: string | undefined;
6677
6738
  } | undefined;
6739
+ disable_reconciliation?: boolean | undefined;
6678
6740
  distance_threshold?: number | undefined;
6679
6741
  }>;
6680
6742
  }, "strip", z.ZodTypeAny, {
@@ -6696,6 +6758,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6696
6758
  hierarchy_threshold?: number | undefined;
6697
6759
  naming_model?: string | undefined;
6698
6760
  } | undefined;
6761
+ disable_reconciliation?: boolean | undefined;
6699
6762
  distance_threshold?: number | undefined;
6700
6763
  };
6701
6764
  topic_map_id?: string | undefined;
@@ -6718,6 +6781,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6718
6781
  hierarchy_threshold?: number | undefined;
6719
6782
  naming_model?: string | undefined;
6720
6783
  } | undefined;
6784
+ disable_reconciliation?: boolean | undefined;
6721
6785
  distance_threshold?: number | undefined;
6722
6786
  };
6723
6787
  topic_map_id?: string | undefined;
@@ -6759,6 +6823,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6759
6823
  hierarchy_threshold?: number | undefined;
6760
6824
  naming_model?: string | undefined;
6761
6825
  } | undefined;
6826
+ disable_reconciliation?: boolean | undefined;
6762
6827
  distance_threshold?: number | undefined;
6763
6828
  };
6764
6829
  topic_map_id?: string | undefined;
@@ -6800,6 +6865,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6800
6865
  hierarchy_threshold?: number | undefined;
6801
6866
  naming_model?: string | undefined;
6802
6867
  } | undefined;
6868
+ disable_reconciliation?: boolean | undefined;
6803
6869
  distance_threshold?: number | undefined;
6804
6870
  };
6805
6871
  topic_map_id?: string | undefined;
@@ -6880,6 +6946,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6880
6946
  hierarchy_threshold?: number | undefined;
6881
6947
  naming_model?: string | undefined;
6882
6948
  }>>;
6949
+ disable_reconciliation: z.ZodOptional<z.ZodBoolean>;
6883
6950
  distance_threshold: z.ZodOptional<z.ZodNumber>;
6884
6951
  }, "strip", z.ZodTypeAny, {
6885
6952
  type: "topic_map";
@@ -6898,6 +6965,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6898
6965
  hierarchy_threshold?: number | undefined;
6899
6966
  naming_model?: string | undefined;
6900
6967
  } | undefined;
6968
+ disable_reconciliation?: boolean | undefined;
6901
6969
  distance_threshold?: number | undefined;
6902
6970
  }, {
6903
6971
  type: "topic_map";
@@ -6916,6 +6984,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6916
6984
  hierarchy_threshold?: number | undefined;
6917
6985
  naming_model?: string | undefined;
6918
6986
  } | undefined;
6987
+ disable_reconciliation?: boolean | undefined;
6919
6988
  distance_threshold?: number | undefined;
6920
6989
  }>, z.ZodUnknown>]>;
6921
6990
  declare const PromptData: z.ZodObject<{
@@ -7166,6 +7235,7 @@ declare const PromptData: z.ZodObject<{
7166
7235
  id?: string | undefined;
7167
7236
  content?: string | undefined;
7168
7237
  }>, "many">>;
7238
+ reasoning_signature: z.ZodOptional<z.ZodString>;
7169
7239
  }, "strip", z.ZodTypeAny, {
7170
7240
  role: "assistant";
7171
7241
  name?: string | undefined;
@@ -7192,6 +7262,7 @@ declare const PromptData: z.ZodObject<{
7192
7262
  id?: string | undefined;
7193
7263
  content?: string | undefined;
7194
7264
  }[] | undefined;
7265
+ reasoning_signature?: string | undefined;
7195
7266
  }, {
7196
7267
  role: "assistant";
7197
7268
  name?: string | undefined;
@@ -7218,6 +7289,7 @@ declare const PromptData: z.ZodObject<{
7218
7289
  id?: string | undefined;
7219
7290
  content?: string | undefined;
7220
7291
  }[] | undefined;
7292
+ reasoning_signature?: string | undefined;
7221
7293
  }>, z.ZodObject<{
7222
7294
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
7223
7295
  text: z.ZodDefault<z.ZodString>;
@@ -7394,6 +7466,7 @@ declare const PromptData: z.ZodObject<{
7394
7466
  id?: string | undefined;
7395
7467
  content?: string | undefined;
7396
7468
  }[] | undefined;
7469
+ reasoning_signature?: string | undefined;
7397
7470
  } | {
7398
7471
  role: "tool";
7399
7472
  content: string | {
@@ -7484,6 +7557,7 @@ declare const PromptData: z.ZodObject<{
7484
7557
  id?: string | undefined;
7485
7558
  content?: string | undefined;
7486
7559
  }[] | undefined;
7560
+ reasoning_signature?: string | undefined;
7487
7561
  } | {
7488
7562
  role: "tool";
7489
7563
  content: string | {
@@ -8388,6 +8462,7 @@ declare const PromptData: z.ZodObject<{
8388
8462
  id?: string | undefined;
8389
8463
  content?: string | undefined;
8390
8464
  }[] | undefined;
8465
+ reasoning_signature?: string | undefined;
8391
8466
  } | {
8392
8467
  role: "tool";
8393
8468
  content: string | {
@@ -8637,6 +8712,7 @@ declare const PromptData: z.ZodObject<{
8637
8712
  id?: string | undefined;
8638
8713
  content?: string | undefined;
8639
8714
  }[] | undefined;
8715
+ reasoning_signature?: string | undefined;
8640
8716
  } | {
8641
8717
  role: "tool";
8642
8718
  content: string | {
@@ -9026,6 +9102,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
9026
9102
  id?: string | undefined;
9027
9103
  content?: string | undefined;
9028
9104
  }>, "many">>;
9105
+ reasoning_signature: z.ZodOptional<z.ZodString>;
9029
9106
  }, "strip", z.ZodTypeAny, {
9030
9107
  role: "assistant";
9031
9108
  name?: string | undefined;
@@ -9052,6 +9129,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
9052
9129
  id?: string | undefined;
9053
9130
  content?: string | undefined;
9054
9131
  }[] | undefined;
9132
+ reasoning_signature?: string | undefined;
9055
9133
  }, {
9056
9134
  role: "assistant";
9057
9135
  name?: string | undefined;
@@ -9078,6 +9156,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
9078
9156
  id?: string | undefined;
9079
9157
  content?: string | undefined;
9080
9158
  }[] | undefined;
9159
+ reasoning_signature?: string | undefined;
9081
9160
  }>, z.ZodObject<{
9082
9161
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
9083
9162
  text: z.ZodDefault<z.ZodString>;
@@ -9254,6 +9333,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
9254
9333
  id?: string | undefined;
9255
9334
  content?: string | undefined;
9256
9335
  }[] | undefined;
9336
+ reasoning_signature?: string | undefined;
9257
9337
  } | {
9258
9338
  role: "tool";
9259
9339
  content: string | {
@@ -9344,6 +9424,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
9344
9424
  id?: string | undefined;
9345
9425
  content?: string | undefined;
9346
9426
  }[] | undefined;
9427
+ reasoning_signature?: string | undefined;
9347
9428
  } | {
9348
9429
  role: "tool";
9349
9430
  content: string | {
@@ -10248,6 +10329,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
10248
10329
  id?: string | undefined;
10249
10330
  content?: string | undefined;
10250
10331
  }[] | undefined;
10332
+ reasoning_signature?: string | undefined;
10251
10333
  } | {
10252
10334
  role: "tool";
10253
10335
  content: string | {
@@ -10497,6 +10579,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
10497
10579
  id?: string | undefined;
10498
10580
  content?: string | undefined;
10499
10581
  }[] | undefined;
10582
+ reasoning_signature?: string | undefined;
10500
10583
  } | {
10501
10584
  role: "tool";
10502
10585
  content: string | {
@@ -10756,6 +10839,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
10756
10839
  id?: string | undefined;
10757
10840
  content?: string | undefined;
10758
10841
  }[] | undefined;
10842
+ reasoning_signature?: string | undefined;
10759
10843
  } | {
10760
10844
  role: "tool";
10761
10845
  content: string | {
@@ -11012,6 +11096,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11012
11096
  id?: string | undefined;
11013
11097
  content?: string | undefined;
11014
11098
  }[] | undefined;
11099
+ reasoning_signature?: string | undefined;
11015
11100
  } | {
11016
11101
  role: "tool";
11017
11102
  content: string | {
@@ -11328,6 +11413,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11328
11413
  id?: string | undefined;
11329
11414
  content?: string | undefined;
11330
11415
  }>, "many">>;
11416
+ reasoning_signature: z.ZodOptional<z.ZodString>;
11331
11417
  }, "strip", z.ZodTypeAny, {
11332
11418
  role: "assistant";
11333
11419
  name?: string | undefined;
@@ -11354,6 +11440,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11354
11440
  id?: string | undefined;
11355
11441
  content?: string | undefined;
11356
11442
  }[] | undefined;
11443
+ reasoning_signature?: string | undefined;
11357
11444
  }, {
11358
11445
  role: "assistant";
11359
11446
  name?: string | undefined;
@@ -11380,6 +11467,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11380
11467
  id?: string | undefined;
11381
11468
  content?: string | undefined;
11382
11469
  }[] | undefined;
11470
+ reasoning_signature?: string | undefined;
11383
11471
  }>, z.ZodObject<{
11384
11472
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
11385
11473
  text: z.ZodDefault<z.ZodString>;
@@ -11556,6 +11644,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11556
11644
  id?: string | undefined;
11557
11645
  content?: string | undefined;
11558
11646
  }[] | undefined;
11647
+ reasoning_signature?: string | undefined;
11559
11648
  } | {
11560
11649
  role: "tool";
11561
11650
  content: string | {
@@ -11646,6 +11735,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11646
11735
  id?: string | undefined;
11647
11736
  content?: string | undefined;
11648
11737
  }[] | undefined;
11738
+ reasoning_signature?: string | undefined;
11649
11739
  } | {
11650
11740
  role: "tool";
11651
11741
  content: string | {
@@ -12550,6 +12640,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12550
12640
  id?: string | undefined;
12551
12641
  content?: string | undefined;
12552
12642
  }[] | undefined;
12643
+ reasoning_signature?: string | undefined;
12553
12644
  } | {
12554
12645
  role: "tool";
12555
12646
  content: string | {
@@ -12799,6 +12890,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12799
12890
  id?: string | undefined;
12800
12891
  content?: string | undefined;
12801
12892
  }[] | undefined;
12893
+ reasoning_signature?: string | undefined;
12802
12894
  } | {
12803
12895
  role: "tool";
12804
12896
  content: string | {
@@ -13053,6 +13145,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
13053
13145
  id?: string | undefined;
13054
13146
  content?: string | undefined;
13055
13147
  }[] | undefined;
13148
+ reasoning_signature?: string | undefined;
13056
13149
  } | {
13057
13150
  role: "tool";
13058
13151
  content: string | {
@@ -13305,6 +13398,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
13305
13398
  id?: string | undefined;
13306
13399
  content?: string | undefined;
13307
13400
  }[] | undefined;
13401
+ reasoning_signature?: string | undefined;
13308
13402
  } | {
13309
13403
  role: "tool";
13310
13404
  content: string | {
@@ -13669,6 +13763,7 @@ declare const Prompt$1: z.ZodObject<{
13669
13763
  id?: string | undefined;
13670
13764
  content?: string | undefined;
13671
13765
  }>, "many">>;
13766
+ reasoning_signature: z.ZodOptional<z.ZodString>;
13672
13767
  }, "strip", z.ZodTypeAny, {
13673
13768
  role: "assistant";
13674
13769
  name?: string | undefined;
@@ -13695,6 +13790,7 @@ declare const Prompt$1: z.ZodObject<{
13695
13790
  id?: string | undefined;
13696
13791
  content?: string | undefined;
13697
13792
  }[] | undefined;
13793
+ reasoning_signature?: string | undefined;
13698
13794
  }, {
13699
13795
  role: "assistant";
13700
13796
  name?: string | undefined;
@@ -13721,6 +13817,7 @@ declare const Prompt$1: z.ZodObject<{
13721
13817
  id?: string | undefined;
13722
13818
  content?: string | undefined;
13723
13819
  }[] | undefined;
13820
+ reasoning_signature?: string | undefined;
13724
13821
  }>, z.ZodObject<{
13725
13822
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
13726
13823
  text: z.ZodDefault<z.ZodString>;
@@ -13897,6 +13994,7 @@ declare const Prompt$1: z.ZodObject<{
13897
13994
  id?: string | undefined;
13898
13995
  content?: string | undefined;
13899
13996
  }[] | undefined;
13997
+ reasoning_signature?: string | undefined;
13900
13998
  } | {
13901
13999
  role: "tool";
13902
14000
  content: string | {
@@ -13987,6 +14085,7 @@ declare const Prompt$1: z.ZodObject<{
13987
14085
  id?: string | undefined;
13988
14086
  content?: string | undefined;
13989
14087
  }[] | undefined;
14088
+ reasoning_signature?: string | undefined;
13990
14089
  } | {
13991
14090
  role: "tool";
13992
14091
  content: string | {
@@ -14891,6 +14990,7 @@ declare const Prompt$1: z.ZodObject<{
14891
14990
  id?: string | undefined;
14892
14991
  content?: string | undefined;
14893
14992
  }[] | undefined;
14993
+ reasoning_signature?: string | undefined;
14894
14994
  } | {
14895
14995
  role: "tool";
14896
14996
  content: string | {
@@ -15140,6 +15240,7 @@ declare const Prompt$1: z.ZodObject<{
15140
15240
  id?: string | undefined;
15141
15241
  content?: string | undefined;
15142
15242
  }[] | undefined;
15243
+ reasoning_signature?: string | undefined;
15143
15244
  } | {
15144
15245
  role: "tool";
15145
15246
  content: string | {
@@ -15406,6 +15507,7 @@ declare const Prompt$1: z.ZodObject<{
15406
15507
  id?: string | undefined;
15407
15508
  content?: string | undefined;
15408
15509
  }[] | undefined;
15510
+ reasoning_signature?: string | undefined;
15409
15511
  } | {
15410
15512
  role: "tool";
15411
15513
  content: string | {
@@ -15669,6 +15771,7 @@ declare const Prompt$1: z.ZodObject<{
15669
15771
  id?: string | undefined;
15670
15772
  content?: string | undefined;
15671
15773
  }[] | undefined;
15774
+ reasoning_signature?: string | undefined;
15672
15775
  } | {
15673
15776
  role: "tool";
15674
15777
  content: string | {
@@ -15814,7 +15917,7 @@ declare const SSEProgressEventData: z.ZodObject<{
15814
15917
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
15815
15918
  name: string;
15816
15919
  data: string;
15817
- event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
15920
+ event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
15818
15921
  format: "code" | "llm" | "global" | "topic_map" | "graph";
15819
15922
  output_type: "facet" | "score" | "completion" | "classification" | "any";
15820
15923
  origin?: {
@@ -15829,7 +15932,7 @@ declare const SSEProgressEventData: z.ZodObject<{
15829
15932
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
15830
15933
  name: string;
15831
15934
  data: string;
15832
- event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
15935
+ event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
15833
15936
  format: "code" | "llm" | "global" | "topic_map" | "graph";
15834
15937
  output_type: "facet" | "score" | "completion" | "classification" | "any";
15835
15938
  origin?: {
@@ -17077,6 +17180,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
17077
17180
  id?: string | undefined;
17078
17181
  content?: string | undefined;
17079
17182
  }>, "many">>;
17183
+ reasoning_signature: z.ZodOptional<z.ZodString>;
17080
17184
  }, "strip", z.ZodTypeAny, {
17081
17185
  role: "assistant";
17082
17186
  name?: string | undefined;
@@ -17103,6 +17207,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
17103
17207
  id?: string | undefined;
17104
17208
  content?: string | undefined;
17105
17209
  }[] | undefined;
17210
+ reasoning_signature?: string | undefined;
17106
17211
  }, {
17107
17212
  role: "assistant";
17108
17213
  name?: string | undefined;
@@ -17129,6 +17234,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
17129
17234
  id?: string | undefined;
17130
17235
  content?: string | undefined;
17131
17236
  }[] | undefined;
17237
+ reasoning_signature?: string | undefined;
17132
17238
  }>, z.ZodObject<{
17133
17239
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
17134
17240
  text: z.ZodDefault<z.ZodString>;
@@ -17303,6 +17409,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
17303
17409
  id?: string | undefined;
17304
17410
  content?: string | undefined;
17305
17411
  }[] | undefined;
17412
+ reasoning_signature?: string | undefined;
17306
17413
  } | {
17307
17414
  role: "tool";
17308
17415
  content: string | {
@@ -17391,6 +17498,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
17391
17498
  id?: string | undefined;
17392
17499
  content?: string | undefined;
17393
17500
  }[] | undefined;
17501
+ reasoning_signature?: string | undefined;
17394
17502
  } | {
17395
17503
  role: "tool";
17396
17504
  content: string | {
@@ -18137,6 +18245,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
18137
18245
  id?: string | undefined;
18138
18246
  content?: string | undefined;
18139
18247
  }[] | undefined;
18248
+ reasoning_signature?: string | undefined;
18140
18249
  } | {
18141
18250
  role: "tool";
18142
18251
  content: string | {
@@ -18362,6 +18471,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
18362
18471
  id?: string | undefined;
18363
18472
  content?: string | undefined;
18364
18473
  }[] | undefined;
18474
+ reasoning_signature?: string | undefined;
18365
18475
  } | {
18366
18476
  role: "tool";
18367
18477
  content: string | {
@@ -18548,6 +18658,32 @@ type InferParameters<T extends EvalParameters> = {
18548
18658
  declare const LOGS3_OVERFLOW_REFERENCE_TYPE = "logs3_overflow";
18549
18659
  declare const RESET_CONTEXT_MANAGER_STATE: unique symbol;
18550
18660
  declare const DEFAULT_MAX_REQUEST_SIZE: number;
18661
+
18662
+ declare const datasetRestorePreviewResultSchema: z.ZodObject<{
18663
+ rows_to_restore: z.ZodNumber;
18664
+ rows_to_delete: z.ZodNumber;
18665
+ }, "strip", z.ZodTypeAny, {
18666
+ rows_to_restore: number;
18667
+ rows_to_delete: number;
18668
+ }, {
18669
+ rows_to_restore: number;
18670
+ rows_to_delete: number;
18671
+ }>;
18672
+ type DatasetRestorePreviewResult = z.infer<typeof datasetRestorePreviewResultSchema>;
18673
+ declare const datasetRestoreResultSchema: z.ZodObject<{
18674
+ xact_id: z.ZodNullable<z.ZodString>;
18675
+ rows_restored: z.ZodNumber;
18676
+ rows_deleted: z.ZodNumber;
18677
+ }, "strip", z.ZodTypeAny, {
18678
+ xact_id: string | null;
18679
+ rows_restored: number;
18680
+ rows_deleted: number;
18681
+ }, {
18682
+ xact_id: string | null;
18683
+ rows_restored: number;
18684
+ rows_deleted: number;
18685
+ }>;
18686
+ type DatasetRestoreResult = z.infer<typeof datasetRestoreResultSchema>;
18551
18687
  declare const parametersRowSchema: z.ZodObject<{
18552
18688
  id: z.ZodString;
18553
18689
  _xact_id: z.ZodString;
@@ -19088,7 +19224,7 @@ declare class Attachment extends BaseAttachment {
19088
19224
  * @returns The attachment status.
19089
19225
  */
19090
19226
  upload(): Promise<{
19091
- upload_status: "error" | "uploading" | "done";
19227
+ upload_status: "uploading" | "done" | "error";
19092
19228
  error_message?: string | undefined;
19093
19229
  }>;
19094
19230
  /**
@@ -19165,21 +19301,21 @@ declare const attachmentMetadataSchema: z.ZodObject<{
19165
19301
  upload_status: z.ZodEnum<["uploading", "done", "error"]>;
19166
19302
  error_message: z.ZodOptional<z.ZodString>;
19167
19303
  }, "strip", z.ZodTypeAny, {
19168
- upload_status: "error" | "uploading" | "done";
19304
+ upload_status: "uploading" | "done" | "error";
19169
19305
  error_message?: string | undefined;
19170
19306
  }, {
19171
- upload_status: "error" | "uploading" | "done";
19307
+ upload_status: "uploading" | "done" | "error";
19172
19308
  error_message?: string | undefined;
19173
19309
  }>;
19174
19310
  }, "strip", z.ZodTypeAny, {
19175
19311
  status: {
19176
- upload_status: "error" | "uploading" | "done";
19312
+ upload_status: "uploading" | "done" | "error";
19177
19313
  error_message?: string | undefined;
19178
19314
  };
19179
19315
  downloadUrl: string;
19180
19316
  }, {
19181
19317
  status: {
19182
- upload_status: "error" | "uploading" | "done";
19318
+ upload_status: "uploading" | "done" | "error";
19183
19319
  error_message?: string | undefined;
19184
19320
  };
19185
19321
  downloadUrl: string;
@@ -19514,12 +19650,30 @@ type InitOpenOption<IsOpen extends boolean> = {
19514
19650
  open?: IsOpen;
19515
19651
  };
19516
19652
  /**
19517
- * Reference to a dataset by ID and optional version.
19653
+ * Reference to a dataset by ID and optional explicit selector.
19518
19654
  */
19519
- interface DatasetRef {
19520
- id: string;
19655
+ type DatasetSelection = {
19521
19656
  version?: string;
19522
- }
19657
+ environment?: string;
19658
+ snapshotName?: string;
19659
+ };
19660
+ type DatasetSnapshotNameLookup = {
19661
+ snapshotName: string;
19662
+ xactId?: never;
19663
+ };
19664
+ type DatasetSnapshotXactLookup = {
19665
+ snapshotName?: never;
19666
+ xactId: string;
19667
+ };
19668
+ type DatasetSnapshotLookup = DatasetSnapshotNameLookup | DatasetSnapshotXactLookup;
19669
+ type DatasetPinState = {
19670
+ lazyPinnedVersion?: LazyValue<string | undefined>;
19671
+ pinnedEnvironment?: string;
19672
+ pinnedSnapshotName?: string;
19673
+ };
19674
+ type DatasetRef = {
19675
+ id: string;
19676
+ } & DatasetSelection;
19523
19677
  interface ParametersRef {
19524
19678
  id: string;
19525
19679
  version?: string;
@@ -19528,6 +19682,7 @@ type InitOptions<IsOpen extends boolean> = FullLoginOptions & {
19528
19682
  experiment?: string;
19529
19683
  description?: string;
19530
19684
  dataset?: AnyDataset | DatasetRef;
19685
+ _internal_btql?: Record<string, unknown>;
19531
19686
  parameters?: ParametersRef | RemoteEvalParameters<boolean, boolean>;
19532
19687
  update?: boolean;
19533
19688
  baseExperiment?: string;
@@ -19598,6 +19753,8 @@ type InitDatasetOptions<IsLegacyDataset extends boolean> = FullLoginOptions & {
19598
19753
  dataset?: string;
19599
19754
  description?: string;
19600
19755
  version?: string;
19756
+ environment?: string;
19757
+ snapshotName?: string;
19601
19758
  projectId?: string;
19602
19759
  metadata?: Record<string, unknown>;
19603
19760
  state?: BraintrustState;
@@ -19613,6 +19770,9 @@ type FullInitDatasetOptions<IsLegacyDataset extends boolean> = {
19613
19770
  * @param options.project The name of the project to create the dataset in. Must specify at least one of `project` or `projectId`.
19614
19771
  * @param options.dataset The name of the dataset to create. If not specified, a name will be generated automatically.
19615
19772
  * @param options.description An optional description of the dataset.
19773
+ * @param options.version Pin the dataset to a specific version xact_id. If `snapshotName` or `environment` are also provided, `version` takes precedence.
19774
+ * @param options.snapshotName Pin the dataset to the version captured by this named snapshot. If `environment` is also provided, `snapshotName` takes precedence.
19775
+ * @param options.environment Pin the dataset to the version tagged with this environment slug.
19616
19776
  * @param options.appUrl The URL of the Braintrust App. Defaults to https://www.braintrust.dev.
19617
19777
  * @param options.apiKey The API key to use. If the parameter is not specified, will try to use the `BRAINTRUST_API_KEY` environment variable. If no API key is specified, will prompt the user to login.
19618
19778
  * @param options.orgName (Optional) The name of a specific organization to connect to. This is useful if you belong to multiple.
@@ -20005,6 +20165,9 @@ declare class ObjectFetcher<RecordType> implements AsyncIterable<WithTransaction
20005
20165
  constructor(objectType: "dataset" | "experiment" | "project_logs" | "playground_logs", pinnedVersion: string | undefined, mutateRecord?: ((r: any) => WithTransactionId<RecordType>) | undefined, _internal_btql?: Record<string, unknown> | undefined);
20006
20166
  get id(): Promise<string>;
20007
20167
  protected getState(): Promise<BraintrustState>;
20168
+ protected getPinnedVersion(): string | undefined;
20169
+ protected setPinnedVersion(pinnedVersion: string | undefined): void;
20170
+ protected getInternalBtql(): Record<string, unknown> | undefined;
20008
20171
  private fetchRecordsFromApi;
20009
20172
  /**
20010
20173
  * Fetch all records from the object.
@@ -20242,12 +20405,25 @@ declare class Dataset<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY
20242
20405
  private readonly lazyMetadata;
20243
20406
  private readonly __braintrust_dataset_marker;
20244
20407
  private newRecords;
20245
- constructor(state: BraintrustState, lazyMetadata: LazyValue<ProjectDatasetMetadata>, pinnedVersion?: string, legacy?: IsLegacyDataset, _internal_btql?: Record<string, unknown>);
20408
+ private lazyPinnedVersion?;
20409
+ private pinnedEnvironment?;
20410
+ private pinnedSnapshotName?;
20411
+ constructor(state: BraintrustState, lazyMetadata: LazyValue<ProjectDatasetMetadata>, pinnedVersion?: string, legacy?: IsLegacyDataset, _internal_btql?: Record<string, unknown>, pinState?: DatasetPinState);
20246
20412
  get id(): Promise<string>;
20247
20413
  get name(): Promise<string>;
20248
20414
  get project(): Promise<ObjectMetadata>;
20249
20415
  get loggingState(): BraintrustState;
20416
+ toEvalData(): Promise<{
20417
+ dataset_id: string;
20418
+ dataset_version?: string;
20419
+ dataset_environment?: string;
20420
+ dataset_snapshot_name?: string;
20421
+ _internal_btql?: Record<string, unknown>;
20422
+ }>;
20250
20423
  protected getState(): Promise<BraintrustState>;
20424
+ version(options?: {
20425
+ batchSize?: number;
20426
+ }): Promise<string | undefined>;
20251
20427
  private validateEvent;
20252
20428
  private createArgs;
20253
20429
  /**
@@ -20295,6 +20471,24 @@ declare class Dataset<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY
20295
20471
  readonly metadata?: Record<string, unknown>;
20296
20472
  }): string;
20297
20473
  delete(id: string): string;
20474
+ createSnapshot({ name, description, update, }: {
20475
+ readonly name: string;
20476
+ readonly description?: string;
20477
+ readonly update?: boolean;
20478
+ }): Promise<DatasetSnapshotType>;
20479
+ listSnapshots(): Promise<DatasetSnapshotType[]>;
20480
+ getSnapshot(lookup: DatasetSnapshotLookup): Promise<DatasetSnapshotType | undefined>;
20481
+ updateSnapshot(snapshotId: string, { name, description, }: {
20482
+ readonly name?: string;
20483
+ readonly description?: string | null;
20484
+ }): Promise<DatasetSnapshotType>;
20485
+ deleteSnapshot(snapshotId: string): Promise<DatasetSnapshotType>;
20486
+ restorePreview({ version, }: {
20487
+ readonly version: string;
20488
+ }): Promise<DatasetRestorePreviewResult>;
20489
+ restore({ version, }: {
20490
+ readonly version: string;
20491
+ }): Promise<DatasetRestoreResult>;
20298
20492
  /**
20299
20493
  * Summarize the dataset, including high level metrics about its size and other metadata.
20300
20494
  * @param summarizeData Whether to summarize the data. If false, only the metadata will be returned.
@@ -20730,7 +20924,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
20730
20924
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
20731
20925
  name: string;
20732
20926
  data: string;
20733
- event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
20927
+ event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
20734
20928
  format: "code" | "llm" | "global" | "topic_map" | "graph";
20735
20929
  output_type: "facet" | "score" | "completion" | "classification" | "any";
20736
20930
  origin?: {
@@ -20745,7 +20939,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
20745
20939
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
20746
20940
  name: string;
20747
20941
  data: string;
20748
- event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
20942
+ event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
20749
20943
  format: "code" | "llm" | "global" | "topic_map" | "graph";
20750
20944
  output_type: "facet" | "score" | "completion" | "classification" | "any";
20751
20945
  origin?: {
@@ -20763,7 +20957,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
20763
20957
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
20764
20958
  name: string;
20765
20959
  data: string;
20766
- event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
20960
+ event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
20767
20961
  format: "code" | "llm" | "global" | "topic_map" | "graph";
20768
20962
  output_type: "facet" | "score" | "completion" | "classification" | "any";
20769
20963
  origin?: {
@@ -20781,7 +20975,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
20781
20975
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
20782
20976
  name: string;
20783
20977
  data: string;
20784
- event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
20978
+ event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
20785
20979
  format: "code" | "llm" | "global" | "topic_map" | "graph";
20786
20980
  output_type: "facet" | "score" | "completion" | "classification" | "any";
20787
20981
  origin?: {
@@ -21343,6 +21537,18 @@ declare function wrapMastraAgent<T>(agent: T, _options?: {
21343
21537
  */
21344
21538
  declare function wrapClaudeAgentSDK<T extends object>(sdk: T): T;
21345
21539
 
21540
+ /**
21541
+ * Wraps the OpenAI Codex TypeScript SDK with Braintrust tracing. The wrapper
21542
+ * emits diagnostics-channel events; the OpenAI Codex plugin owns span lifecycle.
21543
+ */
21544
+ declare function wrapOpenAICodexSDK<T>(sdk: T): T;
21545
+
21546
+ /**
21547
+ * Wraps the Cursor TypeScript SDK with Braintrust tracing. The wrapper emits
21548
+ * diagnostics-channel events; the Cursor SDK plugin owns span lifecycle.
21549
+ */
21550
+ declare function wrapCursorSDK<T>(sdk: T): T;
21551
+
21346
21552
  /**
21347
21553
  * Wrap a Google GenAI module (imported with `import * as googleGenAI from '@google/genai'`) to add tracing.
21348
21554
  * If Braintrust is not configured, nothing will be traced.
@@ -21394,6 +21600,16 @@ declare function wrapGoogleGenAI<T extends Record<string, any>>(googleGenAI: T):
21394
21600
  */
21395
21601
  declare function wrapGoogleADK<T extends Record<string, any>>(adkModule: T): T;
21396
21602
 
21603
+ /**
21604
+ * Wrap a Genkit instance or module so Genkit calls emit diagnostics-channel
21605
+ * events that Braintrust plugins can consume.
21606
+ *
21607
+ * This supports both:
21608
+ * - `const ai = wrapGenkit(genkit({ ... }))`
21609
+ * - wrapping the module namespace and then calling its `genkit` factory
21610
+ */
21611
+ declare function wrapGenkit<T>(genkit: T): T;
21612
+
21397
21613
  interface HuggingFaceRequestOptions {
21398
21614
  retry_on_error?: boolean;
21399
21615
  fetch?: typeof fetch;
@@ -21557,6 +21773,33 @@ declare function wrapMistral<T>(mistral: T): T;
21557
21773
  */
21558
21774
  declare function wrapCohere<T>(cohere: T): T;
21559
21775
 
21776
+ /**
21777
+ * Wrap a Groq client (created with `new Groq(...)`) with Braintrust tracing.
21778
+ */
21779
+ declare function wrapGroq<T extends object>(groq: T): T;
21780
+
21781
+ /**
21782
+ * Wrap a CopilotClient instance (created with `new CopilotClient(...)`) with
21783
+ * Braintrust tracing.
21784
+ *
21785
+ * The wrapper intercepts `createSession` and `resumeSession` so that the same
21786
+ * plugin logic used by auto-instrumentation applies — session spans, turn
21787
+ * spans, LLM spans with token metrics, and tool spans are all produced.
21788
+ *
21789
+ * @example
21790
+ * ```ts
21791
+ * import { CopilotClient, approveAll } from "@github/copilot-sdk";
21792
+ * import { wrapCopilotClient } from "braintrust";
21793
+ *
21794
+ * const client = wrapCopilotClient(new CopilotClient());
21795
+ * const session = await client.createSession({
21796
+ * model: "gpt-4.1",
21797
+ * onPermissionRequest: approveAll,
21798
+ * });
21799
+ * ```
21800
+ */
21801
+ declare function wrapCopilotClient<T extends object>(client: T): T;
21802
+
21560
21803
  type ScorerFunction<Output = unknown> = (args: {
21561
21804
  output: Output;
21562
21805
  expected?: unknown;
@@ -21664,6 +21907,11 @@ interface BraintrustVitest<VitestContext = unknown, ExpectType extends (...args:
21664
21907
  }
21665
21908
  interface WrapperConfig {
21666
21909
  projectName?: string;
21910
+ /**
21911
+ * The id of the project to create experiments in. Takes precedence over
21912
+ * `projectName` if both are set.
21913
+ */
21914
+ projectId?: string;
21667
21915
  /**
21668
21916
  * If true, displays a formatted experiment summary with scores and URL after the test suite completes.
21669
21917
  * Defaults to true. Set to false to suppress the summary output.
@@ -22314,6 +22562,7 @@ declare const promptContentsSchema: z.ZodUnion<[z.ZodObject<{
22314
22562
  id?: string | undefined;
22315
22563
  content?: string | undefined;
22316
22564
  }>, "many">>;
22565
+ reasoning_signature: z.ZodOptional<z.ZodString>;
22317
22566
  }, "strip", z.ZodTypeAny, {
22318
22567
  role: "assistant";
22319
22568
  name?: string | undefined;
@@ -22340,6 +22589,7 @@ declare const promptContentsSchema: z.ZodUnion<[z.ZodObject<{
22340
22589
  id?: string | undefined;
22341
22590
  content?: string | undefined;
22342
22591
  }[] | undefined;
22592
+ reasoning_signature?: string | undefined;
22343
22593
  }, {
22344
22594
  role: "assistant";
22345
22595
  name?: string | undefined;
@@ -22366,6 +22616,7 @@ declare const promptContentsSchema: z.ZodUnion<[z.ZodObject<{
22366
22616
  id?: string | undefined;
22367
22617
  content?: string | undefined;
22368
22618
  }[] | undefined;
22619
+ reasoning_signature?: string | undefined;
22369
22620
  }>, z.ZodObject<{
22370
22621
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
22371
22622
  text: z.ZodDefault<z.ZodString>;
@@ -22540,6 +22791,7 @@ declare const promptContentsSchema: z.ZodUnion<[z.ZodObject<{
22540
22791
  id?: string | undefined;
22541
22792
  content?: string | undefined;
22542
22793
  }[] | undefined;
22794
+ reasoning_signature?: string | undefined;
22543
22795
  } | {
22544
22796
  role: "tool";
22545
22797
  content: string | {
@@ -22628,6 +22880,7 @@ declare const promptContentsSchema: z.ZodUnion<[z.ZodObject<{
22628
22880
  id?: string | undefined;
22629
22881
  content?: string | undefined;
22630
22882
  }[] | undefined;
22883
+ reasoning_signature?: string | undefined;
22631
22884
  } | {
22632
22885
  role: "tool";
22633
22886
  content: string | {
@@ -22910,6 +23163,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
22910
23163
  id?: string | undefined;
22911
23164
  content?: string | undefined;
22912
23165
  }>, "many">>;
23166
+ reasoning_signature: z.ZodOptional<z.ZodString>;
22913
23167
  }, "strip", z.ZodTypeAny, {
22914
23168
  role: "assistant";
22915
23169
  name?: string | undefined;
@@ -22936,6 +23190,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
22936
23190
  id?: string | undefined;
22937
23191
  content?: string | undefined;
22938
23192
  }[] | undefined;
23193
+ reasoning_signature?: string | undefined;
22939
23194
  }, {
22940
23195
  role: "assistant";
22941
23196
  name?: string | undefined;
@@ -22962,6 +23217,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
22962
23217
  id?: string | undefined;
22963
23218
  content?: string | undefined;
22964
23219
  }[] | undefined;
23220
+ reasoning_signature?: string | undefined;
22965
23221
  }>, z.ZodObject<{
22966
23222
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
22967
23223
  text: z.ZodDefault<z.ZodString>;
@@ -23136,6 +23392,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
23136
23392
  id?: string | undefined;
23137
23393
  content?: string | undefined;
23138
23394
  }[] | undefined;
23395
+ reasoning_signature?: string | undefined;
23139
23396
  } | {
23140
23397
  role: "tool";
23141
23398
  content: string | {
@@ -23224,6 +23481,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
23224
23481
  id?: string | undefined;
23225
23482
  content?: string | undefined;
23226
23483
  }[] | undefined;
23484
+ reasoning_signature?: string | undefined;
23227
23485
  } | {
23228
23486
  role: "tool";
23229
23487
  content: string | {
@@ -24101,6 +24359,7 @@ declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersecti
24101
24359
  id?: string | undefined;
24102
24360
  content?: string | undefined;
24103
24361
  }>, "many">>;
24362
+ reasoning_signature: z.ZodOptional<z.ZodString>;
24104
24363
  }, "strip", z.ZodTypeAny, {
24105
24364
  role: "assistant";
24106
24365
  name?: string | undefined;
@@ -24127,6 +24386,7 @@ declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersecti
24127
24386
  id?: string | undefined;
24128
24387
  content?: string | undefined;
24129
24388
  }[] | undefined;
24389
+ reasoning_signature?: string | undefined;
24130
24390
  }, {
24131
24391
  role: "assistant";
24132
24392
  name?: string | undefined;
@@ -24153,6 +24413,7 @@ declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersecti
24153
24413
  id?: string | undefined;
24154
24414
  content?: string | undefined;
24155
24415
  }[] | undefined;
24416
+ reasoning_signature?: string | undefined;
24156
24417
  }>, z.ZodObject<{
24157
24418
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
24158
24419
  text: z.ZodDefault<z.ZodString>;
@@ -24327,6 +24588,7 @@ declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersecti
24327
24588
  id?: string | undefined;
24328
24589
  content?: string | undefined;
24329
24590
  }[] | undefined;
24591
+ reasoning_signature?: string | undefined;
24330
24592
  } | {
24331
24593
  role: "tool";
24332
24594
  content: string | {
@@ -24415,6 +24677,7 @@ declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersecti
24415
24677
  id?: string | undefined;
24416
24678
  content?: string | undefined;
24417
24679
  }[] | undefined;
24680
+ reasoning_signature?: string | undefined;
24418
24681
  } | {
24419
24682
  role: "tool";
24420
24683
  content: string | {
@@ -25349,6 +25612,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
25349
25612
  id?: string | undefined;
25350
25613
  content?: string | undefined;
25351
25614
  }>, "many">>;
25615
+ reasoning_signature: z.ZodOptional<z.ZodString>;
25352
25616
  }, "strip", z.ZodTypeAny, {
25353
25617
  role: "assistant";
25354
25618
  name?: string | undefined;
@@ -25375,6 +25639,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
25375
25639
  id?: string | undefined;
25376
25640
  content?: string | undefined;
25377
25641
  }[] | undefined;
25642
+ reasoning_signature?: string | undefined;
25378
25643
  }, {
25379
25644
  role: "assistant";
25380
25645
  name?: string | undefined;
@@ -25401,6 +25666,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
25401
25666
  id?: string | undefined;
25402
25667
  content?: string | undefined;
25403
25668
  }[] | undefined;
25669
+ reasoning_signature?: string | undefined;
25404
25670
  }>, z.ZodObject<{
25405
25671
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
25406
25672
  text: z.ZodDefault<z.ZodString>;
@@ -25577,6 +25843,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
25577
25843
  id?: string | undefined;
25578
25844
  content?: string | undefined;
25579
25845
  }[] | undefined;
25846
+ reasoning_signature?: string | undefined;
25580
25847
  } | {
25581
25848
  role: "tool";
25582
25849
  content: string | {
@@ -25667,6 +25934,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
25667
25934
  id?: string | undefined;
25668
25935
  content?: string | undefined;
25669
25936
  }[] | undefined;
25937
+ reasoning_signature?: string | undefined;
25670
25938
  } | {
25671
25939
  role: "tool";
25672
25940
  content: string | {
@@ -26571,6 +26839,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
26571
26839
  id?: string | undefined;
26572
26840
  content?: string | undefined;
26573
26841
  }[] | undefined;
26842
+ reasoning_signature?: string | undefined;
26574
26843
  } | {
26575
26844
  role: "tool";
26576
26845
  content: string | {
@@ -26820,6 +27089,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
26820
27089
  id?: string | undefined;
26821
27090
  content?: string | undefined;
26822
27091
  }[] | undefined;
27092
+ reasoning_signature?: string | undefined;
26823
27093
  } | {
26824
27094
  role: "tool";
26825
27095
  content: string | {
@@ -27074,6 +27344,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
27074
27344
  id?: string | undefined;
27075
27345
  content?: string | undefined;
27076
27346
  }[] | undefined;
27347
+ reasoning_signature?: string | undefined;
27077
27348
  } | {
27078
27349
  role: "tool";
27079
27350
  content: string | {
@@ -27327,6 +27598,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
27327
27598
  id?: string | undefined;
27328
27599
  content?: string | undefined;
27329
27600
  }[] | undefined;
27601
+ reasoning_signature?: string | undefined;
27330
27602
  } | {
27331
27603
  role: "tool";
27332
27604
  content: string | {
@@ -27763,6 +28035,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
27763
28035
  id?: string | undefined;
27764
28036
  content?: string | undefined;
27765
28037
  }>, "many">>;
28038
+ reasoning_signature: z.ZodOptional<z.ZodString>;
27766
28039
  }, "strip", z.ZodTypeAny, {
27767
28040
  role: "assistant";
27768
28041
  name?: string | undefined;
@@ -27789,6 +28062,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
27789
28062
  id?: string | undefined;
27790
28063
  content?: string | undefined;
27791
28064
  }[] | undefined;
28065
+ reasoning_signature?: string | undefined;
27792
28066
  }, {
27793
28067
  role: "assistant";
27794
28068
  name?: string | undefined;
@@ -27815,6 +28089,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
27815
28089
  id?: string | undefined;
27816
28090
  content?: string | undefined;
27817
28091
  }[] | undefined;
28092
+ reasoning_signature?: string | undefined;
27818
28093
  }>, z.ZodObject<{
27819
28094
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
27820
28095
  text: z.ZodDefault<z.ZodString>;
@@ -27991,6 +28266,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
27991
28266
  id?: string | undefined;
27992
28267
  content?: string | undefined;
27993
28268
  }[] | undefined;
28269
+ reasoning_signature?: string | undefined;
27994
28270
  } | {
27995
28271
  role: "tool";
27996
28272
  content: string | {
@@ -28081,6 +28357,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
28081
28357
  id?: string | undefined;
28082
28358
  content?: string | undefined;
28083
28359
  }[] | undefined;
28360
+ reasoning_signature?: string | undefined;
28084
28361
  } | {
28085
28362
  role: "tool";
28086
28363
  content: string | {
@@ -28985,6 +29262,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
28985
29262
  id?: string | undefined;
28986
29263
  content?: string | undefined;
28987
29264
  }[] | undefined;
29265
+ reasoning_signature?: string | undefined;
28988
29266
  } | {
28989
29267
  role: "tool";
28990
29268
  content: string | {
@@ -29234,6 +29512,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
29234
29512
  id?: string | undefined;
29235
29513
  content?: string | undefined;
29236
29514
  }[] | undefined;
29515
+ reasoning_signature?: string | undefined;
29237
29516
  } | {
29238
29517
  role: "tool";
29239
29518
  content: string | {
@@ -29488,6 +29767,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
29488
29767
  id?: string | undefined;
29489
29768
  content?: string | undefined;
29490
29769
  }[] | undefined;
29770
+ reasoning_signature?: string | undefined;
29491
29771
  } | {
29492
29772
  role: "tool";
29493
29773
  content: string | {
@@ -29741,6 +30021,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
29741
30021
  id?: string | undefined;
29742
30022
  content?: string | undefined;
29743
30023
  }[] | undefined;
30024
+ reasoning_signature?: string | undefined;
29744
30025
  } | {
29745
30026
  role: "tool";
29746
30027
  content: string | {
@@ -30025,6 +30306,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
30025
30306
  id?: string | undefined;
30026
30307
  content?: string | undefined;
30027
30308
  }[] | undefined;
30309
+ reasoning_signature?: string | undefined;
30028
30310
  } | {
30029
30311
  role: "tool";
30030
30312
  content: string | {
@@ -30291,6 +30573,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
30291
30573
  id?: string | undefined;
30292
30574
  content?: string | undefined;
30293
30575
  }[] | undefined;
30576
+ reasoning_signature?: string | undefined;
30294
30577
  } | {
30295
30578
  role: "tool";
30296
30579
  content: string | {
@@ -30619,6 +30902,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
30619
30902
  id?: string | undefined;
30620
30903
  content?: string | undefined;
30621
30904
  }>, "many">>;
30905
+ reasoning_signature: z.ZodOptional<z.ZodString>;
30622
30906
  }, "strip", z.ZodTypeAny, {
30623
30907
  role: "assistant";
30624
30908
  name?: string | undefined;
@@ -30645,6 +30929,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
30645
30929
  id?: string | undefined;
30646
30930
  content?: string | undefined;
30647
30931
  }[] | undefined;
30932
+ reasoning_signature?: string | undefined;
30648
30933
  }, {
30649
30934
  role: "assistant";
30650
30935
  name?: string | undefined;
@@ -30671,6 +30956,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
30671
30956
  id?: string | undefined;
30672
30957
  content?: string | undefined;
30673
30958
  }[] | undefined;
30959
+ reasoning_signature?: string | undefined;
30674
30960
  }>, z.ZodObject<{
30675
30961
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
30676
30962
  text: z.ZodDefault<z.ZodString>;
@@ -30847,6 +31133,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
30847
31133
  id?: string | undefined;
30848
31134
  content?: string | undefined;
30849
31135
  }[] | undefined;
31136
+ reasoning_signature?: string | undefined;
30850
31137
  } | {
30851
31138
  role: "tool";
30852
31139
  content: string | {
@@ -30937,6 +31224,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
30937
31224
  id?: string | undefined;
30938
31225
  content?: string | undefined;
30939
31226
  }[] | undefined;
31227
+ reasoning_signature?: string | undefined;
30940
31228
  } | {
30941
31229
  role: "tool";
30942
31230
  content: string | {
@@ -31841,6 +32129,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
31841
32129
  id?: string | undefined;
31842
32130
  content?: string | undefined;
31843
32131
  }[] | undefined;
32132
+ reasoning_signature?: string | undefined;
31844
32133
  } | {
31845
32134
  role: "tool";
31846
32135
  content: string | {
@@ -32090,6 +32379,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32090
32379
  id?: string | undefined;
32091
32380
  content?: string | undefined;
32092
32381
  }[] | undefined;
32382
+ reasoning_signature?: string | undefined;
32093
32383
  } | {
32094
32384
  role: "tool";
32095
32385
  content: string | {
@@ -32344,6 +32634,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32344
32634
  id?: string | undefined;
32345
32635
  content?: string | undefined;
32346
32636
  }[] | undefined;
32637
+ reasoning_signature?: string | undefined;
32347
32638
  } | {
32348
32639
  role: "tool";
32349
32640
  content: string | {
@@ -32597,6 +32888,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32597
32888
  id?: string | undefined;
32598
32889
  content?: string | undefined;
32599
32890
  }[] | undefined;
32891
+ reasoning_signature?: string | undefined;
32600
32892
  } | {
32601
32893
  role: "tool";
32602
32894
  content: string | {
@@ -32893,6 +33185,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32893
33185
  id?: string | undefined;
32894
33186
  content?: string | undefined;
32895
33187
  }[] | undefined;
33188
+ reasoning_signature?: string | undefined;
32896
33189
  } | {
32897
33190
  role: "tool";
32898
33191
  content: string | {
@@ -33172,6 +33465,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33172
33465
  id?: string | undefined;
33173
33466
  content?: string | undefined;
33174
33467
  }[] | undefined;
33468
+ reasoning_signature?: string | undefined;
33175
33469
  } | {
33176
33470
  role: "tool";
33177
33471
  content: string | {
@@ -33444,6 +33738,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33444
33738
  id?: string | undefined;
33445
33739
  content?: string | undefined;
33446
33740
  }[] | undefined;
33741
+ reasoning_signature?: string | undefined;
33447
33742
  } | {
33448
33743
  role: "tool";
33449
33744
  content: string | {
@@ -33723,6 +34018,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33723
34018
  id?: string | undefined;
33724
34019
  content?: string | undefined;
33725
34020
  }[] | undefined;
34021
+ reasoning_signature?: string | undefined;
33726
34022
  } | {
33727
34023
  role: "tool";
33728
34024
  content: string | {
@@ -34130,6 +34426,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
34130
34426
  id?: string | undefined;
34131
34427
  content?: string | undefined;
34132
34428
  }>, "many">>;
34429
+ reasoning_signature: z.ZodOptional<z.ZodString>;
34133
34430
  }, "strip", z.ZodTypeAny, {
34134
34431
  role: "assistant";
34135
34432
  name?: string | undefined;
@@ -34156,6 +34453,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
34156
34453
  id?: string | undefined;
34157
34454
  content?: string | undefined;
34158
34455
  }[] | undefined;
34456
+ reasoning_signature?: string | undefined;
34159
34457
  }, {
34160
34458
  role: "assistant";
34161
34459
  name?: string | undefined;
@@ -34182,6 +34480,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
34182
34480
  id?: string | undefined;
34183
34481
  content?: string | undefined;
34184
34482
  }[] | undefined;
34483
+ reasoning_signature?: string | undefined;
34185
34484
  }>, z.ZodObject<{
34186
34485
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
34187
34486
  text: z.ZodDefault<z.ZodString>;
@@ -34358,6 +34657,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
34358
34657
  id?: string | undefined;
34359
34658
  content?: string | undefined;
34360
34659
  }[] | undefined;
34660
+ reasoning_signature?: string | undefined;
34361
34661
  } | {
34362
34662
  role: "tool";
34363
34663
  content: string | {
@@ -34448,6 +34748,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
34448
34748
  id?: string | undefined;
34449
34749
  content?: string | undefined;
34450
34750
  }[] | undefined;
34751
+ reasoning_signature?: string | undefined;
34451
34752
  } | {
34452
34753
  role: "tool";
34453
34754
  content: string | {
@@ -35352,6 +35653,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
35352
35653
  id?: string | undefined;
35353
35654
  content?: string | undefined;
35354
35655
  }[] | undefined;
35656
+ reasoning_signature?: string | undefined;
35355
35657
  } | {
35356
35658
  role: "tool";
35357
35659
  content: string | {
@@ -35601,6 +35903,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
35601
35903
  id?: string | undefined;
35602
35904
  content?: string | undefined;
35603
35905
  }[] | undefined;
35906
+ reasoning_signature?: string | undefined;
35604
35907
  } | {
35605
35908
  role: "tool";
35606
35909
  content: string | {
@@ -35855,6 +36158,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
35855
36158
  id?: string | undefined;
35856
36159
  content?: string | undefined;
35857
36160
  }[] | undefined;
36161
+ reasoning_signature?: string | undefined;
35858
36162
  } | {
35859
36163
  role: "tool";
35860
36164
  content: string | {
@@ -36108,6 +36412,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
36108
36412
  id?: string | undefined;
36109
36413
  content?: string | undefined;
36110
36414
  }[] | undefined;
36415
+ reasoning_signature?: string | undefined;
36111
36416
  } | {
36112
36417
  role: "tool";
36113
36418
  content: string | {
@@ -36392,6 +36697,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
36392
36697
  id?: string | undefined;
36393
36698
  content?: string | undefined;
36394
36699
  }[] | undefined;
36700
+ reasoning_signature?: string | undefined;
36395
36701
  } | {
36396
36702
  role: "tool";
36397
36703
  content: string | {
@@ -36658,6 +36964,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
36658
36964
  id?: string | undefined;
36659
36965
  content?: string | undefined;
36660
36966
  }[] | undefined;
36967
+ reasoning_signature?: string | undefined;
36661
36968
  } | {
36662
36969
  role: "tool";
36663
36970
  content: string | {
@@ -36986,6 +37293,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
36986
37293
  id?: string | undefined;
36987
37294
  content?: string | undefined;
36988
37295
  }>, "many">>;
37296
+ reasoning_signature: z.ZodOptional<z.ZodString>;
36989
37297
  }, "strip", z.ZodTypeAny, {
36990
37298
  role: "assistant";
36991
37299
  name?: string | undefined;
@@ -37012,6 +37320,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
37012
37320
  id?: string | undefined;
37013
37321
  content?: string | undefined;
37014
37322
  }[] | undefined;
37323
+ reasoning_signature?: string | undefined;
37015
37324
  }, {
37016
37325
  role: "assistant";
37017
37326
  name?: string | undefined;
@@ -37038,6 +37347,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
37038
37347
  id?: string | undefined;
37039
37348
  content?: string | undefined;
37040
37349
  }[] | undefined;
37350
+ reasoning_signature?: string | undefined;
37041
37351
  }>, z.ZodObject<{
37042
37352
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
37043
37353
  text: z.ZodDefault<z.ZodString>;
@@ -37214,6 +37524,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
37214
37524
  id?: string | undefined;
37215
37525
  content?: string | undefined;
37216
37526
  }[] | undefined;
37527
+ reasoning_signature?: string | undefined;
37217
37528
  } | {
37218
37529
  role: "tool";
37219
37530
  content: string | {
@@ -37304,6 +37615,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
37304
37615
  id?: string | undefined;
37305
37616
  content?: string | undefined;
37306
37617
  }[] | undefined;
37618
+ reasoning_signature?: string | undefined;
37307
37619
  } | {
37308
37620
  role: "tool";
37309
37621
  content: string | {
@@ -38208,6 +38520,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
38208
38520
  id?: string | undefined;
38209
38521
  content?: string | undefined;
38210
38522
  }[] | undefined;
38523
+ reasoning_signature?: string | undefined;
38211
38524
  } | {
38212
38525
  role: "tool";
38213
38526
  content: string | {
@@ -38457,6 +38770,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
38457
38770
  id?: string | undefined;
38458
38771
  content?: string | undefined;
38459
38772
  }[] | undefined;
38773
+ reasoning_signature?: string | undefined;
38460
38774
  } | {
38461
38775
  role: "tool";
38462
38776
  content: string | {
@@ -38711,6 +39025,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
38711
39025
  id?: string | undefined;
38712
39026
  content?: string | undefined;
38713
39027
  }[] | undefined;
39028
+ reasoning_signature?: string | undefined;
38714
39029
  } | {
38715
39030
  role: "tool";
38716
39031
  content: string | {
@@ -38964,6 +39279,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
38964
39279
  id?: string | undefined;
38965
39280
  content?: string | undefined;
38966
39281
  }[] | undefined;
39282
+ reasoning_signature?: string | undefined;
38967
39283
  } | {
38968
39284
  role: "tool";
38969
39285
  content: string | {
@@ -39260,6 +39576,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39260
39576
  id?: string | undefined;
39261
39577
  content?: string | undefined;
39262
39578
  }[] | undefined;
39579
+ reasoning_signature?: string | undefined;
39263
39580
  } | {
39264
39581
  role: "tool";
39265
39582
  content: string | {
@@ -39539,6 +39856,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39539
39856
  id?: string | undefined;
39540
39857
  content?: string | undefined;
39541
39858
  }[] | undefined;
39859
+ reasoning_signature?: string | undefined;
39542
39860
  } | {
39543
39861
  role: "tool";
39544
39862
  content: string | {
@@ -39811,6 +40129,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39811
40129
  id?: string | undefined;
39812
40130
  content?: string | undefined;
39813
40131
  }[] | undefined;
40132
+ reasoning_signature?: string | undefined;
39814
40133
  } | {
39815
40134
  role: "tool";
39816
40135
  content: string | {
@@ -40090,6 +40409,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40090
40409
  id?: string | undefined;
40091
40410
  content?: string | undefined;
40092
40411
  }[] | undefined;
40412
+ reasoning_signature?: string | undefined;
40093
40413
  } | {
40094
40414
  role: "tool";
40095
40415
  content: string | {
@@ -40750,12 +41070,20 @@ interface InstrumentationConfig {
40750
41070
  vercel?: boolean;
40751
41071
  aisdk?: boolean;
40752
41072
  google?: boolean;
41073
+ googleGenAI?: boolean;
41074
+ googleADK?: boolean;
40753
41075
  huggingface?: boolean;
40754
41076
  claudeAgentSDK?: boolean;
41077
+ cursor?: boolean;
41078
+ cursorSDK?: boolean;
40755
41079
  openrouter?: boolean;
40756
41080
  openrouterAgent?: boolean;
40757
41081
  mistral?: boolean;
40758
41082
  cohere?: boolean;
41083
+ groq?: boolean;
41084
+ genkit?: boolean;
41085
+ gitHubCopilot?: boolean;
41086
+ openaiCodexSDK?: boolean;
40759
41087
  };
40760
41088
  }
40761
41089
  /**
@@ -40787,265 +41115,272 @@ interface InstrumentationConfig {
40787
41115
  */
40788
41116
  declare function configureInstrumentation(config: InstrumentationConfig): void;
40789
41117
 
40790
- type exports_AnyDataset = AnyDataset;
40791
- type exports_Attachment = Attachment;
40792
- declare const exports_Attachment: typeof Attachment;
40793
- type exports_AttachmentParams = AttachmentParams;
40794
- declare const exports_AttachmentReference: typeof AttachmentReference;
40795
- declare const exports_BRAINTRUST_CURRENT_SPAN_STORE: typeof BRAINTRUST_CURRENT_SPAN_STORE;
40796
- type exports_BackgroundLoggerOpts = BackgroundLoggerOpts;
40797
- type exports_BaseAttachment = BaseAttachment;
40798
- declare const exports_BaseAttachment: typeof BaseAttachment;
40799
- declare const exports_BaseExperiment: typeof BaseExperiment;
40800
- type exports_BaseMetadata = BaseMetadata;
40801
- declare const exports_BraintrustMiddleware: typeof BraintrustMiddleware;
40802
- type exports_BraintrustState = BraintrustState;
40803
- declare const exports_BraintrustState: typeof BraintrustState;
40804
- type exports_BraintrustStream = BraintrustStream;
40805
- declare const exports_BraintrustStream: typeof BraintrustStream;
40806
- type exports_BraintrustStreamChunk = BraintrustStreamChunk;
40807
- type exports_CachedSpanFetcher = CachedSpanFetcher;
40808
- declare const exports_CachedSpanFetcher: typeof CachedSpanFetcher;
40809
- type exports_ChatPrompt = ChatPrompt;
40810
- type exports_CodeFunction<Input, Output, Fn extends GenericFunction<Input, Output>> = CodeFunction<Input, Output, Fn>;
40811
- declare const exports_CodeFunction: typeof CodeFunction;
40812
- type exports_CodeOpts<Params, Returns, Fn extends GenericFunction<Params, Returns>> = CodeOpts<Params, Returns, Fn>;
40813
- type exports_CodePrompt = CodePrompt;
40814
- declare const exports_CodePrompt: typeof CodePrompt;
40815
- type exports_CommentEvent = CommentEvent;
40816
- type exports_CompiledPrompt<Flavor extends "chat" | "completion"> = CompiledPrompt<Flavor>;
40817
- type exports_CompiledPromptParams = CompiledPromptParams;
40818
- type exports_CompletionPrompt = CompletionPrompt;
40819
- type exports_ContextManager = ContextManager;
40820
- declare const exports_ContextManager: typeof ContextManager;
40821
- type exports_ContextParentSpanIds = ContextParentSpanIds;
40822
- type exports_CreateProjectOpts = CreateProjectOpts;
40823
- type exports_CurrentSpanStore = CurrentSpanStore;
40824
- declare const exports_DEFAULT_FETCH_BATCH_SIZE: typeof DEFAULT_FETCH_BATCH_SIZE;
40825
- declare const exports_DEFAULT_MAX_REQUEST_SIZE: typeof DEFAULT_MAX_REQUEST_SIZE;
40826
- type exports_DataSummary = DataSummary;
40827
- type exports_Dataset<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY_DATASET> = Dataset<IsLegacyDataset>;
40828
- declare const exports_Dataset: typeof Dataset;
40829
- type exports_DatasetRecord<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY_DATASET> = DatasetRecord<IsLegacyDataset>;
40830
- type exports_DatasetSummary = DatasetSummary;
40831
- type exports_DefaultMetadataType = DefaultMetadataType;
40832
- type exports_DefaultPromptArgs = DefaultPromptArgs;
40833
- declare const exports_ERR_PERMALINK: typeof ERR_PERMALINK;
40834
- type exports_EndSpanArgs = EndSpanArgs;
40835
- declare const exports_Eval: typeof Eval;
40836
- type exports_EvalCase<Input, Expected, Metadata> = EvalCase<Input, Expected, Metadata>;
40837
- type exports_EvalClassifier<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalClassifier<Input, Output, Expected, Metadata>;
40838
- type exports_EvalHooks<Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters> = EvalHooks<Expected, Metadata, Parameters>;
40839
- type exports_EvalParameterSerializedSchema = EvalParameterSerializedSchema;
40840
- type exports_EvalParameters = EvalParameters;
40841
- type exports_EvalResult<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalResult<Input, Output, Expected, Metadata>;
40842
- type exports_EvalResultWithSummary<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalResultWithSummary<Input, Output, Expected, Metadata>;
40843
- declare const exports_EvalResultWithSummary: typeof EvalResultWithSummary;
40844
- type exports_EvalScorer<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalScorer<Input, Output, Expected, Metadata>;
40845
- type exports_EvalScorerArgs<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalScorerArgs<Input, Output, Expected, Metadata>;
40846
- type exports_EvalTask<Input, Output, Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters> = EvalTask<Input, Output, Expected, Metadata, Parameters>;
40847
- type exports_Evaluator<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters> = Evaluator<Input, Output, Expected, Metadata, Parameters>;
40848
- type exports_EvaluatorDef<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters> = EvaluatorDef<Input, Output, Expected, Metadata, Parameters>;
40849
- type exports_EvaluatorDefinition = EvaluatorDefinition;
40850
- type exports_EvaluatorDefinitions = EvaluatorDefinitions;
40851
- type exports_EvaluatorFile = EvaluatorFile;
40852
- type exports_EvaluatorManifest = EvaluatorManifest;
40853
- type exports_Experiment = Experiment;
40854
- declare const exports_Experiment: typeof Experiment;
40855
- type exports_ExperimentLogFullArgs = ExperimentLogFullArgs;
40856
- type exports_ExperimentLogPartialArgs = ExperimentLogPartialArgs;
40857
- type exports_ExperimentSummary = ExperimentSummary;
40858
- type exports_Exportable = Exportable;
40859
- type exports_ExternalAttachment = ExternalAttachment;
40860
- declare const exports_ExternalAttachment: typeof ExternalAttachment;
40861
- type exports_ExternalAttachmentParams = ExternalAttachmentParams;
40862
- type exports_FailedHTTPResponse = FailedHTTPResponse;
40863
- declare const exports_FailedHTTPResponse: typeof FailedHTTPResponse;
40864
- type exports_FullInitDatasetOptions<IsLegacyDataset extends boolean> = FullInitDatasetOptions<IsLegacyDataset>;
40865
- type exports_FullInitOptions<IsOpen extends boolean> = FullInitOptions<IsOpen>;
40866
- type exports_FullLoginOptions = FullLoginOptions;
40867
- type exports_FunctionEvent = FunctionEvent;
40868
- type exports_GetThreadOptions = GetThreadOptions;
40869
- type exports_IDGenerator = IDGenerator;
40870
- declare const exports_IDGenerator: typeof IDGenerator;
40871
- type exports_IdField = IdField;
40872
- type exports_InitDatasetOptions<IsLegacyDataset extends boolean> = InitDatasetOptions<IsLegacyDataset>;
40873
- type exports_InitLoggerOptions<IsAsyncFlush> = InitLoggerOptions<IsAsyncFlush>;
40874
- type exports_InitOptions<IsOpen extends boolean> = InitOptions<IsOpen>;
40875
- type exports_InputField = InputField;
40876
- type exports_InstrumentationConfig = InstrumentationConfig;
40877
- type exports_InvokeFunctionArgs<Input, Output, Stream extends boolean = false> = InvokeFunctionArgs<Input, Output, Stream>;
40878
- type exports_InvokeReturn<Stream extends boolean, Output> = InvokeReturn<Stream, Output>;
40879
- type exports_JSONAttachment = JSONAttachment;
40880
- declare const exports_JSONAttachment: typeof JSONAttachment;
40881
- declare const exports_LEGACY_CACHED_HEADER: typeof LEGACY_CACHED_HEADER;
40882
- declare const exports_LOGS3_OVERFLOW_REFERENCE_TYPE: typeof LOGS3_OVERFLOW_REFERENCE_TYPE;
40883
- type exports_LazyValue<T> = LazyValue<T>;
40884
- declare const exports_LazyValue: typeof LazyValue;
40885
- type exports_LoadPromptOptions = LoadPromptOptions;
40886
- type exports_LogCommentFullArgs = LogCommentFullArgs;
40887
- type exports_LogFeedbackFullArgs = LogFeedbackFullArgs;
40888
- type exports_LogOptions<IsAsyncFlush> = LogOptions<IsAsyncFlush>;
40889
- type exports_Logger<IsAsyncFlush extends boolean> = Logger<IsAsyncFlush>;
40890
- declare const exports_Logger: typeof Logger;
40891
- type exports_LoginInvalidOrgError = LoginInvalidOrgError;
40892
- declare const exports_LoginInvalidOrgError: typeof LoginInvalidOrgError;
40893
- type exports_LoginOptions = LoginOptions;
40894
- type exports_Logs3OverflowInputRow = Logs3OverflowInputRow;
40895
- type exports_Logs3OverflowUpload = Logs3OverflowUpload;
40896
- type exports_MetricSummary = MetricSummary;
40897
- declare const exports_NOOP_SPAN: typeof NOOP_SPAN;
40898
- declare const exports_NOOP_SPAN_PERMALINK: typeof NOOP_SPAN_PERMALINK;
40899
- type exports_NoopSpan = NoopSpan;
40900
- declare const exports_NoopSpan: typeof NoopSpan;
40901
- type exports_ObjectFetcher<RecordType> = ObjectFetcher<RecordType>;
40902
- declare const exports_ObjectFetcher: typeof ObjectFetcher;
40903
- type exports_ObjectMetadata = ObjectMetadata;
40904
- type exports_OtherExperimentLogFields = OtherExperimentLogFields;
40905
- type exports_ParametersSource = ParametersSource;
40906
- type exports_ParentExperimentIds = ParentExperimentIds;
40907
- type exports_ParentProjectLogIds = ParentProjectLogIds;
40908
- type exports_Project = Project;
40909
- declare const exports_Project: typeof Project;
40910
- type exports_ProjectNameIdMap = ProjectNameIdMap;
40911
- declare const exports_ProjectNameIdMap: typeof ProjectNameIdMap;
40912
- type exports_PromiseUnless<B, R> = PromiseUnless<B, R>;
40913
- type exports_Prompt<HasId extends boolean = true, HasVersion extends boolean = true> = Prompt<HasId, HasVersion>;
40914
- declare const exports_Prompt: typeof Prompt;
40915
- type exports_PromptBuilder = PromptBuilder;
40916
- declare const exports_PromptBuilder: typeof PromptBuilder;
40917
- type exports_PromptContents = PromptContents;
40918
- type exports_PromptDefinition = PromptDefinition;
40919
- type exports_PromptDefinitionWithTools = PromptDefinitionWithTools;
40920
- type exports_PromptOpts<HasId extends boolean, HasVersion extends boolean, HasTools extends boolean = true, HasNoTrace extends boolean = true> = PromptOpts<HasId, HasVersion, HasTools, HasNoTrace>;
40921
- type exports_PromptRowWithId<HasId extends boolean = true, HasVersion extends boolean = true> = PromptRowWithId<HasId, HasVersion>;
40922
- type exports_ReadonlyAttachment = ReadonlyAttachment;
40923
- declare const exports_ReadonlyAttachment: typeof ReadonlyAttachment;
40924
- type exports_ReadonlyExperiment = ReadonlyExperiment;
40925
- declare const exports_ReadonlyExperiment: typeof ReadonlyExperiment;
40926
- type exports_RegisterSandboxOptions = RegisterSandboxOptions;
40927
- type exports_RegisterSandboxResult = RegisterSandboxResult;
40928
- declare const exports_Reporter: typeof Reporter;
40929
- type exports_ReporterBody<EvalReport> = ReporterBody<EvalReport>;
40930
- type exports_SandboxConfig = SandboxConfig;
40931
- type exports_ScoreSummary = ScoreSummary;
40932
- type exports_ScorerBuilder = ScorerBuilder;
40933
- declare const exports_ScorerBuilder: typeof ScorerBuilder;
40934
- type exports_ScorerOpts<Output, Input, Params, Returns, Fn extends GenericFunction<Exact<Params, ScorerArgs<Output, Input>>, Returns>> = ScorerOpts<Output, Input, Params, Returns, Fn>;
40935
- type exports_SerializedBraintrustState = SerializedBraintrustState;
40936
- type exports_SetCurrentArg = SetCurrentArg;
40937
- type exports_Span = Span;
40938
- type exports_SpanContext = SpanContext;
40939
- type exports_SpanData = SpanData;
40940
- type exports_SpanFetcher = SpanFetcher;
40941
- declare const exports_SpanFetcher: typeof SpanFetcher;
40942
- type exports_SpanImpl = SpanImpl;
40943
- declare const exports_SpanImpl: typeof SpanImpl;
40944
- type exports_StartSpanArgs = StartSpanArgs;
40945
- type exports_TemplateFormat = TemplateFormat;
40946
- type exports_TemplateRenderer = TemplateRenderer;
40947
- type exports_TemplateRendererPlugin = TemplateRendererPlugin;
40948
- type exports_TestBackgroundLogger = TestBackgroundLogger;
40949
- declare const exports_TestBackgroundLogger: typeof TestBackgroundLogger;
40950
- type exports_ToolBuilder = ToolBuilder;
40951
- declare const exports_ToolBuilder: typeof ToolBuilder;
40952
- type exports_Trace = Trace;
40953
- type exports_UUIDGenerator = UUIDGenerator;
40954
- declare const exports_UUIDGenerator: typeof UUIDGenerator;
40955
- type exports_WithTransactionId<R> = WithTransactionId<R>;
40956
- declare const exports_X_CACHED_HEADER: typeof X_CACHED_HEADER;
40957
- declare const exports__exportsForTestingOnly: typeof _exportsForTestingOnly;
40958
- declare const exports__internalGetGlobalState: typeof _internalGetGlobalState;
40959
- declare const exports__internalSetInitialState: typeof _internalSetInitialState;
40960
- declare const exports_addAzureBlobHeaders: typeof addAzureBlobHeaders;
40961
- declare const exports_braintrustStreamChunkSchema: typeof braintrustStreamChunkSchema;
40962
- declare const exports_buildLocalSummary: typeof buildLocalSummary;
40963
- declare const exports_configureInstrumentation: typeof configureInstrumentation;
40964
- declare const exports_constructLogs3OverflowRequest: typeof constructLogs3OverflowRequest;
40965
- declare const exports_createFinalValuePassThroughStream: typeof createFinalValuePassThroughStream;
40966
- declare const exports_currentExperiment: typeof currentExperiment;
40967
- declare const exports_currentLogger: typeof currentLogger;
40968
- declare const exports_currentSpan: typeof currentSpan;
40969
- declare const exports_deepCopyEvent: typeof deepCopyEvent;
40970
- declare const exports_defaultErrorScoreHandler: typeof defaultErrorScoreHandler;
40971
- declare const exports_deserializePlainStringAsJSON: typeof deserializePlainStringAsJSON;
40972
- declare const exports_devNullWritableStream: typeof devNullWritableStream;
40973
- declare const exports_evaluatorDefinitionSchema: typeof evaluatorDefinitionSchema;
40974
- declare const exports_evaluatorDefinitionsSchema: typeof evaluatorDefinitionsSchema;
40975
- declare const exports_flush: typeof flush;
40976
- declare const exports_getContextManager: typeof getContextManager;
40977
- declare const exports_getIdGenerator: typeof getIdGenerator;
40978
- declare const exports_getPromptVersions: typeof getPromptVersions;
40979
- declare const exports_getSpanParentObject: typeof getSpanParentObject;
40980
- declare const exports_getTemplateRenderer: typeof getTemplateRenderer;
40981
- declare const exports_init: typeof init;
40982
- declare const exports_initDataset: typeof initDataset;
40983
- declare const exports_initExperiment: typeof initExperiment;
40984
- declare const exports_initFunction: typeof initFunction;
40985
- declare const exports_initLogger: typeof initLogger;
40986
- declare const exports_initNodeTestSuite: typeof initNodeTestSuite;
40987
- declare const exports_invoke: typeof invoke;
40988
- declare const exports_isTemplateFormat: typeof isTemplateFormat;
40989
- declare const exports_loadParameters: typeof loadParameters;
40990
- declare const exports_loadPrompt: typeof loadPrompt;
40991
- declare const exports_log: typeof log;
40992
- declare const exports_logError: typeof logError;
40993
- declare const exports_login: typeof login;
40994
- declare const exports_loginToState: typeof loginToState;
40995
- declare const exports_logs3OverflowUploadSchema: typeof logs3OverflowUploadSchema;
40996
- declare const exports_newId: typeof newId;
40997
- declare const exports_parseCachedHeader: typeof parseCachedHeader;
40998
- declare const exports_parseTemplateFormat: typeof parseTemplateFormat;
40999
- declare const exports_permalink: typeof permalink;
41000
- declare const exports_pickLogs3OverflowObjectIds: typeof pickLogs3OverflowObjectIds;
41001
- declare const exports_projects: typeof projects;
41002
- declare const exports_promptContentsSchema: typeof promptContentsSchema;
41003
- declare const exports_promptDefinitionSchema: typeof promptDefinitionSchema;
41004
- declare const exports_promptDefinitionToPromptData: typeof promptDefinitionToPromptData;
41005
- declare const exports_promptDefinitionWithToolsSchema: typeof promptDefinitionWithToolsSchema;
41006
- declare const exports_registerOtelFlush: typeof registerOtelFlush;
41007
- declare const exports_registerSandbox: typeof registerSandbox;
41008
- declare const exports_registerTemplatePlugin: typeof registerTemplatePlugin;
41009
- declare const exports_renderMessage: typeof renderMessage;
41010
- declare const exports_renderPromptParams: typeof renderPromptParams;
41011
- declare const exports_renderTemplateContent: typeof renderTemplateContent;
41012
- declare const exports_reportFailures: typeof reportFailures;
41013
- declare const exports_runEvaluator: typeof runEvaluator;
41014
- declare const exports_setFetch: typeof setFetch;
41015
- declare const exports_setMaskingFunction: typeof setMaskingFunction;
41016
- declare const exports_spanComponentsToObjectId: typeof spanComponentsToObjectId;
41017
- declare const exports_startSpan: typeof startSpan;
41018
- declare const exports_summarize: typeof summarize;
41019
- declare const exports_templateRegistry: typeof templateRegistry;
41020
- declare const exports_traceable: typeof traceable;
41021
- declare const exports_traced: typeof traced;
41022
- declare const exports_updateSpan: typeof updateSpan;
41023
- declare const exports_uploadLogs3OverflowPayload: typeof uploadLogs3OverflowPayload;
41024
- declare const exports_utf8ByteLength: typeof utf8ByteLength;
41025
- declare const exports_withCurrent: typeof withCurrent;
41026
- declare const exports_withDataset: typeof withDataset;
41027
- declare const exports_withExperiment: typeof withExperiment;
41028
- declare const exports_withLogger: typeof withLogger;
41029
- declare const exports_withParent: typeof withParent;
41030
- declare const exports_wrapAISDK: typeof wrapAISDK;
41031
- declare const exports_wrapAISDKModel: typeof wrapAISDKModel;
41032
- declare const exports_wrapAgentClass: typeof wrapAgentClass;
41033
- declare const exports_wrapAnthropic: typeof wrapAnthropic;
41034
- declare const exports_wrapClaudeAgentSDK: typeof wrapClaudeAgentSDK;
41035
- declare const exports_wrapCohere: typeof wrapCohere;
41036
- declare const exports_wrapGoogleADK: typeof wrapGoogleADK;
41037
- declare const exports_wrapGoogleGenAI: typeof wrapGoogleGenAI;
41038
- declare const exports_wrapHuggingFace: typeof wrapHuggingFace;
41039
- declare const exports_wrapMastraAgent: typeof wrapMastraAgent;
41040
- declare const exports_wrapMistral: typeof wrapMistral;
41041
- declare const exports_wrapOpenAI: typeof wrapOpenAI;
41042
- declare const exports_wrapOpenAIv4: typeof wrapOpenAIv4;
41043
- declare const exports_wrapOpenRouter: typeof wrapOpenRouter;
41044
- declare const exports_wrapOpenRouterAgent: typeof wrapOpenRouterAgent;
41045
- declare const exports_wrapTraced: typeof wrapTraced;
41046
- declare const exports_wrapVitest: typeof wrapVitest;
41047
- declare namespace exports {
41048
- export { type exports_AnyDataset as AnyDataset, exports_Attachment as Attachment, type exports_AttachmentParams as AttachmentParams, exports_AttachmentReference as AttachmentReference, exports_BRAINTRUST_CURRENT_SPAN_STORE as BRAINTRUST_CURRENT_SPAN_STORE, type exports_BackgroundLoggerOpts as BackgroundLoggerOpts, exports_BaseAttachment as BaseAttachment, exports_BaseExperiment as BaseExperiment, type exports_BaseMetadata as BaseMetadata, exports_BraintrustMiddleware as BraintrustMiddleware, exports_BraintrustState as BraintrustState, exports_BraintrustStream as BraintrustStream, type exports_BraintrustStreamChunk as BraintrustStreamChunk, exports_CachedSpanFetcher as CachedSpanFetcher, type exports_ChatPrompt as ChatPrompt, exports_CodeFunction as CodeFunction, type exports_CodeOpts as CodeOpts, exports_CodePrompt as CodePrompt, type exports_CommentEvent as CommentEvent, type exports_CompiledPrompt as CompiledPrompt, type exports_CompiledPromptParams as CompiledPromptParams, type exports_CompletionPrompt as CompletionPrompt, exports_ContextManager as ContextManager, type exports_ContextParentSpanIds as ContextParentSpanIds, type exports_CreateProjectOpts as CreateProjectOpts, type exports_CurrentSpanStore as CurrentSpanStore, exports_DEFAULT_FETCH_BATCH_SIZE as DEFAULT_FETCH_BATCH_SIZE, exports_DEFAULT_MAX_REQUEST_SIZE as DEFAULT_MAX_REQUEST_SIZE, type exports_DataSummary as DataSummary, exports_Dataset as Dataset, type exports_DatasetRecord as DatasetRecord, type exports_DatasetSummary as DatasetSummary, type exports_DefaultMetadataType as DefaultMetadataType, type exports_DefaultPromptArgs as DefaultPromptArgs, exports_ERR_PERMALINK as ERR_PERMALINK, type exports_EndSpanArgs as EndSpanArgs, exports_Eval as Eval, type exports_EvalCase as EvalCase, type exports_EvalClassifier as EvalClassifier, type exports_EvalHooks as EvalHooks, type exports_EvalParameterSerializedSchema as EvalParameterSerializedSchema, type exports_EvalParameters as EvalParameters, type exports_EvalResult as EvalResult, exports_EvalResultWithSummary as EvalResultWithSummary, type exports_EvalScorer as EvalScorer, type exports_EvalScorerArgs as EvalScorerArgs, type exports_EvalTask as EvalTask, type exports_Evaluator as Evaluator, type exports_EvaluatorDef as EvaluatorDef, type exports_EvaluatorDefinition as EvaluatorDefinition, type exports_EvaluatorDefinitions as EvaluatorDefinitions, type exports_EvaluatorFile as EvaluatorFile, type exports_EvaluatorManifest as EvaluatorManifest, exports_Experiment as Experiment, type exports_ExperimentLogFullArgs as ExperimentLogFullArgs, type exports_ExperimentLogPartialArgs as ExperimentLogPartialArgs, type exports_ExperimentSummary as ExperimentSummary, type exports_Exportable as Exportable, exports_ExternalAttachment as ExternalAttachment, type exports_ExternalAttachmentParams as ExternalAttachmentParams, exports_FailedHTTPResponse as FailedHTTPResponse, type exports_FullInitDatasetOptions as FullInitDatasetOptions, type exports_FullInitOptions as FullInitOptions, type exports_FullLoginOptions as FullLoginOptions, type exports_FunctionEvent as FunctionEvent, type exports_GetThreadOptions as GetThreadOptions, exports_IDGenerator as IDGenerator, type exports_IdField as IdField, type exports_InitDatasetOptions as InitDatasetOptions, type exports_InitLoggerOptions as InitLoggerOptions, type exports_InitOptions as InitOptions, type exports_InputField as InputField, type exports_InstrumentationConfig as InstrumentationConfig, type exports_InvokeFunctionArgs as InvokeFunctionArgs, type exports_InvokeReturn as InvokeReturn, exports_JSONAttachment as JSONAttachment, exports_LEGACY_CACHED_HEADER as LEGACY_CACHED_HEADER, exports_LOGS3_OVERFLOW_REFERENCE_TYPE as LOGS3_OVERFLOW_REFERENCE_TYPE, exports_LazyValue as LazyValue, type exports_LoadPromptOptions as LoadPromptOptions, type exports_LogCommentFullArgs as LogCommentFullArgs, type exports_LogFeedbackFullArgs as LogFeedbackFullArgs, type exports_LogOptions as LogOptions, exports_Logger as Logger, exports_LoginInvalidOrgError as LoginInvalidOrgError, type exports_LoginOptions as LoginOptions, type exports_Logs3OverflowInputRow as Logs3OverflowInputRow, type exports_Logs3OverflowUpload as Logs3OverflowUpload, type exports_MetricSummary as MetricSummary, exports_NOOP_SPAN as NOOP_SPAN, exports_NOOP_SPAN_PERMALINK as NOOP_SPAN_PERMALINK, exports_NoopSpan as NoopSpan, exports_ObjectFetcher as ObjectFetcher, type exports_ObjectMetadata as ObjectMetadata, type exports_OtherExperimentLogFields as OtherExperimentLogFields, type exports_ParametersSource as ParametersSource, type exports_ParentExperimentIds as ParentExperimentIds, type exports_ParentProjectLogIds as ParentProjectLogIds, exports_Project as Project, exports_ProjectNameIdMap as ProjectNameIdMap, type exports_PromiseUnless as PromiseUnless, exports_Prompt as Prompt, exports_PromptBuilder as PromptBuilder, type exports_PromptContents as PromptContents, type exports_PromptDefinition as PromptDefinition, type exports_PromptDefinitionWithTools as PromptDefinitionWithTools, type exports_PromptOpts as PromptOpts, type exports_PromptRowWithId as PromptRowWithId, exports_ReadonlyAttachment as ReadonlyAttachment, exports_ReadonlyExperiment as ReadonlyExperiment, type exports_RegisterSandboxOptions as RegisterSandboxOptions, type exports_RegisterSandboxResult as RegisterSandboxResult, exports_Reporter as Reporter, type exports_ReporterBody as ReporterBody, type exports_SandboxConfig as SandboxConfig, type exports_ScoreSummary as ScoreSummary, exports_ScorerBuilder as ScorerBuilder, type exports_ScorerOpts as ScorerOpts, type exports_SerializedBraintrustState as SerializedBraintrustState, type exports_SetCurrentArg as SetCurrentArg, type exports_Span as Span, type exports_SpanContext as SpanContext, type exports_SpanData as SpanData, exports_SpanFetcher as SpanFetcher, exports_SpanImpl as SpanImpl, type exports_StartSpanArgs as StartSpanArgs, type exports_TemplateFormat as TemplateFormat, type exports_TemplateRenderer as TemplateRenderer, type exports_TemplateRendererPlugin as TemplateRendererPlugin, exports_TestBackgroundLogger as TestBackgroundLogger, exports_ToolBuilder as ToolBuilder, type exports_Trace as Trace, exports_UUIDGenerator as UUIDGenerator, type exports_WithTransactionId as WithTransactionId, exports_X_CACHED_HEADER as X_CACHED_HEADER, exports__exportsForTestingOnly as _exportsForTestingOnly, exports__internalGetGlobalState as _internalGetGlobalState, iso as _internalIso, exports__internalSetInitialState as _internalSetInitialState, exports_addAzureBlobHeaders as addAzureBlobHeaders, exports_braintrustStreamChunkSchema as braintrustStreamChunkSchema, exports_buildLocalSummary as buildLocalSummary, exports_configureInstrumentation as configureInstrumentation, exports_constructLogs3OverflowRequest as constructLogs3OverflowRequest, exports_createFinalValuePassThroughStream as createFinalValuePassThroughStream, exports_currentExperiment as currentExperiment, exports_currentLogger as currentLogger, exports_currentSpan as currentSpan, exports_deepCopyEvent as deepCopyEvent, exports_defaultErrorScoreHandler as defaultErrorScoreHandler, exports_deserializePlainStringAsJSON as deserializePlainStringAsJSON, exports_devNullWritableStream as devNullWritableStream, exports_evaluatorDefinitionSchema as evaluatorDefinitionSchema, exports_evaluatorDefinitionsSchema as evaluatorDefinitionsSchema, exports_flush as flush, exports_getContextManager as getContextManager, exports_getIdGenerator as getIdGenerator, exports_getPromptVersions as getPromptVersions, exports_getSpanParentObject as getSpanParentObject, exports_getTemplateRenderer as getTemplateRenderer, graphFramework as graph, exports_init as init, exports_initDataset as initDataset, exports_initExperiment as initExperiment, exports_initFunction as initFunction, exports_initLogger as initLogger, exports_initNodeTestSuite as initNodeTestSuite, exports_invoke as invoke, exports_isTemplateFormat as isTemplateFormat, exports_loadParameters as loadParameters, exports_loadPrompt as loadPrompt, exports_log as log, exports_logError as logError, exports_login as login, exports_loginToState as loginToState, exports_logs3OverflowUploadSchema as logs3OverflowUploadSchema, exports_newId as newId, exports_parseCachedHeader as parseCachedHeader, exports_parseTemplateFormat as parseTemplateFormat, exports_permalink as permalink, exports_pickLogs3OverflowObjectIds as pickLogs3OverflowObjectIds, exports_projects as projects, exports_promptContentsSchema as promptContentsSchema, exports_promptDefinitionSchema as promptDefinitionSchema, exports_promptDefinitionToPromptData as promptDefinitionToPromptData, exports_promptDefinitionWithToolsSchema as promptDefinitionWithToolsSchema, exports_registerOtelFlush as registerOtelFlush, exports_registerSandbox as registerSandbox, exports_registerTemplatePlugin as registerTemplatePlugin, exports_renderMessage as renderMessage, exports_renderPromptParams as renderPromptParams, exports_renderTemplateContent as renderTemplateContent, exports_reportFailures as reportFailures, exports_runEvaluator as runEvaluator, exports_setFetch as setFetch, exports_setMaskingFunction as setMaskingFunction, exports_spanComponentsToObjectId as spanComponentsToObjectId, exports_startSpan as startSpan, exports_summarize as summarize, exports_templateRegistry as templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, exports_traceable as traceable, exports_traced as traced, exports_updateSpan as updateSpan, exports_uploadLogs3OverflowPayload as uploadLogs3OverflowPayload, exports_utf8ByteLength as utf8ByteLength, exports_withCurrent as withCurrent, exports_withDataset as withDataset, exports_withExperiment as withExperiment, exports_withLogger as withLogger, exports_withParent as withParent, exports_wrapAISDK as wrapAISDK, exports_wrapAISDKModel as wrapAISDKModel, exports_wrapAgentClass as wrapAgentClass, exports_wrapAnthropic as wrapAnthropic, exports_wrapClaudeAgentSDK as wrapClaudeAgentSDK, exports_wrapCohere as wrapCohere, exports_wrapGoogleADK as wrapGoogleADK, exports_wrapGoogleGenAI as wrapGoogleGenAI, exports_wrapHuggingFace as wrapHuggingFace, exports_wrapMastraAgent as wrapMastraAgent, exports_wrapMistral as wrapMistral, exports_wrapOpenAI as wrapOpenAI, exports_wrapOpenAIv4 as wrapOpenAIv4, exports_wrapOpenRouter as wrapOpenRouter, exports_wrapOpenRouterAgent as wrapOpenRouterAgent, exports_wrapTraced as wrapTraced, exports_wrapVitest as wrapVitest };
41118
+ type exports$1_AnyDataset = AnyDataset;
41119
+ type exports$1_Attachment = Attachment;
41120
+ declare const exports$1_Attachment: typeof Attachment;
41121
+ type exports$1_AttachmentParams = AttachmentParams;
41122
+ declare const exports$1_AttachmentReference: typeof AttachmentReference;
41123
+ declare const exports$1_BRAINTRUST_CURRENT_SPAN_STORE: typeof BRAINTRUST_CURRENT_SPAN_STORE;
41124
+ type exports$1_BackgroundLoggerOpts = BackgroundLoggerOpts;
41125
+ type exports$1_BaseAttachment = BaseAttachment;
41126
+ declare const exports$1_BaseAttachment: typeof BaseAttachment;
41127
+ declare const exports$1_BaseExperiment: typeof BaseExperiment;
41128
+ type exports$1_BaseMetadata = BaseMetadata;
41129
+ declare const exports$1_BraintrustMiddleware: typeof BraintrustMiddleware;
41130
+ type exports$1_BraintrustState = BraintrustState;
41131
+ declare const exports$1_BraintrustState: typeof BraintrustState;
41132
+ type exports$1_BraintrustStream = BraintrustStream;
41133
+ declare const exports$1_BraintrustStream: typeof BraintrustStream;
41134
+ type exports$1_BraintrustStreamChunk = BraintrustStreamChunk;
41135
+ type exports$1_CachedSpanFetcher = CachedSpanFetcher;
41136
+ declare const exports$1_CachedSpanFetcher: typeof CachedSpanFetcher;
41137
+ type exports$1_ChatPrompt = ChatPrompt;
41138
+ type exports$1_CodeFunction<Input, Output, Fn extends GenericFunction<Input, Output>> = CodeFunction<Input, Output, Fn>;
41139
+ declare const exports$1_CodeFunction: typeof CodeFunction;
41140
+ type exports$1_CodeOpts<Params, Returns, Fn extends GenericFunction<Params, Returns>> = CodeOpts<Params, Returns, Fn>;
41141
+ type exports$1_CodePrompt = CodePrompt;
41142
+ declare const exports$1_CodePrompt: typeof CodePrompt;
41143
+ type exports$1_CommentEvent = CommentEvent;
41144
+ type exports$1_CompiledPrompt<Flavor extends "chat" | "completion"> = CompiledPrompt<Flavor>;
41145
+ type exports$1_CompiledPromptParams = CompiledPromptParams;
41146
+ type exports$1_CompletionPrompt = CompletionPrompt;
41147
+ type exports$1_ContextManager = ContextManager;
41148
+ declare const exports$1_ContextManager: typeof ContextManager;
41149
+ type exports$1_ContextParentSpanIds = ContextParentSpanIds;
41150
+ type exports$1_CreateProjectOpts = CreateProjectOpts;
41151
+ type exports$1_CurrentSpanStore = CurrentSpanStore;
41152
+ declare const exports$1_DEFAULT_FETCH_BATCH_SIZE: typeof DEFAULT_FETCH_BATCH_SIZE;
41153
+ declare const exports$1_DEFAULT_MAX_REQUEST_SIZE: typeof DEFAULT_MAX_REQUEST_SIZE;
41154
+ type exports$1_DataSummary = DataSummary;
41155
+ type exports$1_Dataset<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY_DATASET> = Dataset<IsLegacyDataset>;
41156
+ declare const exports$1_Dataset: typeof Dataset;
41157
+ type exports$1_DatasetRecord<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY_DATASET> = DatasetRecord<IsLegacyDataset>;
41158
+ type exports$1_DatasetRestorePreviewResult = DatasetRestorePreviewResult;
41159
+ type exports$1_DatasetRestoreResult = DatasetRestoreResult;
41160
+ type exports$1_DatasetSummary = DatasetSummary;
41161
+ type exports$1_DefaultMetadataType = DefaultMetadataType;
41162
+ type exports$1_DefaultPromptArgs = DefaultPromptArgs;
41163
+ declare const exports$1_ERR_PERMALINK: typeof ERR_PERMALINK;
41164
+ type exports$1_EndSpanArgs = EndSpanArgs;
41165
+ declare const exports$1_Eval: typeof Eval;
41166
+ type exports$1_EvalCase<Input, Expected, Metadata> = EvalCase<Input, Expected, Metadata>;
41167
+ type exports$1_EvalClassifier<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalClassifier<Input, Output, Expected, Metadata>;
41168
+ type exports$1_EvalHooks<Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters> = EvalHooks<Expected, Metadata, Parameters>;
41169
+ type exports$1_EvalParameterSerializedSchema = EvalParameterSerializedSchema;
41170
+ type exports$1_EvalParameters = EvalParameters;
41171
+ type exports$1_EvalResult<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalResult<Input, Output, Expected, Metadata>;
41172
+ type exports$1_EvalResultWithSummary<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalResultWithSummary<Input, Output, Expected, Metadata>;
41173
+ declare const exports$1_EvalResultWithSummary: typeof EvalResultWithSummary;
41174
+ type exports$1_EvalScorer<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalScorer<Input, Output, Expected, Metadata>;
41175
+ type exports$1_EvalScorerArgs<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalScorerArgs<Input, Output, Expected, Metadata>;
41176
+ type exports$1_EvalTask<Input, Output, Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters> = EvalTask<Input, Output, Expected, Metadata, Parameters>;
41177
+ type exports$1_Evaluator<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters> = Evaluator<Input, Output, Expected, Metadata, Parameters>;
41178
+ type exports$1_EvaluatorDef<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters> = EvaluatorDef<Input, Output, Expected, Metadata, Parameters>;
41179
+ type exports$1_EvaluatorDefinition = EvaluatorDefinition;
41180
+ type exports$1_EvaluatorDefinitions = EvaluatorDefinitions;
41181
+ type exports$1_EvaluatorFile = EvaluatorFile;
41182
+ type exports$1_EvaluatorManifest = EvaluatorManifest;
41183
+ type exports$1_Experiment = Experiment;
41184
+ declare const exports$1_Experiment: typeof Experiment;
41185
+ type exports$1_ExperimentLogFullArgs = ExperimentLogFullArgs;
41186
+ type exports$1_ExperimentLogPartialArgs = ExperimentLogPartialArgs;
41187
+ type exports$1_ExperimentSummary = ExperimentSummary;
41188
+ type exports$1_Exportable = Exportable;
41189
+ type exports$1_ExternalAttachment = ExternalAttachment;
41190
+ declare const exports$1_ExternalAttachment: typeof ExternalAttachment;
41191
+ type exports$1_ExternalAttachmentParams = ExternalAttachmentParams;
41192
+ type exports$1_FailedHTTPResponse = FailedHTTPResponse;
41193
+ declare const exports$1_FailedHTTPResponse: typeof FailedHTTPResponse;
41194
+ type exports$1_FullInitDatasetOptions<IsLegacyDataset extends boolean> = FullInitDatasetOptions<IsLegacyDataset>;
41195
+ type exports$1_FullInitOptions<IsOpen extends boolean> = FullInitOptions<IsOpen>;
41196
+ type exports$1_FullLoginOptions = FullLoginOptions;
41197
+ type exports$1_FunctionEvent = FunctionEvent;
41198
+ type exports$1_GetThreadOptions = GetThreadOptions;
41199
+ type exports$1_IDGenerator = IDGenerator;
41200
+ declare const exports$1_IDGenerator: typeof IDGenerator;
41201
+ type exports$1_IdField = IdField;
41202
+ type exports$1_InitDatasetOptions<IsLegacyDataset extends boolean> = InitDatasetOptions<IsLegacyDataset>;
41203
+ type exports$1_InitLoggerOptions<IsAsyncFlush> = InitLoggerOptions<IsAsyncFlush>;
41204
+ type exports$1_InitOptions<IsOpen extends boolean> = InitOptions<IsOpen>;
41205
+ type exports$1_InputField = InputField;
41206
+ type exports$1_InstrumentationConfig = InstrumentationConfig;
41207
+ type exports$1_InvokeFunctionArgs<Input, Output, Stream extends boolean = false> = InvokeFunctionArgs<Input, Output, Stream>;
41208
+ type exports$1_InvokeReturn<Stream extends boolean, Output> = InvokeReturn<Stream, Output>;
41209
+ type exports$1_JSONAttachment = JSONAttachment;
41210
+ declare const exports$1_JSONAttachment: typeof JSONAttachment;
41211
+ declare const exports$1_LEGACY_CACHED_HEADER: typeof LEGACY_CACHED_HEADER;
41212
+ declare const exports$1_LOGS3_OVERFLOW_REFERENCE_TYPE: typeof LOGS3_OVERFLOW_REFERENCE_TYPE;
41213
+ type exports$1_LazyValue<T> = LazyValue<T>;
41214
+ declare const exports$1_LazyValue: typeof LazyValue;
41215
+ type exports$1_LoadPromptOptions = LoadPromptOptions;
41216
+ type exports$1_LogCommentFullArgs = LogCommentFullArgs;
41217
+ type exports$1_LogFeedbackFullArgs = LogFeedbackFullArgs;
41218
+ type exports$1_LogOptions<IsAsyncFlush> = LogOptions<IsAsyncFlush>;
41219
+ type exports$1_Logger<IsAsyncFlush extends boolean> = Logger<IsAsyncFlush>;
41220
+ declare const exports$1_Logger: typeof Logger;
41221
+ type exports$1_LoginInvalidOrgError = LoginInvalidOrgError;
41222
+ declare const exports$1_LoginInvalidOrgError: typeof LoginInvalidOrgError;
41223
+ type exports$1_LoginOptions = LoginOptions;
41224
+ type exports$1_Logs3OverflowInputRow = Logs3OverflowInputRow;
41225
+ type exports$1_Logs3OverflowUpload = Logs3OverflowUpload;
41226
+ type exports$1_MetricSummary = MetricSummary;
41227
+ declare const exports$1_NOOP_SPAN: typeof NOOP_SPAN;
41228
+ declare const exports$1_NOOP_SPAN_PERMALINK: typeof NOOP_SPAN_PERMALINK;
41229
+ type exports$1_NoopSpan = NoopSpan;
41230
+ declare const exports$1_NoopSpan: typeof NoopSpan;
41231
+ type exports$1_ObjectFetcher<RecordType> = ObjectFetcher<RecordType>;
41232
+ declare const exports$1_ObjectFetcher: typeof ObjectFetcher;
41233
+ type exports$1_ObjectMetadata = ObjectMetadata;
41234
+ type exports$1_OtherExperimentLogFields = OtherExperimentLogFields;
41235
+ type exports$1_ParametersSource = ParametersSource;
41236
+ type exports$1_ParentExperimentIds = ParentExperimentIds;
41237
+ type exports$1_ParentProjectLogIds = ParentProjectLogIds;
41238
+ type exports$1_Project = Project;
41239
+ declare const exports$1_Project: typeof Project;
41240
+ type exports$1_ProjectNameIdMap = ProjectNameIdMap;
41241
+ declare const exports$1_ProjectNameIdMap: typeof ProjectNameIdMap;
41242
+ type exports$1_PromiseUnless<B, R> = PromiseUnless<B, R>;
41243
+ type exports$1_Prompt<HasId extends boolean = true, HasVersion extends boolean = true> = Prompt<HasId, HasVersion>;
41244
+ declare const exports$1_Prompt: typeof Prompt;
41245
+ type exports$1_PromptBuilder = PromptBuilder;
41246
+ declare const exports$1_PromptBuilder: typeof PromptBuilder;
41247
+ type exports$1_PromptContents = PromptContents;
41248
+ type exports$1_PromptDefinition = PromptDefinition;
41249
+ type exports$1_PromptDefinitionWithTools = PromptDefinitionWithTools;
41250
+ type exports$1_PromptOpts<HasId extends boolean, HasVersion extends boolean, HasTools extends boolean = true, HasNoTrace extends boolean = true> = PromptOpts<HasId, HasVersion, HasTools, HasNoTrace>;
41251
+ type exports$1_PromptRowWithId<HasId extends boolean = true, HasVersion extends boolean = true> = PromptRowWithId<HasId, HasVersion>;
41252
+ type exports$1_ReadonlyAttachment = ReadonlyAttachment;
41253
+ declare const exports$1_ReadonlyAttachment: typeof ReadonlyAttachment;
41254
+ type exports$1_ReadonlyExperiment = ReadonlyExperiment;
41255
+ declare const exports$1_ReadonlyExperiment: typeof ReadonlyExperiment;
41256
+ type exports$1_RegisterSandboxOptions = RegisterSandboxOptions;
41257
+ type exports$1_RegisterSandboxResult = RegisterSandboxResult;
41258
+ declare const exports$1_Reporter: typeof Reporter;
41259
+ type exports$1_ReporterBody<EvalReport> = ReporterBody<EvalReport>;
41260
+ type exports$1_SandboxConfig = SandboxConfig;
41261
+ type exports$1_ScoreSummary = ScoreSummary;
41262
+ type exports$1_ScorerBuilder = ScorerBuilder;
41263
+ declare const exports$1_ScorerBuilder: typeof ScorerBuilder;
41264
+ type exports$1_ScorerOpts<Output, Input, Params, Returns, Fn extends GenericFunction<Exact<Params, ScorerArgs<Output, Input>>, Returns>> = ScorerOpts<Output, Input, Params, Returns, Fn>;
41265
+ type exports$1_SerializedBraintrustState = SerializedBraintrustState;
41266
+ type exports$1_SetCurrentArg = SetCurrentArg;
41267
+ type exports$1_Span = Span;
41268
+ type exports$1_SpanContext = SpanContext;
41269
+ type exports$1_SpanData = SpanData;
41270
+ type exports$1_SpanFetcher = SpanFetcher;
41271
+ declare const exports$1_SpanFetcher: typeof SpanFetcher;
41272
+ type exports$1_SpanImpl = SpanImpl;
41273
+ declare const exports$1_SpanImpl: typeof SpanImpl;
41274
+ type exports$1_StartSpanArgs = StartSpanArgs;
41275
+ type exports$1_TemplateFormat = TemplateFormat;
41276
+ type exports$1_TemplateRenderer = TemplateRenderer;
41277
+ type exports$1_TemplateRendererPlugin = TemplateRendererPlugin;
41278
+ type exports$1_TestBackgroundLogger = TestBackgroundLogger;
41279
+ declare const exports$1_TestBackgroundLogger: typeof TestBackgroundLogger;
41280
+ type exports$1_ToolBuilder = ToolBuilder;
41281
+ declare const exports$1_ToolBuilder: typeof ToolBuilder;
41282
+ type exports$1_Trace = Trace;
41283
+ type exports$1_UUIDGenerator = UUIDGenerator;
41284
+ declare const exports$1_UUIDGenerator: typeof UUIDGenerator;
41285
+ type exports$1_WithTransactionId<R> = WithTransactionId<R>;
41286
+ declare const exports$1_X_CACHED_HEADER: typeof X_CACHED_HEADER;
41287
+ declare const exports$1__exportsForTestingOnly: typeof _exportsForTestingOnly;
41288
+ declare const exports$1__internalGetGlobalState: typeof _internalGetGlobalState;
41289
+ declare const exports$1__internalSetInitialState: typeof _internalSetInitialState;
41290
+ declare const exports$1_addAzureBlobHeaders: typeof addAzureBlobHeaders;
41291
+ declare const exports$1_braintrustStreamChunkSchema: typeof braintrustStreamChunkSchema;
41292
+ declare const exports$1_buildLocalSummary: typeof buildLocalSummary;
41293
+ declare const exports$1_configureInstrumentation: typeof configureInstrumentation;
41294
+ declare const exports$1_constructLogs3OverflowRequest: typeof constructLogs3OverflowRequest;
41295
+ declare const exports$1_createFinalValuePassThroughStream: typeof createFinalValuePassThroughStream;
41296
+ declare const exports$1_currentExperiment: typeof currentExperiment;
41297
+ declare const exports$1_currentLogger: typeof currentLogger;
41298
+ declare const exports$1_currentSpan: typeof currentSpan;
41299
+ declare const exports$1_deepCopyEvent: typeof deepCopyEvent;
41300
+ declare const exports$1_defaultErrorScoreHandler: typeof defaultErrorScoreHandler;
41301
+ declare const exports$1_deserializePlainStringAsJSON: typeof deserializePlainStringAsJSON;
41302
+ declare const exports$1_devNullWritableStream: typeof devNullWritableStream;
41303
+ declare const exports$1_evaluatorDefinitionSchema: typeof evaluatorDefinitionSchema;
41304
+ declare const exports$1_evaluatorDefinitionsSchema: typeof evaluatorDefinitionsSchema;
41305
+ declare const exports$1_flush: typeof flush;
41306
+ declare const exports$1_getContextManager: typeof getContextManager;
41307
+ declare const exports$1_getIdGenerator: typeof getIdGenerator;
41308
+ declare const exports$1_getPromptVersions: typeof getPromptVersions;
41309
+ declare const exports$1_getSpanParentObject: typeof getSpanParentObject;
41310
+ declare const exports$1_getTemplateRenderer: typeof getTemplateRenderer;
41311
+ declare const exports$1_init: typeof init;
41312
+ declare const exports$1_initDataset: typeof initDataset;
41313
+ declare const exports$1_initExperiment: typeof initExperiment;
41314
+ declare const exports$1_initFunction: typeof initFunction;
41315
+ declare const exports$1_initLogger: typeof initLogger;
41316
+ declare const exports$1_initNodeTestSuite: typeof initNodeTestSuite;
41317
+ declare const exports$1_invoke: typeof invoke;
41318
+ declare const exports$1_isTemplateFormat: typeof isTemplateFormat;
41319
+ declare const exports$1_loadParameters: typeof loadParameters;
41320
+ declare const exports$1_loadPrompt: typeof loadPrompt;
41321
+ declare const exports$1_log: typeof log;
41322
+ declare const exports$1_logError: typeof logError;
41323
+ declare const exports$1_login: typeof login;
41324
+ declare const exports$1_loginToState: typeof loginToState;
41325
+ declare const exports$1_logs3OverflowUploadSchema: typeof logs3OverflowUploadSchema;
41326
+ declare const exports$1_newId: typeof newId;
41327
+ declare const exports$1_parseCachedHeader: typeof parseCachedHeader;
41328
+ declare const exports$1_parseTemplateFormat: typeof parseTemplateFormat;
41329
+ declare const exports$1_permalink: typeof permalink;
41330
+ declare const exports$1_pickLogs3OverflowObjectIds: typeof pickLogs3OverflowObjectIds;
41331
+ declare const exports$1_projects: typeof projects;
41332
+ declare const exports$1_promptContentsSchema: typeof promptContentsSchema;
41333
+ declare const exports$1_promptDefinitionSchema: typeof promptDefinitionSchema;
41334
+ declare const exports$1_promptDefinitionToPromptData: typeof promptDefinitionToPromptData;
41335
+ declare const exports$1_promptDefinitionWithToolsSchema: typeof promptDefinitionWithToolsSchema;
41336
+ declare const exports$1_registerOtelFlush: typeof registerOtelFlush;
41337
+ declare const exports$1_registerSandbox: typeof registerSandbox;
41338
+ declare const exports$1_registerTemplatePlugin: typeof registerTemplatePlugin;
41339
+ declare const exports$1_renderMessage: typeof renderMessage;
41340
+ declare const exports$1_renderPromptParams: typeof renderPromptParams;
41341
+ declare const exports$1_renderTemplateContent: typeof renderTemplateContent;
41342
+ declare const exports$1_reportFailures: typeof reportFailures;
41343
+ declare const exports$1_runEvaluator: typeof runEvaluator;
41344
+ declare const exports$1_setFetch: typeof setFetch;
41345
+ declare const exports$1_setMaskingFunction: typeof setMaskingFunction;
41346
+ declare const exports$1_spanComponentsToObjectId: typeof spanComponentsToObjectId;
41347
+ declare const exports$1_startSpan: typeof startSpan;
41348
+ declare const exports$1_summarize: typeof summarize;
41349
+ declare const exports$1_templateRegistry: typeof templateRegistry;
41350
+ declare const exports$1_traceable: typeof traceable;
41351
+ declare const exports$1_traced: typeof traced;
41352
+ declare const exports$1_updateSpan: typeof updateSpan;
41353
+ declare const exports$1_uploadLogs3OverflowPayload: typeof uploadLogs3OverflowPayload;
41354
+ declare const exports$1_utf8ByteLength: typeof utf8ByteLength;
41355
+ declare const exports$1_withCurrent: typeof withCurrent;
41356
+ declare const exports$1_withDataset: typeof withDataset;
41357
+ declare const exports$1_withExperiment: typeof withExperiment;
41358
+ declare const exports$1_withLogger: typeof withLogger;
41359
+ declare const exports$1_withParent: typeof withParent;
41360
+ declare const exports$1_wrapAISDK: typeof wrapAISDK;
41361
+ declare const exports$1_wrapAISDKModel: typeof wrapAISDKModel;
41362
+ declare const exports$1_wrapAgentClass: typeof wrapAgentClass;
41363
+ declare const exports$1_wrapAnthropic: typeof wrapAnthropic;
41364
+ declare const exports$1_wrapClaudeAgentSDK: typeof wrapClaudeAgentSDK;
41365
+ declare const exports$1_wrapCohere: typeof wrapCohere;
41366
+ declare const exports$1_wrapCopilotClient: typeof wrapCopilotClient;
41367
+ declare const exports$1_wrapCursorSDK: typeof wrapCursorSDK;
41368
+ declare const exports$1_wrapGenkit: typeof wrapGenkit;
41369
+ declare const exports$1_wrapGoogleADK: typeof wrapGoogleADK;
41370
+ declare const exports$1_wrapGoogleGenAI: typeof wrapGoogleGenAI;
41371
+ declare const exports$1_wrapGroq: typeof wrapGroq;
41372
+ declare const exports$1_wrapHuggingFace: typeof wrapHuggingFace;
41373
+ declare const exports$1_wrapMastraAgent: typeof wrapMastraAgent;
41374
+ declare const exports$1_wrapMistral: typeof wrapMistral;
41375
+ declare const exports$1_wrapOpenAI: typeof wrapOpenAI;
41376
+ declare const exports$1_wrapOpenAICodexSDK: typeof wrapOpenAICodexSDK;
41377
+ declare const exports$1_wrapOpenAIv4: typeof wrapOpenAIv4;
41378
+ declare const exports$1_wrapOpenRouter: typeof wrapOpenRouter;
41379
+ declare const exports$1_wrapOpenRouterAgent: typeof wrapOpenRouterAgent;
41380
+ declare const exports$1_wrapTraced: typeof wrapTraced;
41381
+ declare const exports$1_wrapVitest: typeof wrapVitest;
41382
+ declare namespace exports$1 {
41383
+ export { type exports$1_AnyDataset as AnyDataset, exports$1_Attachment as Attachment, type exports$1_AttachmentParams as AttachmentParams, exports$1_AttachmentReference as AttachmentReference, exports$1_BRAINTRUST_CURRENT_SPAN_STORE as BRAINTRUST_CURRENT_SPAN_STORE, type exports$1_BackgroundLoggerOpts as BackgroundLoggerOpts, exports$1_BaseAttachment as BaseAttachment, exports$1_BaseExperiment as BaseExperiment, type exports$1_BaseMetadata as BaseMetadata, exports$1_BraintrustMiddleware as BraintrustMiddleware, exports$1_BraintrustState as BraintrustState, exports$1_BraintrustStream as BraintrustStream, type exports$1_BraintrustStreamChunk as BraintrustStreamChunk, exports$1_CachedSpanFetcher as CachedSpanFetcher, type exports$1_ChatPrompt as ChatPrompt, exports$1_CodeFunction as CodeFunction, type exports$1_CodeOpts as CodeOpts, exports$1_CodePrompt as CodePrompt, type exports$1_CommentEvent as CommentEvent, type exports$1_CompiledPrompt as CompiledPrompt, type exports$1_CompiledPromptParams as CompiledPromptParams, type exports$1_CompletionPrompt as CompletionPrompt, exports$1_ContextManager as ContextManager, type exports$1_ContextParentSpanIds as ContextParentSpanIds, type exports$1_CreateProjectOpts as CreateProjectOpts, type exports$1_CurrentSpanStore as CurrentSpanStore, exports$1_DEFAULT_FETCH_BATCH_SIZE as DEFAULT_FETCH_BATCH_SIZE, exports$1_DEFAULT_MAX_REQUEST_SIZE as DEFAULT_MAX_REQUEST_SIZE, type exports$1_DataSummary as DataSummary, exports$1_Dataset as Dataset, type exports$1_DatasetRecord as DatasetRecord, type exports$1_DatasetRestorePreviewResult as DatasetRestorePreviewResult, type exports$1_DatasetRestoreResult as DatasetRestoreResult, type DatasetSnapshotType as DatasetSnapshot, type exports$1_DatasetSummary as DatasetSummary, type exports$1_DefaultMetadataType as DefaultMetadataType, type exports$1_DefaultPromptArgs as DefaultPromptArgs, exports$1_ERR_PERMALINK as ERR_PERMALINK, type exports$1_EndSpanArgs as EndSpanArgs, exports$1_Eval as Eval, type exports$1_EvalCase as EvalCase, type exports$1_EvalClassifier as EvalClassifier, type exports$1_EvalHooks as EvalHooks, type exports$1_EvalParameterSerializedSchema as EvalParameterSerializedSchema, type exports$1_EvalParameters as EvalParameters, type exports$1_EvalResult as EvalResult, exports$1_EvalResultWithSummary as EvalResultWithSummary, type exports$1_EvalScorer as EvalScorer, type exports$1_EvalScorerArgs as EvalScorerArgs, type exports$1_EvalTask as EvalTask, type exports$1_Evaluator as Evaluator, type exports$1_EvaluatorDef as EvaluatorDef, type exports$1_EvaluatorDefinition as EvaluatorDefinition, type exports$1_EvaluatorDefinitions as EvaluatorDefinitions, type exports$1_EvaluatorFile as EvaluatorFile, type exports$1_EvaluatorManifest as EvaluatorManifest, exports$1_Experiment as Experiment, type exports$1_ExperimentLogFullArgs as ExperimentLogFullArgs, type exports$1_ExperimentLogPartialArgs as ExperimentLogPartialArgs, type exports$1_ExperimentSummary as ExperimentSummary, type exports$1_Exportable as Exportable, exports$1_ExternalAttachment as ExternalAttachment, type exports$1_ExternalAttachmentParams as ExternalAttachmentParams, exports$1_FailedHTTPResponse as FailedHTTPResponse, type exports$1_FullInitDatasetOptions as FullInitDatasetOptions, type exports$1_FullInitOptions as FullInitOptions, type exports$1_FullLoginOptions as FullLoginOptions, type exports$1_FunctionEvent as FunctionEvent, type exports$1_GetThreadOptions as GetThreadOptions, exports$1_IDGenerator as IDGenerator, type exports$1_IdField as IdField, type exports$1_InitDatasetOptions as InitDatasetOptions, type exports$1_InitLoggerOptions as InitLoggerOptions, type exports$1_InitOptions as InitOptions, type exports$1_InputField as InputField, type exports$1_InstrumentationConfig as InstrumentationConfig, type exports$1_InvokeFunctionArgs as InvokeFunctionArgs, type exports$1_InvokeReturn as InvokeReturn, exports$1_JSONAttachment as JSONAttachment, exports$1_LEGACY_CACHED_HEADER as LEGACY_CACHED_HEADER, exports$1_LOGS3_OVERFLOW_REFERENCE_TYPE as LOGS3_OVERFLOW_REFERENCE_TYPE, exports$1_LazyValue as LazyValue, type exports$1_LoadPromptOptions as LoadPromptOptions, type exports$1_LogCommentFullArgs as LogCommentFullArgs, type exports$1_LogFeedbackFullArgs as LogFeedbackFullArgs, type exports$1_LogOptions as LogOptions, exports$1_Logger as Logger, exports$1_LoginInvalidOrgError as LoginInvalidOrgError, type exports$1_LoginOptions as LoginOptions, type exports$1_Logs3OverflowInputRow as Logs3OverflowInputRow, type exports$1_Logs3OverflowUpload as Logs3OverflowUpload, type exports$1_MetricSummary as MetricSummary, exports$1_NOOP_SPAN as NOOP_SPAN, exports$1_NOOP_SPAN_PERMALINK as NOOP_SPAN_PERMALINK, exports$1_NoopSpan as NoopSpan, exports$1_ObjectFetcher as ObjectFetcher, type exports$1_ObjectMetadata as ObjectMetadata, type exports$1_OtherExperimentLogFields as OtherExperimentLogFields, type exports$1_ParametersSource as ParametersSource, type exports$1_ParentExperimentIds as ParentExperimentIds, type exports$1_ParentProjectLogIds as ParentProjectLogIds, exports$1_Project as Project, exports$1_ProjectNameIdMap as ProjectNameIdMap, type exports$1_PromiseUnless as PromiseUnless, exports$1_Prompt as Prompt, exports$1_PromptBuilder as PromptBuilder, type exports$1_PromptContents as PromptContents, type exports$1_PromptDefinition as PromptDefinition, type exports$1_PromptDefinitionWithTools as PromptDefinitionWithTools, type exports$1_PromptOpts as PromptOpts, type exports$1_PromptRowWithId as PromptRowWithId, exports$1_ReadonlyAttachment as ReadonlyAttachment, exports$1_ReadonlyExperiment as ReadonlyExperiment, type exports$1_RegisterSandboxOptions as RegisterSandboxOptions, type exports$1_RegisterSandboxResult as RegisterSandboxResult, exports$1_Reporter as Reporter, type exports$1_ReporterBody as ReporterBody, type exports$1_SandboxConfig as SandboxConfig, type exports$1_ScoreSummary as ScoreSummary, exports$1_ScorerBuilder as ScorerBuilder, type exports$1_ScorerOpts as ScorerOpts, type exports$1_SerializedBraintrustState as SerializedBraintrustState, type exports$1_SetCurrentArg as SetCurrentArg, type exports$1_Span as Span, type exports$1_SpanContext as SpanContext, type exports$1_SpanData as SpanData, exports$1_SpanFetcher as SpanFetcher, exports$1_SpanImpl as SpanImpl, type exports$1_StartSpanArgs as StartSpanArgs, type exports$1_TemplateFormat as TemplateFormat, type exports$1_TemplateRenderer as TemplateRenderer, type exports$1_TemplateRendererPlugin as TemplateRendererPlugin, exports$1_TestBackgroundLogger as TestBackgroundLogger, exports$1_ToolBuilder as ToolBuilder, type exports$1_Trace as Trace, exports$1_UUIDGenerator as UUIDGenerator, type exports$1_WithTransactionId as WithTransactionId, exports$1_X_CACHED_HEADER as X_CACHED_HEADER, exports$1__exportsForTestingOnly as _exportsForTestingOnly, exports$1__internalGetGlobalState as _internalGetGlobalState, iso as _internalIso, exports$1__internalSetInitialState as _internalSetInitialState, exports$1_addAzureBlobHeaders as addAzureBlobHeaders, exports$1_braintrustStreamChunkSchema as braintrustStreamChunkSchema, exports$1_buildLocalSummary as buildLocalSummary, exports$1_configureInstrumentation as configureInstrumentation, exports$1_constructLogs3OverflowRequest as constructLogs3OverflowRequest, exports$1_createFinalValuePassThroughStream as createFinalValuePassThroughStream, exports$1_currentExperiment as currentExperiment, exports$1_currentLogger as currentLogger, exports$1_currentSpan as currentSpan, exports$1_deepCopyEvent as deepCopyEvent, exports$1_defaultErrorScoreHandler as defaultErrorScoreHandler, exports$1_deserializePlainStringAsJSON as deserializePlainStringAsJSON, exports$1_devNullWritableStream as devNullWritableStream, exports$1_evaluatorDefinitionSchema as evaluatorDefinitionSchema, exports$1_evaluatorDefinitionsSchema as evaluatorDefinitionsSchema, exports$1_flush as flush, exports$1_getContextManager as getContextManager, exports$1_getIdGenerator as getIdGenerator, exports$1_getPromptVersions as getPromptVersions, exports$1_getSpanParentObject as getSpanParentObject, exports$1_getTemplateRenderer as getTemplateRenderer, graphFramework as graph, exports$1_init as init, exports$1_initDataset as initDataset, exports$1_initExperiment as initExperiment, exports$1_initFunction as initFunction, exports$1_initLogger as initLogger, exports$1_initNodeTestSuite as initNodeTestSuite, exports$1_invoke as invoke, exports$1_isTemplateFormat as isTemplateFormat, exports$1_loadParameters as loadParameters, exports$1_loadPrompt as loadPrompt, exports$1_log as log, exports$1_logError as logError, exports$1_login as login, exports$1_loginToState as loginToState, exports$1_logs3OverflowUploadSchema as logs3OverflowUploadSchema, exports$1_newId as newId, exports$1_parseCachedHeader as parseCachedHeader, exports$1_parseTemplateFormat as parseTemplateFormat, exports$1_permalink as permalink, exports$1_pickLogs3OverflowObjectIds as pickLogs3OverflowObjectIds, exports$1_projects as projects, exports$1_promptContentsSchema as promptContentsSchema, exports$1_promptDefinitionSchema as promptDefinitionSchema, exports$1_promptDefinitionToPromptData as promptDefinitionToPromptData, exports$1_promptDefinitionWithToolsSchema as promptDefinitionWithToolsSchema, exports$1_registerOtelFlush as registerOtelFlush, exports$1_registerSandbox as registerSandbox, exports$1_registerTemplatePlugin as registerTemplatePlugin, exports$1_renderMessage as renderMessage, exports$1_renderPromptParams as renderPromptParams, exports$1_renderTemplateContent as renderTemplateContent, exports$1_reportFailures as reportFailures, exports$1_runEvaluator as runEvaluator, exports$1_setFetch as setFetch, exports$1_setMaskingFunction as setMaskingFunction, exports$1_spanComponentsToObjectId as spanComponentsToObjectId, exports$1_startSpan as startSpan, exports$1_summarize as summarize, exports$1_templateRegistry as templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, exports$1_traceable as traceable, exports$1_traced as traced, exports$1_updateSpan as updateSpan, exports$1_uploadLogs3OverflowPayload as uploadLogs3OverflowPayload, exports$1_utf8ByteLength as utf8ByteLength, exports$1_withCurrent as withCurrent, exports$1_withDataset as withDataset, exports$1_withExperiment as withExperiment, exports$1_withLogger as withLogger, exports$1_withParent as withParent, exports$1_wrapAISDK as wrapAISDK, exports$1_wrapAISDKModel as wrapAISDKModel, exports$1_wrapAgentClass as wrapAgentClass, exports$1_wrapAnthropic as wrapAnthropic, exports$1_wrapClaudeAgentSDK as wrapClaudeAgentSDK, exports$1_wrapCohere as wrapCohere, exports$1_wrapCopilotClient as wrapCopilotClient, exports$1_wrapCursorSDK as wrapCursorSDK, exports$1_wrapGenkit as wrapGenkit, exports$1_wrapGoogleADK as wrapGoogleADK, exports$1_wrapGoogleGenAI as wrapGoogleGenAI, exports$1_wrapGroq as wrapGroq, exports$1_wrapHuggingFace as wrapHuggingFace, exports$1_wrapMastraAgent as wrapMastraAgent, exports$1_wrapMistral as wrapMistral, exports$1_wrapOpenAI as wrapOpenAI, exports$1_wrapOpenAICodexSDK as wrapOpenAICodexSDK, exports$1_wrapOpenAIv4 as wrapOpenAIv4, exports$1_wrapOpenRouter as wrapOpenRouter, exports$1_wrapOpenRouterAgent as wrapOpenRouterAgent, exports$1_wrapTraced as wrapTraced, exports$1_wrapVitest as wrapVitest };
41049
41384
  }
41050
41385
 
41051
- export { type AnyDataset, Attachment, type AttachmentParams, AttachmentReference, BRAINTRUST_CURRENT_SPAN_STORE, type BackgroundLoggerOpts, BaseAttachment, BaseExperiment, type BaseMetadata, BraintrustMiddleware, BraintrustState, BraintrustStream, type BraintrustStreamChunk, CachedSpanFetcher, type ChatPrompt, CodeFunction, type CodeOpts, CodePrompt, type CommentEvent, type CompiledPrompt, type CompiledPromptParams, type CompletionPrompt, ContextManager, type ContextParentSpanIds, type CreateProjectOpts, type CurrentSpanStore, DEFAULT_FETCH_BATCH_SIZE, DEFAULT_MAX_REQUEST_SIZE, type DataSummary, Dataset, type DatasetRecord, type DatasetSummary, type DefaultMetadataType, type DefaultPromptArgs, ERR_PERMALINK, type EndSpanArgs, Eval, type EvalCase, type EvalClassifier, type EvalHooks, type EvalParameterSerializedSchema, type EvalParameters, type EvalResult, EvalResultWithSummary, type EvalScorer, type EvalScorerArgs, type EvalTask, type Evaluator, type EvaluatorDef, type EvaluatorDefinition, type EvaluatorDefinitions, type EvaluatorFile, type EvaluatorManifest, Experiment, type ExperimentLogFullArgs, type ExperimentLogPartialArgs, type ExperimentSummary, type Exportable, ExternalAttachment, type ExternalAttachmentParams, FailedHTTPResponse, type FullInitDatasetOptions, type FullInitOptions, type FullLoginOptions, type FunctionEvent, type GetThreadOptions, IDGenerator, type IdField, type InitDatasetOptions, type InitLoggerOptions, type InitOptions, type InputField, type InstrumentationConfig, type InvokeFunctionArgs, type InvokeReturn, JSONAttachment, LEGACY_CACHED_HEADER, LOGS3_OVERFLOW_REFERENCE_TYPE, LazyValue, type LoadPromptOptions, type LogCommentFullArgs, type LogFeedbackFullArgs, type LogOptions, Logger, LoginInvalidOrgError, type LoginOptions, type Logs3OverflowInputRow, type Logs3OverflowUpload, type MetricSummary, NOOP_SPAN, NOOP_SPAN_PERMALINK, NoopSpan, ObjectFetcher, type ObjectMetadata, type OtherExperimentLogFields, type ParametersSource, type ParentExperimentIds, type ParentProjectLogIds, Project, ProjectNameIdMap, type PromiseUnless, Prompt, PromptBuilder, type PromptContents, type PromptDefinition, type PromptDefinitionWithTools, type PromptOpts, type PromptRowWithId, ReadonlyAttachment, ReadonlyExperiment, type RegisterSandboxOptions, type RegisterSandboxResult, Reporter, type ReporterBody, type SandboxConfig, type ScoreSummary, ScorerBuilder, type ScorerOpts, type SerializedBraintrustState, type SetCurrentArg, type Span, type SpanContext, type SpanData, SpanFetcher, SpanImpl, type StartSpanArgs, type TemplateFormat, type TemplateRenderer, type TemplateRendererPlugin, TestBackgroundLogger, ToolBuilder, type Trace, UUIDGenerator, type WithTransactionId, X_CACHED_HEADER, _exportsForTestingOnly, _internalGetGlobalState, iso as _internalIso, _internalSetInitialState, addAzureBlobHeaders, braintrustStreamChunkSchema, buildLocalSummary, configureInstrumentation, constructLogs3OverflowRequest, createFinalValuePassThroughStream, currentExperiment, currentLogger, currentSpan, deepCopyEvent, exports as default, defaultErrorScoreHandler, deserializePlainStringAsJSON, devNullWritableStream, evaluatorDefinitionSchema, evaluatorDefinitionsSchema, flush, getContextManager, getIdGenerator, getPromptVersions, getSpanParentObject, getTemplateRenderer, graphFramework as graph, init, initDataset, initExperiment, initFunction, initLogger, initNodeTestSuite, invoke, isTemplateFormat, loadParameters, loadPrompt, log, logError, login, loginToState, logs3OverflowUploadSchema, newId, parseCachedHeader, parseTemplateFormat, permalink, pickLogs3OverflowObjectIds, projects, promptContentsSchema, promptDefinitionSchema, promptDefinitionToPromptData, promptDefinitionWithToolsSchema, registerOtelFlush, registerSandbox, registerTemplatePlugin, renderMessage, renderPromptParams, renderTemplateContent, reportFailures, runEvaluator, setFetch, setMaskingFunction, spanComponentsToObjectId, startSpan, summarize, templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, traceable, traced, updateSpan, uploadLogs3OverflowPayload, utf8ByteLength, withCurrent, withDataset, withExperiment, withLogger, withParent, wrapAISDK, wrapAISDKModel, wrapAgentClass, wrapAnthropic, wrapClaudeAgentSDK, wrapCohere, wrapGoogleADK, wrapGoogleGenAI, wrapHuggingFace, wrapMastraAgent, wrapMistral, wrapOpenAI, wrapOpenAIv4, wrapOpenRouter, wrapOpenRouterAgent, wrapTraced, wrapVitest };
41386
+ export { type AnyDataset, Attachment, type AttachmentParams, AttachmentReference, BRAINTRUST_CURRENT_SPAN_STORE, type BackgroundLoggerOpts, BaseAttachment, BaseExperiment, type BaseMetadata, BraintrustMiddleware, BraintrustState, BraintrustStream, type BraintrustStreamChunk, CachedSpanFetcher, type ChatPrompt, CodeFunction, type CodeOpts, CodePrompt, type CommentEvent, type CompiledPrompt, type CompiledPromptParams, type CompletionPrompt, ContextManager, type ContextParentSpanIds, type CreateProjectOpts, type CurrentSpanStore, DEFAULT_FETCH_BATCH_SIZE, DEFAULT_MAX_REQUEST_SIZE, type DataSummary, Dataset, type DatasetRecord, type DatasetRestorePreviewResult, type DatasetRestoreResult, type DatasetSnapshotType as DatasetSnapshot, type DatasetSummary, type DefaultMetadataType, type DefaultPromptArgs, ERR_PERMALINK, type EndSpanArgs, Eval, type EvalCase, type EvalClassifier, type EvalHooks, type EvalParameterSerializedSchema, type EvalParameters, type EvalResult, EvalResultWithSummary, type EvalScorer, type EvalScorerArgs, type EvalTask, type Evaluator, type EvaluatorDef, type EvaluatorDefinition, type EvaluatorDefinitions, type EvaluatorFile, type EvaluatorManifest, Experiment, type ExperimentLogFullArgs, type ExperimentLogPartialArgs, type ExperimentSummary, type Exportable, ExternalAttachment, type ExternalAttachmentParams, FailedHTTPResponse, type FullInitDatasetOptions, type FullInitOptions, type FullLoginOptions, type FunctionEvent, type GetThreadOptions, IDGenerator, type IdField, type InitDatasetOptions, type InitLoggerOptions, type InitOptions, type InputField, type InstrumentationConfig, type InvokeFunctionArgs, type InvokeReturn, JSONAttachment, LEGACY_CACHED_HEADER, LOGS3_OVERFLOW_REFERENCE_TYPE, LazyValue, type LoadPromptOptions, type LogCommentFullArgs, type LogFeedbackFullArgs, type LogOptions, Logger, LoginInvalidOrgError, type LoginOptions, type Logs3OverflowInputRow, type Logs3OverflowUpload, type MetricSummary, NOOP_SPAN, NOOP_SPAN_PERMALINK, NoopSpan, ObjectFetcher, type ObjectMetadata, type OtherExperimentLogFields, type ParametersSource, type ParentExperimentIds, type ParentProjectLogIds, Project, ProjectNameIdMap, type PromiseUnless, Prompt, PromptBuilder, type PromptContents, type PromptDefinition, type PromptDefinitionWithTools, type PromptOpts, type PromptRowWithId, ReadonlyAttachment, ReadonlyExperiment, type RegisterSandboxOptions, type RegisterSandboxResult, Reporter, type ReporterBody, type SandboxConfig, type ScoreSummary, ScorerBuilder, type ScorerOpts, type SerializedBraintrustState, type SetCurrentArg, type Span, type SpanContext, type SpanData, SpanFetcher, SpanImpl, type StartSpanArgs, type TemplateFormat, type TemplateRenderer, type TemplateRendererPlugin, TestBackgroundLogger, ToolBuilder, type Trace, UUIDGenerator, type WithTransactionId, X_CACHED_HEADER, _exportsForTestingOnly, _internalGetGlobalState, iso as _internalIso, _internalSetInitialState, addAzureBlobHeaders, braintrustStreamChunkSchema, buildLocalSummary, configureInstrumentation, constructLogs3OverflowRequest, createFinalValuePassThroughStream, currentExperiment, currentLogger, currentSpan, deepCopyEvent, exports$1 as default, defaultErrorScoreHandler, deserializePlainStringAsJSON, devNullWritableStream, evaluatorDefinitionSchema, evaluatorDefinitionsSchema, flush, getContextManager, getIdGenerator, getPromptVersions, getSpanParentObject, getTemplateRenderer, graphFramework as graph, init, initDataset, initExperiment, initFunction, initLogger, initNodeTestSuite, invoke, isTemplateFormat, loadParameters, loadPrompt, log, logError, login, loginToState, logs3OverflowUploadSchema, newId, parseCachedHeader, parseTemplateFormat, permalink, pickLogs3OverflowObjectIds, projects, promptContentsSchema, promptDefinitionSchema, promptDefinitionToPromptData, promptDefinitionWithToolsSchema, registerOtelFlush, registerSandbox, registerTemplatePlugin, renderMessage, renderPromptParams, renderTemplateContent, reportFailures, runEvaluator, setFetch, setMaskingFunction, spanComponentsToObjectId, startSpan, summarize, templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, traceable, traced, updateSpan, uploadLogs3OverflowPayload, utf8ByteLength, withCurrent, withDataset, withExperiment, withLogger, withParent, wrapAISDK, wrapAISDKModel, wrapAgentClass, wrapAnthropic, wrapClaudeAgentSDK, wrapCohere, wrapCopilotClient, wrapCursorSDK, wrapGenkit, wrapGoogleADK, wrapGoogleGenAI, wrapGroq, wrapHuggingFace, wrapMastraAgent, wrapMistral, wrapOpenAI, wrapOpenAICodexSDK, wrapOpenAIv4, wrapOpenRouter, wrapOpenRouterAgent, wrapTraced, wrapVitest };