braintrust 3.4.0 → 3.6.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 (58) hide show
  1. package/dev/dist/index.d.mts +49 -7
  2. package/dev/dist/index.d.ts +49 -7
  3. package/dev/dist/index.js +2383 -494
  4. package/dev/dist/index.mjs +2213 -324
  5. package/dist/auto-instrumentations/bundler/esbuild.cjs +289 -10
  6. package/dist/auto-instrumentations/bundler/esbuild.d.mts +2 -2
  7. package/dist/auto-instrumentations/bundler/esbuild.d.ts +2 -2
  8. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/rollup.cjs +289 -10
  10. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  11. package/dist/auto-instrumentations/bundler/vite.cjs +289 -10
  12. package/dist/auto-instrumentations/bundler/vite.d.mts +2 -2
  13. package/dist/auto-instrumentations/bundler/vite.d.ts +2 -2
  14. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  15. package/dist/auto-instrumentations/bundler/webpack.cjs +289 -10
  16. package/dist/auto-instrumentations/bundler/webpack.d.mts +2 -2
  17. package/dist/auto-instrumentations/bundler/webpack.d.ts +2 -2
  18. package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
  19. package/dist/auto-instrumentations/chunk-EVUKFMHG.mjs +41 -0
  20. package/dist/auto-instrumentations/{chunk-LVWWLUMN.mjs → chunk-F7WAXFNM.mjs} +290 -11
  21. package/dist/auto-instrumentations/chunk-VLEJ5AEK.mjs +41 -0
  22. package/dist/auto-instrumentations/{chunk-D5ZPIUEL.mjs → chunk-WOUC73KB.mjs} +3 -1
  23. package/dist/auto-instrumentations/hook.mjs +358 -48
  24. package/dist/auto-instrumentations/index.cjs +290 -10
  25. package/dist/auto-instrumentations/index.d.mts +3 -1
  26. package/dist/auto-instrumentations/index.d.ts +3 -1
  27. package/dist/auto-instrumentations/index.mjs +3 -1
  28. package/dist/auto-instrumentations/loader/cjs-patch.cjs +32 -10
  29. package/dist/auto-instrumentations/loader/cjs-patch.mjs +10 -5
  30. package/dist/auto-instrumentations/loader/esm-hook.mjs +4 -4
  31. package/dist/auto-instrumentations/loader/get-package-version.cjs +28 -8
  32. package/dist/auto-instrumentations/loader/get-package-version.d.mts +2 -1
  33. package/dist/auto-instrumentations/loader/get-package-version.d.ts +2 -1
  34. package/dist/auto-instrumentations/loader/get-package-version.mjs +3 -1
  35. package/dist/browser.d.mts +357 -271
  36. package/dist/browser.d.ts +357 -271
  37. package/dist/browser.js +2345 -343
  38. package/dist/browser.mjs +2345 -343
  39. package/dist/cli.js +2296 -414
  40. package/dist/edge-light.d.mts +1 -1
  41. package/dist/edge-light.d.ts +1 -1
  42. package/dist/edge-light.js +2292 -315
  43. package/dist/edge-light.mjs +2292 -315
  44. package/dist/index.d.mts +370 -284
  45. package/dist/index.d.ts +370 -284
  46. package/dist/index.js +2642 -638
  47. package/dist/index.mjs +2385 -381
  48. package/dist/instrumentation/index.d.mts +3 -0
  49. package/dist/instrumentation/index.d.ts +3 -0
  50. package/dist/instrumentation/index.js +1955 -198
  51. package/dist/instrumentation/index.mjs +1955 -198
  52. package/dist/workerd.d.mts +1 -1
  53. package/dist/workerd.d.ts +1 -1
  54. package/dist/workerd.js +2292 -315
  55. package/dist/workerd.mjs +2292 -315
  56. package/package.json +22 -6
  57. package/dist/auto-instrumentations/chunk-XDBPUTVE.mjs +0 -22
  58. package/dist/auto-instrumentations/chunk-ZEC7BCL4.mjs +0 -22
package/dist/index.d.ts CHANGED
@@ -1,5 +1,22 @@
1
1
  import { z } from 'zod/v3';
2
2
 
3
+ declare const ResponseFormatJsonSchema: z.ZodObject<{
4
+ name: z.ZodString;
5
+ description: z.ZodOptional<z.ZodString>;
6
+ schema: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodString]>>;
7
+ strict: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ name: string;
10
+ description?: string | undefined;
11
+ schema?: string | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
12
+ strict?: boolean | null | undefined;
13
+ }, {
14
+ name: string;
15
+ description?: string | undefined;
16
+ schema?: string | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
17
+ strict?: boolean | null | undefined;
18
+ }>;
19
+ type ResponseFormatJsonSchemaType = z.infer<typeof ResponseFormatJsonSchema>;
3
20
  declare const AnyModelParams: z.ZodObject<{
4
21
  temperature: z.ZodOptional<z.ZodNumber>;
5
22
  top_p: z.ZodOptional<z.ZodNumber>;
@@ -250,10 +267,10 @@ declare const AttachmentStatus: z.ZodObject<{
250
267
  upload_status: z.ZodEnum<["uploading", "done", "error"]>;
251
268
  error_message: z.ZodOptional<z.ZodString>;
252
269
  }, "strip", z.ZodTypeAny, {
253
- upload_status: "uploading" | "done" | "error";
270
+ upload_status: "error" | "uploading" | "done";
254
271
  error_message?: string | undefined;
255
272
  }, {
256
- upload_status: "uploading" | "done" | "error";
273
+ upload_status: "error" | "uploading" | "done";
257
274
  error_message?: string | undefined;
258
275
  }>;
259
276
  type AttachmentStatusType = z.infer<typeof AttachmentStatus>;
@@ -3269,21 +3286,21 @@ declare const GraphEdge: z.ZodObject<{
3269
3286
  node: string;
3270
3287
  variable: string;
3271
3288
  };
3289
+ purpose: "data" | "messages" | "control";
3272
3290
  target: {
3273
3291
  node: string;
3274
3292
  variable: string;
3275
3293
  };
3276
- purpose: "data" | "messages" | "control";
3277
3294
  }, {
3278
3295
  source: {
3279
3296
  node: string;
3280
3297
  variable: string;
3281
3298
  };
3299
+ purpose: "data" | "messages" | "control";
3282
3300
  target: {
3283
3301
  node: string;
3284
3302
  variable: string;
3285
3303
  };
3286
- purpose: "data" | "messages" | "control";
3287
3304
  }>;
3288
3305
  type GraphEdgeType = z.infer<typeof GraphEdge>;
3289
3306
  declare const GraphData: z.ZodObject<{
@@ -4340,21 +4357,21 @@ declare const GraphData: z.ZodObject<{
4340
4357
  node: string;
4341
4358
  variable: string;
4342
4359
  };
4360
+ purpose: "data" | "messages" | "control";
4343
4361
  target: {
4344
4362
  node: string;
4345
4363
  variable: string;
4346
4364
  };
4347
- purpose: "data" | "messages" | "control";
4348
4365
  }, {
4349
4366
  source: {
4350
4367
  node: string;
4351
4368
  variable: string;
4352
4369
  };
4370
+ purpose: "data" | "messages" | "control";
4353
4371
  target: {
4354
4372
  node: string;
4355
4373
  variable: string;
4356
4374
  };
4357
- purpose: "data" | "messages" | "control";
4358
4375
  }>>;
4359
4376
  }, "strip", z.ZodTypeAny, {
4360
4377
  type: "graph";
@@ -4520,11 +4537,11 @@ declare const GraphData: z.ZodObject<{
4520
4537
  node: string;
4521
4538
  variable: string;
4522
4539
  };
4540
+ purpose: "data" | "messages" | "control";
4523
4541
  target: {
4524
4542
  node: string;
4525
4543
  variable: string;
4526
4544
  };
4527
- purpose: "data" | "messages" | "control";
4528
4545
  }>;
4529
4546
  }, {
4530
4547
  type: "graph";
@@ -4690,11 +4707,11 @@ declare const GraphData: z.ZodObject<{
4690
4707
  node: string;
4691
4708
  variable: string;
4692
4709
  };
4710
+ purpose: "data" | "messages" | "control";
4693
4711
  target: {
4694
4712
  node: string;
4695
4713
  variable: string;
4696
4714
  };
4697
- purpose: "data" | "messages" | "control";
4698
4715
  }>;
4699
4716
  }>;
4700
4717
  type GraphDataType = z.infer<typeof GraphData>;
@@ -6057,21 +6074,21 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6057
6074
  node: string;
6058
6075
  variable: string;
6059
6076
  };
6077
+ purpose: "data" | "messages" | "control";
6060
6078
  target: {
6061
6079
  node: string;
6062
6080
  variable: string;
6063
6081
  };
6064
- purpose: "data" | "messages" | "control";
6065
6082
  }, {
6066
6083
  source: {
6067
6084
  node: string;
6068
6085
  variable: string;
6069
6086
  };
6087
+ purpose: "data" | "messages" | "control";
6070
6088
  target: {
6071
6089
  node: string;
6072
6090
  variable: string;
6073
6091
  };
6074
- purpose: "data" | "messages" | "control";
6075
6092
  }>>;
6076
6093
  }, "strip", z.ZodTypeAny, {
6077
6094
  type: "graph";
@@ -6237,11 +6254,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6237
6254
  node: string;
6238
6255
  variable: string;
6239
6256
  };
6257
+ purpose: "data" | "messages" | "control";
6240
6258
  target: {
6241
6259
  node: string;
6242
6260
  variable: string;
6243
6261
  };
6244
- purpose: "data" | "messages" | "control";
6245
6262
  }>;
6246
6263
  }, {
6247
6264
  type: "graph";
@@ -6407,11 +6424,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6407
6424
  node: string;
6408
6425
  variable: string;
6409
6426
  };
6427
+ purpose: "data" | "messages" | "control";
6410
6428
  target: {
6411
6429
  node: string;
6412
6430
  variable: string;
6413
6431
  };
6414
- purpose: "data" | "messages" | "control";
6415
6432
  }>;
6416
6433
  }>, z.ZodObject<{
6417
6434
  type: z.ZodLiteral<"remote_eval">;
@@ -8579,6 +8596,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
8579
8596
  runtime: "node" | "python" | "browser" | "quickjs";
8580
8597
  }>;
8581
8598
  code: z.ZodString;
8599
+ function_type: z.ZodOptional<z.ZodIntersection<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>, z.ZodUnknown>>;
8582
8600
  name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
8583
8601
  }, "strip", z.ZodTypeAny, {
8584
8602
  code: string;
@@ -8587,6 +8605,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
8587
8605
  runtime: "node" | "python" | "browser" | "quickjs";
8588
8606
  };
8589
8607
  name?: string | null | undefined;
8608
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8590
8609
  }, {
8591
8610
  code: string;
8592
8611
  inline_context: {
@@ -8594,6 +8613,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
8594
8613
  runtime: "node" | "python" | "browser" | "quickjs";
8595
8614
  };
8596
8615
  name?: string | null | undefined;
8616
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8597
8617
  }>, z.ZodObject<{
8598
8618
  inline_prompt: z.ZodOptional<z.ZodObject<{
8599
8619
  prompt: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -15631,7 +15651,7 @@ declare const SSEProgressEventData: z.ZodObject<{
15631
15651
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
15632
15652
  name: string;
15633
15653
  data: string;
15634
- event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
15654
+ event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
15635
15655
  format: "code" | "llm" | "global" | "topic_map" | "graph";
15636
15656
  output_type: "facet" | "score" | "completion" | "classification" | "any";
15637
15657
  origin?: {
@@ -15646,7 +15666,7 @@ declare const SSEProgressEventData: z.ZodObject<{
15646
15666
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
15647
15667
  name: string;
15648
15668
  data: string;
15649
- event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
15669
+ event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
15650
15670
  format: "code" | "llm" | "global" | "topic_map" | "graph";
15651
15671
  output_type: "facet" | "score" | "completion" | "classification" | "any";
15652
15672
  origin?: {
@@ -15705,17 +15725,39 @@ interface IsoAsyncLocalStorage<T> {
15705
15725
  run<R>(store: T | undefined, callback: () => R): R;
15706
15726
  getStore(): T | undefined;
15707
15727
  }
15728
+ type IsoMessageFunction<M = any, N extends string | symbol = string> = (message: M, name: N) => void;
15729
+ type IsoTransformFunction<M, S> = (message: M) => S;
15730
+ /**
15731
+ * Channel interface matching the shared node:diagnostics_channel and dc-browser API.
15732
+ */
15733
+ interface IsoChannel<M = any, N extends string | symbol = string> {
15734
+ readonly name: N;
15735
+ readonly hasSubscribers: boolean;
15736
+ subscribe(subscription: IsoMessageFunction<M, N>): void;
15737
+ unsubscribe(subscription: IsoMessageFunction<M, N>): boolean;
15738
+ bindStore<T>(store: IsoAsyncLocalStorage<T>, transform?: IsoTransformFunction<M, T>): void;
15739
+ unbindStore<T>(store: IsoAsyncLocalStorage<T>): boolean;
15740
+ publish(message: M): void;
15741
+ runStores<F extends (...args: any[]) => any>(message: M, fn: F, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
15742
+ }
15708
15743
  /**
15709
15744
  * TracingChannel interface matching both node:diagnostics_channel and dc-browser.
15710
- * Provides event-based instrumentation for sync/async operations.
15745
+ * A composite of the five tracing subchannels used to instrument sync/async operations.
15711
15746
  */
15712
- interface IsoTracingChannel<M = any> {
15713
- hasSubscribers: boolean;
15747
+ interface IsoTracingChannelCollection<M = any> {
15748
+ readonly start?: IsoChannel<M>;
15749
+ readonly end?: IsoChannel<M>;
15750
+ readonly asyncStart?: IsoChannel<M>;
15751
+ readonly asyncEnd?: IsoChannel<M>;
15752
+ readonly error?: IsoChannel<M>;
15753
+ }
15754
+ interface IsoTracingChannel<M = any> extends IsoTracingChannelCollection<M> {
15755
+ readonly hasSubscribers: boolean;
15714
15756
  subscribe(handlers: IsoChannelHandlers<M>): void;
15715
15757
  unsubscribe(handlers: IsoChannelHandlers<M>): boolean;
15716
- traceSync<F extends (...args: any[]) => any>(fn: F, message: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
15717
- tracePromise<F extends (...args: any[]) => any>(fn: F, message: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): Promise<Awaited<ReturnType<F>>>;
15718
- traceCallback<F extends (...args: any[]) => any>(fn: F, position: number | undefined, message: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
15758
+ traceSync<F extends (...args: any[]) => any>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
15759
+ tracePromise<F extends (...args: any[]) => any>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): Promise<Awaited<ReturnType<F>>>;
15760
+ traceCallback<F extends (...args: any[]) => any>(fn: F, position?: number, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
15719
15761
  }
15720
15762
  interface IsoChannelHandlers<M = any> {
15721
15763
  start?: (context: M, name: string) => void;
@@ -15731,7 +15773,7 @@ interface Common {
15731
15773
  getEnv: (name: string) => string | undefined;
15732
15774
  getCallerLocation: () => CallerLocation | undefined;
15733
15775
  newAsyncLocalStorage: <T>() => IsoAsyncLocalStorage<T>;
15734
- newTracingChannel: <M = any>(nameOrChannels: string | object) => IsoTracingChannel<M>;
15776
+ newTracingChannel: <M = any>(nameOrChannels: string | IsoTracingChannelCollection<M>) => IsoTracingChannel<M>;
15735
15777
  processOn: (event: string, handler: (code: any) => void) => void;
15736
15778
  hash?: (data: string) => string;
15737
15779
  basename: (filepath: string) => string;
@@ -17526,6 +17568,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
17526
17568
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
17527
17569
  }, z.ZodTypeAny, "passthrough">>]>>;
17528
17570
  templateFormat: z.ZodOptional<z.ZodEnum<["mustache", "nunjucks", "none"]>>;
17571
+ environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17529
17572
  }, "strip", z.ZodTypeAny, {
17530
17573
  model: string;
17531
17574
  params?: z.objectOutputType<{
@@ -17646,6 +17689,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
17646
17689
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
17647
17690
  }, z.ZodTypeAny, "passthrough"> | undefined;
17648
17691
  templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
17692
+ environments?: string[] | undefined;
17649
17693
  }, {
17650
17694
  model: string;
17651
17695
  params?: z.objectInputType<{
@@ -17766,6 +17810,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
17766
17810
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
17767
17811
  }, z.ZodTypeAny, "passthrough"> | undefined;
17768
17812
  templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
17813
+ environments?: string[] | undefined;
17769
17814
  }>>, z.ZodObject<{
17770
17815
  tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
17771
17816
  type: z.ZodLiteral<"function">;
@@ -18037,6 +18082,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
18037
18082
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
18038
18083
  }, z.ZodTypeAny, "passthrough"> | undefined;
18039
18084
  templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
18085
+ environments?: string[] | undefined;
18040
18086
  }) & {
18041
18087
  tools?: {
18042
18088
  function: {
@@ -18261,6 +18307,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
18261
18307
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
18262
18308
  }, z.ZodTypeAny, "passthrough"> | undefined;
18263
18309
  templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
18310
+ environments?: string[] | undefined;
18264
18311
  }) & {
18265
18312
  tools?: {
18266
18313
  function: {
@@ -18296,6 +18343,7 @@ type InferParameters<T extends EvalParameters> = {
18296
18343
  };
18297
18344
 
18298
18345
  declare const LOGS3_OVERFLOW_REFERENCE_TYPE = "logs3_overflow";
18346
+ declare const RESET_CONTEXT_MANAGER_STATE: unique symbol;
18299
18347
  declare const DEFAULT_MAX_REQUEST_SIZE: number;
18300
18348
  declare const parametersRowSchema: z.ZodObject<{
18301
18349
  id: z.ZodString;
@@ -18641,6 +18689,7 @@ declare class BraintrustState {
18641
18689
  constructor(loginParams: LoginOptions);
18642
18690
  resetLoginInfo(): void;
18643
18691
  resetIdGenState(): void;
18692
+ [RESET_CONTEXT_MANAGER_STATE](): void;
18644
18693
  get idGenerator(): IDGenerator;
18645
18694
  get contextManager(): ContextManager;
18646
18695
  /**
@@ -18817,7 +18866,7 @@ declare class Attachment extends BaseAttachment {
18817
18866
  * @returns The attachment status.
18818
18867
  */
18819
18868
  upload(): Promise<{
18820
- upload_status: "uploading" | "done" | "error";
18869
+ upload_status: "error" | "uploading" | "done";
18821
18870
  error_message?: string | undefined;
18822
18871
  }>;
18823
18872
  /**
@@ -18894,21 +18943,21 @@ declare const attachmentMetadataSchema: z.ZodObject<{
18894
18943
  upload_status: z.ZodEnum<["uploading", "done", "error"]>;
18895
18944
  error_message: z.ZodOptional<z.ZodString>;
18896
18945
  }, "strip", z.ZodTypeAny, {
18897
- upload_status: "uploading" | "done" | "error";
18946
+ upload_status: "error" | "uploading" | "done";
18898
18947
  error_message?: string | undefined;
18899
18948
  }, {
18900
- upload_status: "uploading" | "done" | "error";
18949
+ upload_status: "error" | "uploading" | "done";
18901
18950
  error_message?: string | undefined;
18902
18951
  }>;
18903
18952
  }, "strip", z.ZodTypeAny, {
18904
18953
  status: {
18905
- upload_status: "uploading" | "done" | "error";
18954
+ upload_status: "error" | "uploading" | "done";
18906
18955
  error_message?: string | undefined;
18907
18956
  };
18908
18957
  downloadUrl: string;
18909
18958
  }, {
18910
18959
  status: {
18911
- upload_status: "uploading" | "done" | "error";
18960
+ upload_status: "error" | "uploading" | "done";
18912
18961
  error_message?: string | undefined;
18913
18962
  };
18914
18963
  downloadUrl: string;
@@ -19249,10 +19298,15 @@ interface DatasetRef {
19249
19298
  id: string;
19250
19299
  version?: string;
19251
19300
  }
19301
+ interface ParametersRef {
19302
+ id: string;
19303
+ version?: string;
19304
+ }
19252
19305
  type InitOptions<IsOpen extends boolean> = FullLoginOptions & {
19253
19306
  experiment?: string;
19254
19307
  description?: string;
19255
19308
  dataset?: AnyDataset | DatasetRef;
19309
+ parameters?: ParametersRef | RemoteEvalParameters<boolean, boolean>;
19256
19310
  update?: boolean;
19257
19311
  baseExperiment?: string;
19258
19312
  isPublic?: boolean;
@@ -19405,6 +19459,7 @@ type LoadParametersByIdOptions = LoadParametersBaseOptions & {
19405
19459
  type LoadParametersByIdWithEnvOptions = LoadParametersBaseOptions & {
19406
19460
  id: string;
19407
19461
  environment: string;
19462
+ version?: string;
19408
19463
  };
19409
19464
  type LoadParametersByProjectNameOptions = LoadParametersBaseOptions & {
19410
19465
  projectName: string;
@@ -19415,6 +19470,7 @@ type LoadParametersByProjectNameWithEnvOptions = LoadParametersBaseOptions & {
19415
19470
  projectName: string;
19416
19471
  slug: string;
19417
19472
  environment: string;
19473
+ version?: string;
19418
19474
  };
19419
19475
  type LoadParametersByProjectIdOptions = LoadParametersBaseOptions & {
19420
19476
  projectId: string;
@@ -19425,6 +19481,7 @@ type LoadParametersByProjectIdWithEnvOptions = LoadParametersBaseOptions & {
19425
19481
  projectId: string;
19426
19482
  slug: string;
19427
19483
  environment: string;
19484
+ version?: string;
19428
19485
  };
19429
19486
  /**
19430
19487
  * Load a prompt from the specified project.
@@ -19434,7 +19491,7 @@ type LoadParametersByProjectIdWithEnvOptions = LoadParametersBaseOptions & {
19434
19491
  * @param options.projectId The id of the project to load the prompt from. This takes precedence over `projectName` if specified.
19435
19492
  * @param options.slug The slug of the prompt to load.
19436
19493
  * @param options.version An optional version of the prompt (to read). If not specified, the latest version will be used.
19437
- * @param options.environment Fetch the version of the prompt assigned to the specified environment (e.g. "production", "staging"). Cannot be specified at the same time as `version`.
19494
+ * @param options.environment Fetch the version of the prompt assigned to the specified environment (e.g. "production", "staging"). If both `version` and `environment` are provided, `version` takes precedence.
19438
19495
  * @param options.id The id of a specific prompt to load. If specified, this takes precedence over all other parameters (project and slug).
19439
19496
  * @param options.defaults (Optional) A dictionary of default values to use when rendering the prompt. Prompt values will override these defaults.
19440
19497
  * @param options.noTrace If true, do not include logging metadata for this prompt when build() is called.
@@ -19463,7 +19520,7 @@ declare function loadPrompt({ projectName, projectId, slug, version, environment
19463
19520
  * @param options.projectId The id of the project to load the parameters from. This takes precedence over `projectName` if specified.
19464
19521
  * @param options.slug The slug of the parameters to load.
19465
19522
  * @param options.version An optional version of the parameters (to read). If not specified, the latest version will be used.
19466
- * @param options.environment Fetch the version of the parameters assigned to the specified environment (e.g. "production", "staging"). Cannot be specified at the same time as `version`.
19523
+ * @param options.environment Fetch the version of the parameters assigned to the specified environment (e.g. "production", "staging"). If both `version` and `environment` are provided, `version` takes precedence.
19467
19524
  * @param options.id The id of specific parameters to load. If specified, this takes precedence over all other parameters (project and slug).
19468
19525
  * @param options.appUrl The URL of the Braintrust App. Defaults to https://www.braintrust.dev.
19469
19526
  * @param options.apiKey The API key to use. If the parameter is not specified, will try to use the `BRAINTRUST_API_KEY` environment variable.
@@ -20034,7 +20091,18 @@ declare class Dataset<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY
20034
20091
  close(): Promise<string>;
20035
20092
  static isDataset(data: unknown): data is Dataset;
20036
20093
  }
20037
- type CompiledPromptParams = Omit<NonNullable<PromptDataType["options"]>["params"], "use_cache"> & {
20094
+ type CompiledPromptResponseFormat = Exclude<AnyModelParamsType["response_format"], null> extends infer ResponseFormat ? ResponseFormat extends {
20095
+ type: "json_schema";
20096
+ json_schema: infer JsonSchema;
20097
+ } ? Omit<ResponseFormat, "json_schema"> & {
20098
+ json_schema: Omit<Extract<JsonSchema, ResponseFormatJsonSchemaType>, "schema"> & {
20099
+ schema?: Record<string, unknown>;
20100
+ };
20101
+ } : ResponseFormat : never;
20102
+ type CompiledPromptReasoningEffort = Exclude<AnyModelParamsType["reasoning_effort"], "none">;
20103
+ type CompiledPromptParams = Omit<NonNullable<PromptDataType["options"]>["params"], "use_cache" | "response_format" | "reasoning_effort"> & Omit<AnyModelParamsType, "use_cache" | "response_format" | "reasoning_effort"> & {
20104
+ reasoning_effort?: CompiledPromptReasoningEffort;
20105
+ response_format?: CompiledPromptResponseFormat;
20038
20106
  model: NonNullable<NonNullable<PromptDataType["options"]>["model"]>;
20039
20107
  };
20040
20108
  type ChatPrompt = {
@@ -20439,7 +20507,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
20439
20507
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
20440
20508
  name: string;
20441
20509
  data: string;
20442
- event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
20510
+ event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
20443
20511
  format: "code" | "llm" | "global" | "topic_map" | "graph";
20444
20512
  output_type: "facet" | "score" | "completion" | "classification" | "any";
20445
20513
  origin?: {
@@ -20454,7 +20522,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
20454
20522
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
20455
20523
  name: string;
20456
20524
  data: string;
20457
- event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
20525
+ event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
20458
20526
  format: "code" | "llm" | "global" | "topic_map" | "graph";
20459
20527
  output_type: "facet" | "score" | "completion" | "classification" | "any";
20460
20528
  origin?: {
@@ -20472,7 +20540,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
20472
20540
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
20473
20541
  name: string;
20474
20542
  data: string;
20475
- event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
20543
+ event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
20476
20544
  format: "code" | "llm" | "global" | "topic_map" | "graph";
20477
20545
  output_type: "facet" | "score" | "completion" | "classification" | "any";
20478
20546
  origin?: {
@@ -20490,7 +20558,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
20490
20558
  object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
20491
20559
  name: string;
20492
20560
  data: string;
20493
- event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
20561
+ event: "start" | "error" | "done" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console";
20494
20562
  format: "code" | "llm" | "global" | "topic_map" | "graph";
20495
20563
  output_type: "facet" | "score" | "completion" | "classification" | "any";
20496
20564
  origin?: {
@@ -21073,6 +21141,12 @@ declare function wrapClaudeAgentSDK<T extends object>(sdk: T): T;
21073
21141
  */
21074
21142
  declare function wrapGoogleGenAI<T extends Record<string, any>>(googleGenAI: T): T;
21075
21143
 
21144
+ /**
21145
+ * Wrap an OpenRouter client (created with `new OpenRouter(...)`) so calls emit
21146
+ * diagnostics-channel events that Braintrust plugins can consume.
21147
+ */
21148
+ declare function wrapOpenRouter<T>(openrouter: T): T;
21149
+
21076
21150
  type ScorerFunction<Output = unknown> = (args: {
21077
21151
  output: Output;
21078
21152
  expected?: unknown;
@@ -23120,6 +23194,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
23120
23194
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
23121
23195
  }, z.ZodTypeAny, "passthrough">>]>>;
23122
23196
  templateFormat: z.ZodOptional<z.ZodEnum<["mustache", "nunjucks", "none"]>>;
23197
+ environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23123
23198
  }, "strip", z.ZodTypeAny, {
23124
23199
  model: string;
23125
23200
  params?: z.objectOutputType<{
@@ -23240,6 +23315,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
23240
23315
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
23241
23316
  }, z.ZodTypeAny, "passthrough"> | undefined;
23242
23317
  templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
23318
+ environments?: string[] | undefined;
23243
23319
  }, {
23244
23320
  model: string;
23245
23321
  params?: z.objectInputType<{
@@ -23360,6 +23436,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
23360
23436
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
23361
23437
  }, z.ZodTypeAny, "passthrough"> | undefined;
23362
23438
  templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
23439
+ environments?: string[] | undefined;
23363
23440
  }>>;
23364
23441
  type PromptDefinition = z.infer<typeof promptDefinitionSchema>;
23365
23442
  declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
@@ -24308,6 +24385,7 @@ declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersecti
24308
24385
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
24309
24386
  }, z.ZodTypeAny, "passthrough">>]>>;
24310
24387
  templateFormat: z.ZodOptional<z.ZodEnum<["mustache", "nunjucks", "none"]>>;
24388
+ environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24311
24389
  }, "strip", z.ZodTypeAny, {
24312
24390
  model: string;
24313
24391
  params?: z.objectOutputType<{
@@ -24428,6 +24506,7 @@ declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersecti
24428
24506
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
24429
24507
  }, z.ZodTypeAny, "passthrough"> | undefined;
24430
24508
  templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
24509
+ environments?: string[] | undefined;
24431
24510
  }, {
24432
24511
  model: string;
24433
24512
  params?: z.objectInputType<{
@@ -24548,6 +24627,7 @@ declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersecti
24548
24627
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
24549
24628
  }, z.ZodTypeAny, "passthrough"> | undefined;
24550
24629
  templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
24630
+ environments?: string[] | undefined;
24551
24631
  }>>, z.ZodObject<{
24552
24632
  tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
24553
24633
  type: z.ZodLiteral<"function">;
@@ -39774,6 +39854,7 @@ declare class CodePrompt {
39774
39854
  readonly toolFunctions: (SavedFunctionIdType | GenericCodeFunction)[];
39775
39855
  readonly tags?: string[];
39776
39856
  readonly metadata?: Record<string, unknown>;
39857
+ readonly environmentSlugs?: string[];
39777
39858
  constructor(project: Project, prompt: PromptDataType, toolFunctions: (SavedFunctionIdType | GenericCodeFunction)[], opts: Omit<PromptOpts<false, false, false, false>, "name" | "slug"> & {
39778
39859
  name: string;
39779
39860
  slug: string;
@@ -39842,6 +39923,9 @@ interface FunctionEvent {
39842
39923
  if_exists?: IfExistsType;
39843
39924
  tags?: string[];
39844
39925
  metadata?: Record<string, unknown>;
39926
+ environments?: {
39927
+ slug: string;
39928
+ }[];
39845
39929
  }
39846
39930
  declare class ProjectNameIdMap {
39847
39931
  private nameToId;
@@ -40218,6 +40302,7 @@ interface InstrumentationConfig {
40218
40302
  aisdk?: boolean;
40219
40303
  google?: boolean;
40220
40304
  claudeAgentSDK?: boolean;
40305
+ openrouter?: boolean;
40221
40306
  };
40222
40307
  }
40223
40308
  /**
@@ -40249,256 +40334,257 @@ interface InstrumentationConfig {
40249
40334
  */
40250
40335
  declare function configureInstrumentation(config: InstrumentationConfig): void;
40251
40336
 
40252
- type _exports_AnyDataset = AnyDataset;
40253
- type _exports_Attachment = Attachment;
40254
- declare const _exports_Attachment: typeof Attachment;
40255
- type _exports_AttachmentParams = AttachmentParams;
40256
- declare const _exports_AttachmentReference: typeof AttachmentReference;
40257
- type _exports_BackgroundLoggerOpts = BackgroundLoggerOpts;
40258
- type _exports_BaseAttachment = BaseAttachment;
40259
- declare const _exports_BaseAttachment: typeof BaseAttachment;
40260
- declare const _exports_BaseExperiment: typeof BaseExperiment;
40261
- type _exports_BaseMetadata = BaseMetadata;
40262
- declare const _exports_BraintrustMiddleware: typeof BraintrustMiddleware;
40263
- type _exports_BraintrustState = BraintrustState;
40264
- declare const _exports_BraintrustState: typeof BraintrustState;
40265
- type _exports_BraintrustStream = BraintrustStream;
40266
- declare const _exports_BraintrustStream: typeof BraintrustStream;
40267
- type _exports_BraintrustStreamChunk = BraintrustStreamChunk;
40268
- type _exports_CachedSpanFetcher = CachedSpanFetcher;
40269
- declare const _exports_CachedSpanFetcher: typeof CachedSpanFetcher;
40270
- type _exports_ChatPrompt = ChatPrompt;
40271
- type _exports_CodeFunction<Input, Output, Fn extends GenericFunction<Input, Output>> = CodeFunction<Input, Output, Fn>;
40272
- declare const _exports_CodeFunction: typeof CodeFunction;
40273
- type _exports_CodeOpts<Params, Returns, Fn extends GenericFunction<Params, Returns>> = CodeOpts<Params, Returns, Fn>;
40274
- type _exports_CodePrompt = CodePrompt;
40275
- declare const _exports_CodePrompt: typeof CodePrompt;
40276
- type _exports_CommentEvent = CommentEvent;
40277
- type _exports_CompiledPrompt<Flavor extends "chat" | "completion"> = CompiledPrompt<Flavor>;
40278
- type _exports_CompiledPromptParams = CompiledPromptParams;
40279
- type _exports_CompletionPrompt = CompletionPrompt;
40280
- type _exports_ContextManager = ContextManager;
40281
- declare const _exports_ContextManager: typeof ContextManager;
40282
- type _exports_ContextParentSpanIds = ContextParentSpanIds;
40283
- type _exports_CreateProjectOpts = CreateProjectOpts;
40284
- declare const _exports_DEFAULT_FETCH_BATCH_SIZE: typeof DEFAULT_FETCH_BATCH_SIZE;
40285
- declare const _exports_DEFAULT_MAX_REQUEST_SIZE: typeof DEFAULT_MAX_REQUEST_SIZE;
40286
- type _exports_DataSummary = DataSummary;
40287
- type _exports_Dataset<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY_DATASET> = Dataset<IsLegacyDataset>;
40288
- declare const _exports_Dataset: typeof Dataset;
40289
- type _exports_DatasetRecord<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY_DATASET> = DatasetRecord<IsLegacyDataset>;
40290
- type _exports_DatasetSummary = DatasetSummary;
40291
- type _exports_DefaultMetadataType = DefaultMetadataType;
40292
- type _exports_DefaultPromptArgs = DefaultPromptArgs;
40293
- declare const _exports_ERR_PERMALINK: typeof ERR_PERMALINK;
40294
- type _exports_EndSpanArgs = EndSpanArgs;
40295
- declare const _exports_Eval: typeof Eval;
40296
- type _exports_EvalCase<Input, Expected, Metadata> = EvalCase<Input, Expected, Metadata>;
40297
- type _exports_EvalHooks<Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters> = EvalHooks<Expected, Metadata, Parameters>;
40298
- type _exports_EvalParameterSerializedSchema = EvalParameterSerializedSchema;
40299
- type _exports_EvalParameters = EvalParameters;
40300
- type _exports_EvalResult<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalResult<Input, Output, Expected, Metadata>;
40301
- type _exports_EvalResultWithSummary<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalResultWithSummary<Input, Output, Expected, Metadata>;
40302
- declare const _exports_EvalResultWithSummary: typeof EvalResultWithSummary;
40303
- type _exports_EvalScorer<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalScorer<Input, Output, Expected, Metadata>;
40304
- type _exports_EvalScorerArgs<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalScorerArgs<Input, Output, Expected, Metadata>;
40305
- type _exports_EvalTask<Input, Output, Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters> = EvalTask<Input, Output, Expected, Metadata, Parameters>;
40306
- type _exports_Evaluator<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters> = Evaluator<Input, Output, Expected, Metadata, Parameters>;
40307
- type _exports_EvaluatorDef<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters> = EvaluatorDef<Input, Output, Expected, Metadata, Parameters>;
40308
- type _exports_EvaluatorDefinition = EvaluatorDefinition;
40309
- type _exports_EvaluatorDefinitions = EvaluatorDefinitions;
40310
- type _exports_EvaluatorFile = EvaluatorFile;
40311
- type _exports_EvaluatorManifest = EvaluatorManifest;
40312
- type _exports_Experiment = Experiment;
40313
- declare const _exports_Experiment: typeof Experiment;
40314
- type _exports_ExperimentLogFullArgs = ExperimentLogFullArgs;
40315
- type _exports_ExperimentLogPartialArgs = ExperimentLogPartialArgs;
40316
- type _exports_ExperimentSummary = ExperimentSummary;
40317
- type _exports_Exportable = Exportable;
40318
- type _exports_ExternalAttachment = ExternalAttachment;
40319
- declare const _exports_ExternalAttachment: typeof ExternalAttachment;
40320
- type _exports_ExternalAttachmentParams = ExternalAttachmentParams;
40321
- type _exports_FailedHTTPResponse = FailedHTTPResponse;
40322
- declare const _exports_FailedHTTPResponse: typeof FailedHTTPResponse;
40323
- type _exports_FullInitDatasetOptions<IsLegacyDataset extends boolean> = FullInitDatasetOptions<IsLegacyDataset>;
40324
- type _exports_FullInitOptions<IsOpen extends boolean> = FullInitOptions<IsOpen>;
40325
- type _exports_FullLoginOptions = FullLoginOptions;
40326
- type _exports_FunctionEvent = FunctionEvent;
40327
- type _exports_GetThreadOptions = GetThreadOptions;
40328
- type _exports_IDGenerator = IDGenerator;
40329
- declare const _exports_IDGenerator: typeof IDGenerator;
40330
- type _exports_IdField = IdField;
40331
- type _exports_InitDatasetOptions<IsLegacyDataset extends boolean> = InitDatasetOptions<IsLegacyDataset>;
40332
- type _exports_InitLoggerOptions<IsAsyncFlush> = InitLoggerOptions<IsAsyncFlush>;
40333
- type _exports_InitOptions<IsOpen extends boolean> = InitOptions<IsOpen>;
40334
- type _exports_InputField = InputField;
40335
- type _exports_InstrumentationConfig = InstrumentationConfig;
40336
- type _exports_InvokeFunctionArgs<Input, Output, Stream extends boolean = false> = InvokeFunctionArgs<Input, Output, Stream>;
40337
- type _exports_InvokeReturn<Stream extends boolean, Output> = InvokeReturn<Stream, Output>;
40338
- type _exports_JSONAttachment = JSONAttachment;
40339
- declare const _exports_JSONAttachment: typeof JSONAttachment;
40340
- declare const _exports_LEGACY_CACHED_HEADER: typeof LEGACY_CACHED_HEADER;
40341
- declare const _exports_LOGS3_OVERFLOW_REFERENCE_TYPE: typeof LOGS3_OVERFLOW_REFERENCE_TYPE;
40342
- type _exports_LazyValue<T> = LazyValue<T>;
40343
- declare const _exports_LazyValue: typeof LazyValue;
40344
- type _exports_LoadPromptOptions = LoadPromptOptions;
40345
- type _exports_LogCommentFullArgs = LogCommentFullArgs;
40346
- type _exports_LogFeedbackFullArgs = LogFeedbackFullArgs;
40347
- type _exports_LogOptions<IsAsyncFlush> = LogOptions<IsAsyncFlush>;
40348
- type _exports_Logger<IsAsyncFlush extends boolean> = Logger<IsAsyncFlush>;
40349
- declare const _exports_Logger: typeof Logger;
40350
- type _exports_LoginInvalidOrgError = LoginInvalidOrgError;
40351
- declare const _exports_LoginInvalidOrgError: typeof LoginInvalidOrgError;
40352
- type _exports_LoginOptions = LoginOptions;
40353
- type _exports_Logs3OverflowInputRow = Logs3OverflowInputRow;
40354
- type _exports_Logs3OverflowUpload = Logs3OverflowUpload;
40355
- type _exports_MetricSummary = MetricSummary;
40356
- declare const _exports_NOOP_SPAN: typeof NOOP_SPAN;
40357
- declare const _exports_NOOP_SPAN_PERMALINK: typeof NOOP_SPAN_PERMALINK;
40358
- type _exports_NoopSpan = NoopSpan;
40359
- declare const _exports_NoopSpan: typeof NoopSpan;
40360
- type _exports_ObjectFetcher<RecordType> = ObjectFetcher<RecordType>;
40361
- declare const _exports_ObjectFetcher: typeof ObjectFetcher;
40362
- type _exports_ObjectMetadata = ObjectMetadata;
40363
- type _exports_OtherExperimentLogFields = OtherExperimentLogFields;
40364
- type _exports_ParametersSource = ParametersSource;
40365
- type _exports_ParentExperimentIds = ParentExperimentIds;
40366
- type _exports_ParentProjectLogIds = ParentProjectLogIds;
40367
- type _exports_Project = Project;
40368
- declare const _exports_Project: typeof Project;
40369
- type _exports_ProjectNameIdMap = ProjectNameIdMap;
40370
- declare const _exports_ProjectNameIdMap: typeof ProjectNameIdMap;
40371
- type _exports_PromiseUnless<B, R> = PromiseUnless<B, R>;
40372
- type _exports_Prompt<HasId extends boolean = true, HasVersion extends boolean = true> = Prompt<HasId, HasVersion>;
40373
- declare const _exports_Prompt: typeof Prompt;
40374
- type _exports_PromptBuilder = PromptBuilder;
40375
- declare const _exports_PromptBuilder: typeof PromptBuilder;
40376
- type _exports_PromptContents = PromptContents;
40377
- type _exports_PromptDefinition = PromptDefinition;
40378
- type _exports_PromptDefinitionWithTools = PromptDefinitionWithTools;
40379
- type _exports_PromptOpts<HasId extends boolean, HasVersion extends boolean, HasTools extends boolean = true, HasNoTrace extends boolean = true> = PromptOpts<HasId, HasVersion, HasTools, HasNoTrace>;
40380
- type _exports_PromptRowWithId<HasId extends boolean = true, HasVersion extends boolean = true> = PromptRowWithId<HasId, HasVersion>;
40381
- type _exports_ReadonlyAttachment = ReadonlyAttachment;
40382
- declare const _exports_ReadonlyAttachment: typeof ReadonlyAttachment;
40383
- type _exports_ReadonlyExperiment = ReadonlyExperiment;
40384
- declare const _exports_ReadonlyExperiment: typeof ReadonlyExperiment;
40385
- type _exports_RegisterSandboxOptions = RegisterSandboxOptions;
40386
- type _exports_RegisterSandboxResult = RegisterSandboxResult;
40387
- declare const _exports_Reporter: typeof Reporter;
40388
- type _exports_ReporterBody<EvalReport> = ReporterBody<EvalReport>;
40389
- type _exports_SandboxConfig = SandboxConfig;
40390
- type _exports_ScoreSummary = ScoreSummary;
40391
- type _exports_ScorerBuilder = ScorerBuilder;
40392
- declare const _exports_ScorerBuilder: typeof ScorerBuilder;
40393
- type _exports_ScorerOpts<Output, Input, Params, Returns, Fn extends GenericFunction<Exact<Params, ScorerArgs<Output, Input>>, Returns>> = ScorerOpts<Output, Input, Params, Returns, Fn>;
40394
- type _exports_SerializedBraintrustState = SerializedBraintrustState;
40395
- type _exports_SetCurrentArg = SetCurrentArg;
40396
- type _exports_Span = Span;
40397
- type _exports_SpanContext = SpanContext;
40398
- type _exports_SpanData = SpanData;
40399
- type _exports_SpanFetcher = SpanFetcher;
40400
- declare const _exports_SpanFetcher: typeof SpanFetcher;
40401
- type _exports_SpanImpl = SpanImpl;
40402
- declare const _exports_SpanImpl: typeof SpanImpl;
40403
- type _exports_StartSpanArgs = StartSpanArgs;
40404
- type _exports_TemplateFormat = TemplateFormat;
40405
- type _exports_TemplateRenderer = TemplateRenderer;
40406
- type _exports_TemplateRendererPlugin = TemplateRendererPlugin;
40407
- type _exports_TestBackgroundLogger = TestBackgroundLogger;
40408
- declare const _exports_TestBackgroundLogger: typeof TestBackgroundLogger;
40409
- type _exports_ToolBuilder = ToolBuilder;
40410
- declare const _exports_ToolBuilder: typeof ToolBuilder;
40411
- type _exports_Trace = Trace;
40412
- type _exports_UUIDGenerator = UUIDGenerator;
40413
- declare const _exports_UUIDGenerator: typeof UUIDGenerator;
40414
- type _exports_WithTransactionId<R> = WithTransactionId<R>;
40415
- declare const _exports_X_CACHED_HEADER: typeof X_CACHED_HEADER;
40416
- declare const _exports__exportsForTestingOnly: typeof _exportsForTestingOnly;
40417
- declare const _exports__internalGetGlobalState: typeof _internalGetGlobalState;
40418
- declare const _exports__internalSetInitialState: typeof _internalSetInitialState;
40419
- declare const _exports_addAzureBlobHeaders: typeof addAzureBlobHeaders;
40420
- declare const _exports_braintrustStreamChunkSchema: typeof braintrustStreamChunkSchema;
40421
- declare const _exports_buildLocalSummary: typeof buildLocalSummary;
40422
- declare const _exports_configureInstrumentation: typeof configureInstrumentation;
40423
- declare const _exports_constructLogs3OverflowRequest: typeof constructLogs3OverflowRequest;
40424
- declare const _exports_createFinalValuePassThroughStream: typeof createFinalValuePassThroughStream;
40425
- declare const _exports_currentExperiment: typeof currentExperiment;
40426
- declare const _exports_currentLogger: typeof currentLogger;
40427
- declare const _exports_currentSpan: typeof currentSpan;
40428
- declare const _exports_deepCopyEvent: typeof deepCopyEvent;
40429
- declare const _exports_defaultErrorScoreHandler: typeof defaultErrorScoreHandler;
40430
- declare const _exports_deserializePlainStringAsJSON: typeof deserializePlainStringAsJSON;
40431
- declare const _exports_devNullWritableStream: typeof devNullWritableStream;
40432
- declare const _exports_evaluatorDefinitionSchema: typeof evaluatorDefinitionSchema;
40433
- declare const _exports_evaluatorDefinitionsSchema: typeof evaluatorDefinitionsSchema;
40434
- declare const _exports_flush: typeof flush;
40435
- declare const _exports_getContextManager: typeof getContextManager;
40436
- declare const _exports_getIdGenerator: typeof getIdGenerator;
40437
- declare const _exports_getPromptVersions: typeof getPromptVersions;
40438
- declare const _exports_getSpanParentObject: typeof getSpanParentObject;
40439
- declare const _exports_getTemplateRenderer: typeof getTemplateRenderer;
40440
- declare const _exports_init: typeof init;
40441
- declare const _exports_initDataset: typeof initDataset;
40442
- declare const _exports_initExperiment: typeof initExperiment;
40443
- declare const _exports_initFunction: typeof initFunction;
40444
- declare const _exports_initLogger: typeof initLogger;
40445
- declare const _exports_initNodeTestSuite: typeof initNodeTestSuite;
40446
- declare const _exports_invoke: typeof invoke;
40447
- declare const _exports_isTemplateFormat: typeof isTemplateFormat;
40448
- declare const _exports_loadParameters: typeof loadParameters;
40449
- declare const _exports_loadPrompt: typeof loadPrompt;
40450
- declare const _exports_log: typeof log;
40451
- declare const _exports_logError: typeof logError;
40452
- declare const _exports_login: typeof login;
40453
- declare const _exports_loginToState: typeof loginToState;
40454
- declare const _exports_logs3OverflowUploadSchema: typeof logs3OverflowUploadSchema;
40455
- declare const _exports_newId: typeof newId;
40456
- declare const _exports_parseCachedHeader: typeof parseCachedHeader;
40457
- declare const _exports_parseTemplateFormat: typeof parseTemplateFormat;
40458
- declare const _exports_permalink: typeof permalink;
40459
- declare const _exports_pickLogs3OverflowObjectIds: typeof pickLogs3OverflowObjectIds;
40460
- declare const _exports_projects: typeof projects;
40461
- declare const _exports_promptContentsSchema: typeof promptContentsSchema;
40462
- declare const _exports_promptDefinitionSchema: typeof promptDefinitionSchema;
40463
- declare const _exports_promptDefinitionToPromptData: typeof promptDefinitionToPromptData;
40464
- declare const _exports_promptDefinitionWithToolsSchema: typeof promptDefinitionWithToolsSchema;
40465
- declare const _exports_registerOtelFlush: typeof registerOtelFlush;
40466
- declare const _exports_registerSandbox: typeof registerSandbox;
40467
- declare const _exports_registerTemplatePlugin: typeof registerTemplatePlugin;
40468
- declare const _exports_renderMessage: typeof renderMessage;
40469
- declare const _exports_renderPromptParams: typeof renderPromptParams;
40470
- declare const _exports_renderTemplateContent: typeof renderTemplateContent;
40471
- declare const _exports_reportFailures: typeof reportFailures;
40472
- declare const _exports_runEvaluator: typeof runEvaluator;
40473
- declare const _exports_setFetch: typeof setFetch;
40474
- declare const _exports_setMaskingFunction: typeof setMaskingFunction;
40475
- declare const _exports_spanComponentsToObjectId: typeof spanComponentsToObjectId;
40476
- declare const _exports_startSpan: typeof startSpan;
40477
- declare const _exports_summarize: typeof summarize;
40478
- declare const _exports_templateRegistry: typeof templateRegistry;
40479
- declare const _exports_traceable: typeof traceable;
40480
- declare const _exports_traced: typeof traced;
40481
- declare const _exports_updateSpan: typeof updateSpan;
40482
- declare const _exports_uploadLogs3OverflowPayload: typeof uploadLogs3OverflowPayload;
40483
- declare const _exports_utf8ByteLength: typeof utf8ByteLength;
40484
- declare const _exports_withCurrent: typeof withCurrent;
40485
- declare const _exports_withDataset: typeof withDataset;
40486
- declare const _exports_withExperiment: typeof withExperiment;
40487
- declare const _exports_withLogger: typeof withLogger;
40488
- declare const _exports_withParent: typeof withParent;
40489
- declare const _exports_wrapAISDK: typeof wrapAISDK;
40490
- declare const _exports_wrapAISDKModel: typeof wrapAISDKModel;
40491
- declare const _exports_wrapAgentClass: typeof wrapAgentClass;
40492
- declare const _exports_wrapAnthropic: typeof wrapAnthropic;
40493
- declare const _exports_wrapClaudeAgentSDK: typeof wrapClaudeAgentSDK;
40494
- declare const _exports_wrapGoogleGenAI: typeof wrapGoogleGenAI;
40495
- declare const _exports_wrapMastraAgent: typeof wrapMastraAgent;
40496
- declare const _exports_wrapOpenAI: typeof wrapOpenAI;
40497
- declare const _exports_wrapOpenAIv4: typeof wrapOpenAIv4;
40498
- declare const _exports_wrapTraced: typeof wrapTraced;
40499
- declare const _exports_wrapVitest: typeof wrapVitest;
40500
- declare namespace _exports {
40501
- export { type _exports_AnyDataset as AnyDataset, _exports_Attachment as Attachment, type _exports_AttachmentParams as AttachmentParams, _exports_AttachmentReference as AttachmentReference, 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, _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_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_wrapGoogleGenAI as wrapGoogleGenAI, _exports_wrapMastraAgent as wrapMastraAgent, _exports_wrapOpenAI as wrapOpenAI, _exports_wrapOpenAIv4 as wrapOpenAIv4, _exports_wrapTraced as wrapTraced, _exports_wrapVitest as wrapVitest };
40337
+ type exports_AnyDataset = AnyDataset;
40338
+ type exports_Attachment = Attachment;
40339
+ declare const exports_Attachment: typeof Attachment;
40340
+ type exports_AttachmentParams = AttachmentParams;
40341
+ declare const exports_AttachmentReference: typeof AttachmentReference;
40342
+ type exports_BackgroundLoggerOpts = BackgroundLoggerOpts;
40343
+ type exports_BaseAttachment = BaseAttachment;
40344
+ declare const exports_BaseAttachment: typeof BaseAttachment;
40345
+ declare const exports_BaseExperiment: typeof BaseExperiment;
40346
+ type exports_BaseMetadata = BaseMetadata;
40347
+ declare const exports_BraintrustMiddleware: typeof BraintrustMiddleware;
40348
+ type exports_BraintrustState = BraintrustState;
40349
+ declare const exports_BraintrustState: typeof BraintrustState;
40350
+ type exports_BraintrustStream = BraintrustStream;
40351
+ declare const exports_BraintrustStream: typeof BraintrustStream;
40352
+ type exports_BraintrustStreamChunk = BraintrustStreamChunk;
40353
+ type exports_CachedSpanFetcher = CachedSpanFetcher;
40354
+ declare const exports_CachedSpanFetcher: typeof CachedSpanFetcher;
40355
+ type exports_ChatPrompt = ChatPrompt;
40356
+ type exports_CodeFunction<Input, Output, Fn extends GenericFunction<Input, Output>> = CodeFunction<Input, Output, Fn>;
40357
+ declare const exports_CodeFunction: typeof CodeFunction;
40358
+ type exports_CodeOpts<Params, Returns, Fn extends GenericFunction<Params, Returns>> = CodeOpts<Params, Returns, Fn>;
40359
+ type exports_CodePrompt = CodePrompt;
40360
+ declare const exports_CodePrompt: typeof CodePrompt;
40361
+ type exports_CommentEvent = CommentEvent;
40362
+ type exports_CompiledPrompt<Flavor extends "chat" | "completion"> = CompiledPrompt<Flavor>;
40363
+ type exports_CompiledPromptParams = CompiledPromptParams;
40364
+ type exports_CompletionPrompt = CompletionPrompt;
40365
+ type exports_ContextManager = ContextManager;
40366
+ declare const exports_ContextManager: typeof ContextManager;
40367
+ type exports_ContextParentSpanIds = ContextParentSpanIds;
40368
+ type exports_CreateProjectOpts = CreateProjectOpts;
40369
+ declare const exports_DEFAULT_FETCH_BATCH_SIZE: typeof DEFAULT_FETCH_BATCH_SIZE;
40370
+ declare const exports_DEFAULT_MAX_REQUEST_SIZE: typeof DEFAULT_MAX_REQUEST_SIZE;
40371
+ type exports_DataSummary = DataSummary;
40372
+ type exports_Dataset<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY_DATASET> = Dataset<IsLegacyDataset>;
40373
+ declare const exports_Dataset: typeof Dataset;
40374
+ type exports_DatasetRecord<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY_DATASET> = DatasetRecord<IsLegacyDataset>;
40375
+ type exports_DatasetSummary = DatasetSummary;
40376
+ type exports_DefaultMetadataType = DefaultMetadataType;
40377
+ type exports_DefaultPromptArgs = DefaultPromptArgs;
40378
+ declare const exports_ERR_PERMALINK: typeof ERR_PERMALINK;
40379
+ type exports_EndSpanArgs = EndSpanArgs;
40380
+ declare const exports_Eval: typeof Eval;
40381
+ type exports_EvalCase<Input, Expected, Metadata> = EvalCase<Input, Expected, Metadata>;
40382
+ type exports_EvalHooks<Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters> = EvalHooks<Expected, Metadata, Parameters>;
40383
+ type exports_EvalParameterSerializedSchema = EvalParameterSerializedSchema;
40384
+ type exports_EvalParameters = EvalParameters;
40385
+ type exports_EvalResult<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalResult<Input, Output, Expected, Metadata>;
40386
+ type exports_EvalResultWithSummary<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalResultWithSummary<Input, Output, Expected, Metadata>;
40387
+ declare const exports_EvalResultWithSummary: typeof EvalResultWithSummary;
40388
+ type exports_EvalScorer<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalScorer<Input, Output, Expected, Metadata>;
40389
+ type exports_EvalScorerArgs<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalScorerArgs<Input, Output, Expected, Metadata>;
40390
+ type exports_EvalTask<Input, Output, Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters> = EvalTask<Input, Output, Expected, Metadata, Parameters>;
40391
+ type exports_Evaluator<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters> = Evaluator<Input, Output, Expected, Metadata, Parameters>;
40392
+ type exports_EvaluatorDef<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters> = EvaluatorDef<Input, Output, Expected, Metadata, Parameters>;
40393
+ type exports_EvaluatorDefinition = EvaluatorDefinition;
40394
+ type exports_EvaluatorDefinitions = EvaluatorDefinitions;
40395
+ type exports_EvaluatorFile = EvaluatorFile;
40396
+ type exports_EvaluatorManifest = EvaluatorManifest;
40397
+ type exports_Experiment = Experiment;
40398
+ declare const exports_Experiment: typeof Experiment;
40399
+ type exports_ExperimentLogFullArgs = ExperimentLogFullArgs;
40400
+ type exports_ExperimentLogPartialArgs = ExperimentLogPartialArgs;
40401
+ type exports_ExperimentSummary = ExperimentSummary;
40402
+ type exports_Exportable = Exportable;
40403
+ type exports_ExternalAttachment = ExternalAttachment;
40404
+ declare const exports_ExternalAttachment: typeof ExternalAttachment;
40405
+ type exports_ExternalAttachmentParams = ExternalAttachmentParams;
40406
+ type exports_FailedHTTPResponse = FailedHTTPResponse;
40407
+ declare const exports_FailedHTTPResponse: typeof FailedHTTPResponse;
40408
+ type exports_FullInitDatasetOptions<IsLegacyDataset extends boolean> = FullInitDatasetOptions<IsLegacyDataset>;
40409
+ type exports_FullInitOptions<IsOpen extends boolean> = FullInitOptions<IsOpen>;
40410
+ type exports_FullLoginOptions = FullLoginOptions;
40411
+ type exports_FunctionEvent = FunctionEvent;
40412
+ type exports_GetThreadOptions = GetThreadOptions;
40413
+ type exports_IDGenerator = IDGenerator;
40414
+ declare const exports_IDGenerator: typeof IDGenerator;
40415
+ type exports_IdField = IdField;
40416
+ type exports_InitDatasetOptions<IsLegacyDataset extends boolean> = InitDatasetOptions<IsLegacyDataset>;
40417
+ type exports_InitLoggerOptions<IsAsyncFlush> = InitLoggerOptions<IsAsyncFlush>;
40418
+ type exports_InitOptions<IsOpen extends boolean> = InitOptions<IsOpen>;
40419
+ type exports_InputField = InputField;
40420
+ type exports_InstrumentationConfig = InstrumentationConfig;
40421
+ type exports_InvokeFunctionArgs<Input, Output, Stream extends boolean = false> = InvokeFunctionArgs<Input, Output, Stream>;
40422
+ type exports_InvokeReturn<Stream extends boolean, Output> = InvokeReturn<Stream, Output>;
40423
+ type exports_JSONAttachment = JSONAttachment;
40424
+ declare const exports_JSONAttachment: typeof JSONAttachment;
40425
+ declare const exports_LEGACY_CACHED_HEADER: typeof LEGACY_CACHED_HEADER;
40426
+ declare const exports_LOGS3_OVERFLOW_REFERENCE_TYPE: typeof LOGS3_OVERFLOW_REFERENCE_TYPE;
40427
+ type exports_LazyValue<T> = LazyValue<T>;
40428
+ declare const exports_LazyValue: typeof LazyValue;
40429
+ type exports_LoadPromptOptions = LoadPromptOptions;
40430
+ type exports_LogCommentFullArgs = LogCommentFullArgs;
40431
+ type exports_LogFeedbackFullArgs = LogFeedbackFullArgs;
40432
+ type exports_LogOptions<IsAsyncFlush> = LogOptions<IsAsyncFlush>;
40433
+ type exports_Logger<IsAsyncFlush extends boolean> = Logger<IsAsyncFlush>;
40434
+ declare const exports_Logger: typeof Logger;
40435
+ type exports_LoginInvalidOrgError = LoginInvalidOrgError;
40436
+ declare const exports_LoginInvalidOrgError: typeof LoginInvalidOrgError;
40437
+ type exports_LoginOptions = LoginOptions;
40438
+ type exports_Logs3OverflowInputRow = Logs3OverflowInputRow;
40439
+ type exports_Logs3OverflowUpload = Logs3OverflowUpload;
40440
+ type exports_MetricSummary = MetricSummary;
40441
+ declare const exports_NOOP_SPAN: typeof NOOP_SPAN;
40442
+ declare const exports_NOOP_SPAN_PERMALINK: typeof NOOP_SPAN_PERMALINK;
40443
+ type exports_NoopSpan = NoopSpan;
40444
+ declare const exports_NoopSpan: typeof NoopSpan;
40445
+ type exports_ObjectFetcher<RecordType> = ObjectFetcher<RecordType>;
40446
+ declare const exports_ObjectFetcher: typeof ObjectFetcher;
40447
+ type exports_ObjectMetadata = ObjectMetadata;
40448
+ type exports_OtherExperimentLogFields = OtherExperimentLogFields;
40449
+ type exports_ParametersSource = ParametersSource;
40450
+ type exports_ParentExperimentIds = ParentExperimentIds;
40451
+ type exports_ParentProjectLogIds = ParentProjectLogIds;
40452
+ type exports_Project = Project;
40453
+ declare const exports_Project: typeof Project;
40454
+ type exports_ProjectNameIdMap = ProjectNameIdMap;
40455
+ declare const exports_ProjectNameIdMap: typeof ProjectNameIdMap;
40456
+ type exports_PromiseUnless<B, R> = PromiseUnless<B, R>;
40457
+ type exports_Prompt<HasId extends boolean = true, HasVersion extends boolean = true> = Prompt<HasId, HasVersion>;
40458
+ declare const exports_Prompt: typeof Prompt;
40459
+ type exports_PromptBuilder = PromptBuilder;
40460
+ declare const exports_PromptBuilder: typeof PromptBuilder;
40461
+ type exports_PromptContents = PromptContents;
40462
+ type exports_PromptDefinition = PromptDefinition;
40463
+ type exports_PromptDefinitionWithTools = PromptDefinitionWithTools;
40464
+ type exports_PromptOpts<HasId extends boolean, HasVersion extends boolean, HasTools extends boolean = true, HasNoTrace extends boolean = true> = PromptOpts<HasId, HasVersion, HasTools, HasNoTrace>;
40465
+ type exports_PromptRowWithId<HasId extends boolean = true, HasVersion extends boolean = true> = PromptRowWithId<HasId, HasVersion>;
40466
+ type exports_ReadonlyAttachment = ReadonlyAttachment;
40467
+ declare const exports_ReadonlyAttachment: typeof ReadonlyAttachment;
40468
+ type exports_ReadonlyExperiment = ReadonlyExperiment;
40469
+ declare const exports_ReadonlyExperiment: typeof ReadonlyExperiment;
40470
+ type exports_RegisterSandboxOptions = RegisterSandboxOptions;
40471
+ type exports_RegisterSandboxResult = RegisterSandboxResult;
40472
+ declare const exports_Reporter: typeof Reporter;
40473
+ type exports_ReporterBody<EvalReport> = ReporterBody<EvalReport>;
40474
+ type exports_SandboxConfig = SandboxConfig;
40475
+ type exports_ScoreSummary = ScoreSummary;
40476
+ type exports_ScorerBuilder = ScorerBuilder;
40477
+ declare const exports_ScorerBuilder: typeof ScorerBuilder;
40478
+ type exports_ScorerOpts<Output, Input, Params, Returns, Fn extends GenericFunction<Exact<Params, ScorerArgs<Output, Input>>, Returns>> = ScorerOpts<Output, Input, Params, Returns, Fn>;
40479
+ type exports_SerializedBraintrustState = SerializedBraintrustState;
40480
+ type exports_SetCurrentArg = SetCurrentArg;
40481
+ type exports_Span = Span;
40482
+ type exports_SpanContext = SpanContext;
40483
+ type exports_SpanData = SpanData;
40484
+ type exports_SpanFetcher = SpanFetcher;
40485
+ declare const exports_SpanFetcher: typeof SpanFetcher;
40486
+ type exports_SpanImpl = SpanImpl;
40487
+ declare const exports_SpanImpl: typeof SpanImpl;
40488
+ type exports_StartSpanArgs = StartSpanArgs;
40489
+ type exports_TemplateFormat = TemplateFormat;
40490
+ type exports_TemplateRenderer = TemplateRenderer;
40491
+ type exports_TemplateRendererPlugin = TemplateRendererPlugin;
40492
+ type exports_TestBackgroundLogger = TestBackgroundLogger;
40493
+ declare const exports_TestBackgroundLogger: typeof TestBackgroundLogger;
40494
+ type exports_ToolBuilder = ToolBuilder;
40495
+ declare const exports_ToolBuilder: typeof ToolBuilder;
40496
+ type exports_Trace = Trace;
40497
+ type exports_UUIDGenerator = UUIDGenerator;
40498
+ declare const exports_UUIDGenerator: typeof UUIDGenerator;
40499
+ type exports_WithTransactionId<R> = WithTransactionId<R>;
40500
+ declare const exports_X_CACHED_HEADER: typeof X_CACHED_HEADER;
40501
+ declare const exports__exportsForTestingOnly: typeof _exportsForTestingOnly;
40502
+ declare const exports__internalGetGlobalState: typeof _internalGetGlobalState;
40503
+ declare const exports__internalSetInitialState: typeof _internalSetInitialState;
40504
+ declare const exports_addAzureBlobHeaders: typeof addAzureBlobHeaders;
40505
+ declare const exports_braintrustStreamChunkSchema: typeof braintrustStreamChunkSchema;
40506
+ declare const exports_buildLocalSummary: typeof buildLocalSummary;
40507
+ declare const exports_configureInstrumentation: typeof configureInstrumentation;
40508
+ declare const exports_constructLogs3OverflowRequest: typeof constructLogs3OverflowRequest;
40509
+ declare const exports_createFinalValuePassThroughStream: typeof createFinalValuePassThroughStream;
40510
+ declare const exports_currentExperiment: typeof currentExperiment;
40511
+ declare const exports_currentLogger: typeof currentLogger;
40512
+ declare const exports_currentSpan: typeof currentSpan;
40513
+ declare const exports_deepCopyEvent: typeof deepCopyEvent;
40514
+ declare const exports_defaultErrorScoreHandler: typeof defaultErrorScoreHandler;
40515
+ declare const exports_deserializePlainStringAsJSON: typeof deserializePlainStringAsJSON;
40516
+ declare const exports_devNullWritableStream: typeof devNullWritableStream;
40517
+ declare const exports_evaluatorDefinitionSchema: typeof evaluatorDefinitionSchema;
40518
+ declare const exports_evaluatorDefinitionsSchema: typeof evaluatorDefinitionsSchema;
40519
+ declare const exports_flush: typeof flush;
40520
+ declare const exports_getContextManager: typeof getContextManager;
40521
+ declare const exports_getIdGenerator: typeof getIdGenerator;
40522
+ declare const exports_getPromptVersions: typeof getPromptVersions;
40523
+ declare const exports_getSpanParentObject: typeof getSpanParentObject;
40524
+ declare const exports_getTemplateRenderer: typeof getTemplateRenderer;
40525
+ declare const exports_init: typeof init;
40526
+ declare const exports_initDataset: typeof initDataset;
40527
+ declare const exports_initExperiment: typeof initExperiment;
40528
+ declare const exports_initFunction: typeof initFunction;
40529
+ declare const exports_initLogger: typeof initLogger;
40530
+ declare const exports_initNodeTestSuite: typeof initNodeTestSuite;
40531
+ declare const exports_invoke: typeof invoke;
40532
+ declare const exports_isTemplateFormat: typeof isTemplateFormat;
40533
+ declare const exports_loadParameters: typeof loadParameters;
40534
+ declare const exports_loadPrompt: typeof loadPrompt;
40535
+ declare const exports_log: typeof log;
40536
+ declare const exports_logError: typeof logError;
40537
+ declare const exports_login: typeof login;
40538
+ declare const exports_loginToState: typeof loginToState;
40539
+ declare const exports_logs3OverflowUploadSchema: typeof logs3OverflowUploadSchema;
40540
+ declare const exports_newId: typeof newId;
40541
+ declare const exports_parseCachedHeader: typeof parseCachedHeader;
40542
+ declare const exports_parseTemplateFormat: typeof parseTemplateFormat;
40543
+ declare const exports_permalink: typeof permalink;
40544
+ declare const exports_pickLogs3OverflowObjectIds: typeof pickLogs3OverflowObjectIds;
40545
+ declare const exports_projects: typeof projects;
40546
+ declare const exports_promptContentsSchema: typeof promptContentsSchema;
40547
+ declare const exports_promptDefinitionSchema: typeof promptDefinitionSchema;
40548
+ declare const exports_promptDefinitionToPromptData: typeof promptDefinitionToPromptData;
40549
+ declare const exports_promptDefinitionWithToolsSchema: typeof promptDefinitionWithToolsSchema;
40550
+ declare const exports_registerOtelFlush: typeof registerOtelFlush;
40551
+ declare const exports_registerSandbox: typeof registerSandbox;
40552
+ declare const exports_registerTemplatePlugin: typeof registerTemplatePlugin;
40553
+ declare const exports_renderMessage: typeof renderMessage;
40554
+ declare const exports_renderPromptParams: typeof renderPromptParams;
40555
+ declare const exports_renderTemplateContent: typeof renderTemplateContent;
40556
+ declare const exports_reportFailures: typeof reportFailures;
40557
+ declare const exports_runEvaluator: typeof runEvaluator;
40558
+ declare const exports_setFetch: typeof setFetch;
40559
+ declare const exports_setMaskingFunction: typeof setMaskingFunction;
40560
+ declare const exports_spanComponentsToObjectId: typeof spanComponentsToObjectId;
40561
+ declare const exports_startSpan: typeof startSpan;
40562
+ declare const exports_summarize: typeof summarize;
40563
+ declare const exports_templateRegistry: typeof templateRegistry;
40564
+ declare const exports_traceable: typeof traceable;
40565
+ declare const exports_traced: typeof traced;
40566
+ declare const exports_updateSpan: typeof updateSpan;
40567
+ declare const exports_uploadLogs3OverflowPayload: typeof uploadLogs3OverflowPayload;
40568
+ declare const exports_utf8ByteLength: typeof utf8ByteLength;
40569
+ declare const exports_withCurrent: typeof withCurrent;
40570
+ declare const exports_withDataset: typeof withDataset;
40571
+ declare const exports_withExperiment: typeof withExperiment;
40572
+ declare const exports_withLogger: typeof withLogger;
40573
+ declare const exports_withParent: typeof withParent;
40574
+ declare const exports_wrapAISDK: typeof wrapAISDK;
40575
+ declare const exports_wrapAISDKModel: typeof wrapAISDKModel;
40576
+ declare const exports_wrapAgentClass: typeof wrapAgentClass;
40577
+ declare const exports_wrapAnthropic: typeof wrapAnthropic;
40578
+ declare const exports_wrapClaudeAgentSDK: typeof wrapClaudeAgentSDK;
40579
+ declare const exports_wrapGoogleGenAI: typeof wrapGoogleGenAI;
40580
+ declare const exports_wrapMastraAgent: typeof wrapMastraAgent;
40581
+ declare const exports_wrapOpenAI: typeof wrapOpenAI;
40582
+ declare const exports_wrapOpenAIv4: typeof wrapOpenAIv4;
40583
+ declare const exports_wrapOpenRouter: typeof wrapOpenRouter;
40584
+ declare const exports_wrapTraced: typeof wrapTraced;
40585
+ declare const exports_wrapVitest: typeof wrapVitest;
40586
+ declare namespace exports {
40587
+ export { type exports_AnyDataset as AnyDataset, exports_Attachment as Attachment, type exports_AttachmentParams as AttachmentParams, exports_AttachmentReference as AttachmentReference, 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, 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_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_wrapGoogleGenAI as wrapGoogleGenAI, exports_wrapMastraAgent as wrapMastraAgent, exports_wrapOpenAI as wrapOpenAI, exports_wrapOpenAIv4 as wrapOpenAIv4, exports_wrapOpenRouter as wrapOpenRouter, exports_wrapTraced as wrapTraced, exports_wrapVitest as wrapVitest };
40502
40588
  }
40503
40589
 
40504
- export { type AnyDataset, Attachment, type AttachmentParams, AttachmentReference, 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, 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 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, wrapGoogleGenAI, wrapMastraAgent, wrapOpenAI, wrapOpenAIv4, wrapTraced, wrapVitest };
40590
+ export { type AnyDataset, Attachment, type AttachmentParams, AttachmentReference, 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, 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 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, wrapGoogleGenAI, wrapMastraAgent, wrapOpenAI, wrapOpenAIv4, wrapOpenRouter, wrapTraced, wrapVitest };