braintrust 3.24.0 → 3.26.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 (80) hide show
  1. package/NOTICE +6 -0
  2. package/dev/dist/index.d.mts +135 -2
  3. package/dev/dist/index.d.ts +135 -2
  4. package/dev/dist/index.js +4426 -2040
  5. package/dev/dist/index.mjs +3594 -1208
  6. package/dist/apply-auto-instrumentation.js +445 -403
  7. package/dist/apply-auto-instrumentation.mjs +249 -207
  8. package/dist/auto-instrumentations/bundler/esbuild.cjs +1449 -799
  9. package/dist/auto-instrumentations/bundler/esbuild.d.mts +4 -4
  10. package/dist/auto-instrumentations/bundler/esbuild.d.ts +4 -4
  11. package/dist/auto-instrumentations/bundler/esbuild.mjs +5 -8
  12. package/dist/auto-instrumentations/bundler/next.cjs +1448 -818
  13. package/dist/auto-instrumentations/bundler/next.mjs +6 -29
  14. package/dist/auto-instrumentations/bundler/rollup.cjs +1449 -799
  15. package/dist/auto-instrumentations/bundler/rollup.d.mts +4 -4
  16. package/dist/auto-instrumentations/bundler/rollup.d.ts +4 -4
  17. package/dist/auto-instrumentations/bundler/rollup.mjs +5 -8
  18. package/dist/auto-instrumentations/bundler/vite.cjs +1449 -799
  19. package/dist/auto-instrumentations/bundler/vite.d.mts +4 -4
  20. package/dist/auto-instrumentations/bundler/vite.d.ts +4 -4
  21. package/dist/auto-instrumentations/bundler/vite.mjs +5 -8
  22. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +1602 -728
  23. package/dist/auto-instrumentations/bundler/webpack-loader.d.ts +20 -12
  24. package/dist/auto-instrumentations/bundler/webpack.cjs +1449 -799
  25. package/dist/auto-instrumentations/bundler/webpack.d.mts +4 -4
  26. package/dist/auto-instrumentations/bundler/webpack.d.ts +4 -4
  27. package/dist/auto-instrumentations/bundler/webpack.mjs +5 -4
  28. package/dist/auto-instrumentations/{chunk-GSZHTAQW.mjs → chunk-6E22MYSW.mjs} +194 -93
  29. package/dist/auto-instrumentations/{chunk-VT6DDNKM.mjs → chunk-AKKPLXTP.mjs} +631 -194
  30. package/dist/auto-instrumentations/chunk-NRE4QUQR.mjs +509 -0
  31. package/dist/auto-instrumentations/{chunk-BURMPO7L.mjs → chunk-V5LEODRX.mjs} +2 -6
  32. package/dist/auto-instrumentations/{chunk-M6DLIJ2Z.mjs → chunk-XYN63IG5.mjs} +124 -194
  33. package/dist/auto-instrumentations/{chunk-F43DNLPD.mjs → chunk-XZHHE4Y3.mjs} +646 -510
  34. package/dist/auto-instrumentations/hook.mjs +894 -657
  35. package/dist/auto-instrumentations/index.cjs +1125 -490
  36. package/dist/auto-instrumentations/index.d.mts +6 -2
  37. package/dist/auto-instrumentations/index.d.ts +6 -2
  38. package/dist/auto-instrumentations/index.mjs +6 -1
  39. package/dist/auto-instrumentations/loader/cjs-patch.cjs +492 -195
  40. package/dist/auto-instrumentations/loader/cjs-patch.d.mts +2 -2
  41. package/dist/auto-instrumentations/loader/cjs-patch.d.ts +2 -2
  42. package/dist/auto-instrumentations/loader/cjs-patch.mjs +3 -2
  43. package/dist/auto-instrumentations/loader/esm-hook.mjs +1 -1
  44. package/dist/auto-instrumentations/plugin-B-aZh7EP.d.ts +30 -0
  45. package/dist/auto-instrumentations/plugin-Bnj4E_6B.d.mts +30 -0
  46. package/dist/auto-instrumentations/{types-RNPaKi9o.d.mts → types-C1fVeiCp.d.mts} +1 -1
  47. package/dist/auto-instrumentations/{types-RNPaKi9o.d.ts → types-C1fVeiCp.d.ts} +1 -1
  48. package/dist/browser.d.mts +824 -197
  49. package/dist/browser.d.ts +824 -197
  50. package/dist/browser.js +3897 -1228
  51. package/dist/browser.mjs +3897 -1228
  52. package/dist/chunk-PN7EWK66.mjs +1784 -0
  53. package/dist/{chunk-SU6EHKJV.js → chunk-VRZZQPAA.js} +3289 -1577
  54. package/dist/chunk-VYNNEKSA.js +1784 -0
  55. package/dist/{chunk-XE5FS7QY.mjs → chunk-XIZOM2HO.mjs} +2470 -758
  56. package/dist/cli.js +3596 -1211
  57. package/dist/edge-light.d.mts +1 -1
  58. package/dist/edge-light.d.ts +1 -1
  59. package/dist/edge-light.js +3897 -1231
  60. package/dist/edge-light.mjs +3897 -1231
  61. package/dist/index.d.mts +824 -197
  62. package/dist/index.d.ts +824 -197
  63. package/dist/index.js +750 -445
  64. package/dist/index.mjs +334 -29
  65. package/dist/instrumentation/index.d.mts +135 -6
  66. package/dist/instrumentation/index.d.ts +135 -6
  67. package/dist/instrumentation/index.js +3696 -1257
  68. package/dist/instrumentation/index.mjs +3696 -1257
  69. package/dist/vitest-evals-reporter.js +16 -16
  70. package/dist/vitest-evals-reporter.mjs +2 -2
  71. package/dist/workerd.d.mts +1 -1
  72. package/dist/workerd.d.ts +1 -1
  73. package/dist/workerd.js +3897 -1231
  74. package/dist/workerd.mjs +3897 -1231
  75. package/licenses/node-diagnostics-channel/LICENSE +19 -0
  76. package/package.json +34 -35
  77. package/dist/auto-instrumentations/plugin-D0KHwSJv.d.mts +0 -44
  78. package/dist/auto-instrumentations/plugin-G6fgxk1b.d.ts +0 -44
  79. package/dist/chunk-7AUY2XWX.js +0 -1090
  80. package/dist/chunk-7F6GCRHH.mjs +0 -1090
package/dist/index.d.ts CHANGED
@@ -8028,6 +8028,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8028
8028
  naming_model?: string | undefined;
8029
8029
  }>>;
8030
8030
  disable_reconciliation: z.ZodOptional<z.ZodBoolean>;
8031
+ reconcile_mode: z.ZodOptional<z.ZodEnum<["evolve", "names_only"]>>;
8031
8032
  distance_threshold: z.ZodOptional<z.ZodNumber>;
8032
8033
  btql_filter: z.ZodOptional<z.ZodString>;
8033
8034
  automation_btql_filter: z.ZodOptional<z.ZodString>;
@@ -8050,6 +8051,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8050
8051
  naming_model?: string | undefined;
8051
8052
  } | undefined;
8052
8053
  disable_reconciliation?: boolean | undefined;
8054
+ reconcile_mode?: "evolve" | "names_only" | undefined;
8053
8055
  distance_threshold?: number | undefined;
8054
8056
  automation_btql_filter?: string | undefined;
8055
8057
  }, {
@@ -8071,6 +8073,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8071
8073
  naming_model?: string | undefined;
8072
8074
  } | undefined;
8073
8075
  disable_reconciliation?: boolean | undefined;
8076
+ reconcile_mode?: "evolve" | "names_only" | undefined;
8074
8077
  distance_threshold?: number | undefined;
8075
8078
  automation_btql_filter?: string | undefined;
8076
8079
  }>;
@@ -8095,6 +8098,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8095
8098
  naming_model?: string | undefined;
8096
8099
  } | undefined;
8097
8100
  disable_reconciliation?: boolean | undefined;
8101
+ reconcile_mode?: "evolve" | "names_only" | undefined;
8098
8102
  distance_threshold?: number | undefined;
8099
8103
  automation_btql_filter?: string | undefined;
8100
8104
  };
@@ -8120,6 +8124,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8120
8124
  naming_model?: string | undefined;
8121
8125
  } | undefined;
8122
8126
  disable_reconciliation?: boolean | undefined;
8127
+ reconcile_mode?: "evolve" | "names_only" | undefined;
8123
8128
  distance_threshold?: number | undefined;
8124
8129
  automation_btql_filter?: string | undefined;
8125
8130
  };
@@ -8164,6 +8169,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8164
8169
  naming_model?: string | undefined;
8165
8170
  } | undefined;
8166
8171
  disable_reconciliation?: boolean | undefined;
8172
+ reconcile_mode?: "evolve" | "names_only" | undefined;
8167
8173
  distance_threshold?: number | undefined;
8168
8174
  automation_btql_filter?: string | undefined;
8169
8175
  };
@@ -8208,6 +8214,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8208
8214
  naming_model?: string | undefined;
8209
8215
  } | undefined;
8210
8216
  disable_reconciliation?: boolean | undefined;
8217
+ reconcile_mode?: "evolve" | "names_only" | undefined;
8211
8218
  distance_threshold?: number | undefined;
8212
8219
  automation_btql_filter?: string | undefined;
8213
8220
  };
@@ -8290,6 +8297,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8290
8297
  naming_model?: string | undefined;
8291
8298
  }>>;
8292
8299
  disable_reconciliation: z.ZodOptional<z.ZodBoolean>;
8300
+ reconcile_mode: z.ZodOptional<z.ZodEnum<["evolve", "names_only"]>>;
8293
8301
  distance_threshold: z.ZodOptional<z.ZodNumber>;
8294
8302
  btql_filter: z.ZodOptional<z.ZodString>;
8295
8303
  automation_btql_filter: z.ZodOptional<z.ZodString>;
@@ -8312,6 +8320,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8312
8320
  naming_model?: string | undefined;
8313
8321
  } | undefined;
8314
8322
  disable_reconciliation?: boolean | undefined;
8323
+ reconcile_mode?: "evolve" | "names_only" | undefined;
8315
8324
  distance_threshold?: number | undefined;
8316
8325
  automation_btql_filter?: string | undefined;
8317
8326
  }, {
@@ -8333,6 +8342,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8333
8342
  naming_model?: string | undefined;
8334
8343
  } | undefined;
8335
8344
  disable_reconciliation?: boolean | undefined;
8345
+ reconcile_mode?: "evolve" | "names_only" | undefined;
8336
8346
  distance_threshold?: number | undefined;
8337
8347
  automation_btql_filter?: string | undefined;
8338
8348
  }>, z.ZodUnknown>]>;
@@ -9411,6 +9421,7 @@ declare const PromptData: z.ZodObject<{
9411
9421
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
9412
9422
  }, z.ZodTypeAny, "passthrough">>]>>;
9413
9423
  position: z.ZodOptional<z.ZodString>;
9424
+ endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
9414
9425
  }, "strip", z.ZodTypeAny, {
9415
9426
  params?: z.objectOutputType<{
9416
9427
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -9531,6 +9542,7 @@ declare const PromptData: z.ZodObject<{
9531
9542
  }, z.ZodTypeAny, "passthrough"> | undefined;
9532
9543
  model?: string | undefined;
9533
9544
  position?: string | undefined;
9545
+ endpoint_name?: string | null | undefined;
9534
9546
  }, {
9535
9547
  params?: z.objectInputType<{
9536
9548
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -9651,6 +9663,7 @@ declare const PromptData: z.ZodObject<{
9651
9663
  }, z.ZodTypeAny, "passthrough"> | undefined;
9652
9664
  model?: string | undefined;
9653
9665
  position?: string | undefined;
9666
+ endpoint_name?: string | null | undefined;
9654
9667
  }>, z.ZodNull]>>;
9655
9668
  parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
9656
9669
  type: z.ZodLiteral<"llm_classifier">;
@@ -9674,6 +9687,31 @@ declare const PromptData: z.ZodObject<{
9674
9687
  allow_no_match?: boolean | undefined;
9675
9688
  allow_skip?: boolean | undefined;
9676
9689
  }>, z.ZodNull]>>;
9690
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
9691
+ type: z.ZodLiteral<"function">;
9692
+ id: z.ZodString;
9693
+ version: z.ZodOptional<z.ZodString>;
9694
+ }, "strip", z.ZodTypeAny, {
9695
+ id: string;
9696
+ type: "function";
9697
+ version?: string | undefined;
9698
+ }, {
9699
+ id: string;
9700
+ type: "function";
9701
+ version?: string | undefined;
9702
+ }>, z.ZodObject<{
9703
+ type: z.ZodLiteral<"global">;
9704
+ name: z.ZodString;
9705
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
9706
+ }, "strip", z.ZodTypeAny, {
9707
+ type: "global";
9708
+ name: string;
9709
+ function_type: "preprocessor";
9710
+ }, {
9711
+ type: "global";
9712
+ name: string;
9713
+ function_type?: "preprocessor" | undefined;
9714
+ }>, z.ZodNull]>>;
9677
9715
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
9678
9716
  type: z.ZodLiteral<"function">;
9679
9717
  id: z.ZodString;
@@ -9865,6 +9903,7 @@ declare const PromptData: z.ZodObject<{
9865
9903
  }, z.ZodTypeAny, "passthrough"> | undefined;
9866
9904
  model?: string | undefined;
9867
9905
  position?: string | undefined;
9906
+ endpoint_name?: string | null | undefined;
9868
9907
  } | null | undefined;
9869
9908
  prompt?: {
9870
9909
  type: "chat";
@@ -9996,6 +10035,15 @@ declare const PromptData: z.ZodObject<{
9996
10035
  name: string;
9997
10036
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
9998
10037
  })[] | null | undefined;
10038
+ preprocessor?: {
10039
+ id: string;
10040
+ type: "function";
10041
+ version?: string | undefined;
10042
+ } | {
10043
+ type: "global";
10044
+ name: string;
10045
+ function_type: "preprocessor";
10046
+ } | null | undefined;
9999
10047
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
10000
10048
  mcp?: Record<string, {
10001
10049
  id: string;
@@ -10129,6 +10177,7 @@ declare const PromptData: z.ZodObject<{
10129
10177
  }, z.ZodTypeAny, "passthrough"> | undefined;
10130
10178
  model?: string | undefined;
10131
10179
  position?: string | undefined;
10180
+ endpoint_name?: string | null | undefined;
10132
10181
  } | null | undefined;
10133
10182
  prompt?: {
10134
10183
  type: "chat";
@@ -10260,6 +10309,15 @@ declare const PromptData: z.ZodObject<{
10260
10309
  name: string;
10261
10310
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
10262
10311
  })[] | null | undefined;
10312
+ preprocessor?: {
10313
+ id: string;
10314
+ type: "function";
10315
+ version?: string | undefined;
10316
+ } | {
10317
+ type: "global";
10318
+ name: string;
10319
+ function_type?: "preprocessor" | undefined;
10320
+ } | null | undefined;
10263
10321
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
10264
10322
  mcp?: Record<string, {
10265
10323
  id: string;
@@ -11422,6 +11480,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11422
11480
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
11423
11481
  }, z.ZodTypeAny, "passthrough">>]>>;
11424
11482
  position: z.ZodOptional<z.ZodString>;
11483
+ endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
11425
11484
  }, "strip", z.ZodTypeAny, {
11426
11485
  params?: z.objectOutputType<{
11427
11486
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -11542,6 +11601,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11542
11601
  }, z.ZodTypeAny, "passthrough"> | undefined;
11543
11602
  model?: string | undefined;
11544
11603
  position?: string | undefined;
11604
+ endpoint_name?: string | null | undefined;
11545
11605
  }, {
11546
11606
  params?: z.objectInputType<{
11547
11607
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -11662,6 +11722,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11662
11722
  }, z.ZodTypeAny, "passthrough"> | undefined;
11663
11723
  model?: string | undefined;
11664
11724
  position?: string | undefined;
11725
+ endpoint_name?: string | null | undefined;
11665
11726
  }>, z.ZodNull]>>;
11666
11727
  parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
11667
11728
  type: z.ZodLiteral<"llm_classifier">;
@@ -11685,6 +11746,31 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11685
11746
  allow_no_match?: boolean | undefined;
11686
11747
  allow_skip?: boolean | undefined;
11687
11748
  }>, z.ZodNull]>>;
11749
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
11750
+ type: z.ZodLiteral<"function">;
11751
+ id: z.ZodString;
11752
+ version: z.ZodOptional<z.ZodString>;
11753
+ }, "strip", z.ZodTypeAny, {
11754
+ id: string;
11755
+ type: "function";
11756
+ version?: string | undefined;
11757
+ }, {
11758
+ id: string;
11759
+ type: "function";
11760
+ version?: string | undefined;
11761
+ }>, z.ZodObject<{
11762
+ type: z.ZodLiteral<"global">;
11763
+ name: z.ZodString;
11764
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
11765
+ }, "strip", z.ZodTypeAny, {
11766
+ type: "global";
11767
+ name: string;
11768
+ function_type: "preprocessor";
11769
+ }, {
11770
+ type: "global";
11771
+ name: string;
11772
+ function_type?: "preprocessor" | undefined;
11773
+ }>, z.ZodNull]>>;
11688
11774
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
11689
11775
  type: z.ZodLiteral<"function">;
11690
11776
  id: z.ZodString;
@@ -11876,6 +11962,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11876
11962
  }, z.ZodTypeAny, "passthrough"> | undefined;
11877
11963
  model?: string | undefined;
11878
11964
  position?: string | undefined;
11965
+ endpoint_name?: string | null | undefined;
11879
11966
  } | null | undefined;
11880
11967
  prompt?: {
11881
11968
  type: "chat";
@@ -12007,6 +12094,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12007
12094
  name: string;
12008
12095
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
12009
12096
  })[] | null | undefined;
12097
+ preprocessor?: {
12098
+ id: string;
12099
+ type: "function";
12100
+ version?: string | undefined;
12101
+ } | {
12102
+ type: "global";
12103
+ name: string;
12104
+ function_type: "preprocessor";
12105
+ } | null | undefined;
12010
12106
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
12011
12107
  mcp?: Record<string, {
12012
12108
  id: string;
@@ -12140,6 +12236,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12140
12236
  }, z.ZodTypeAny, "passthrough"> | undefined;
12141
12237
  model?: string | undefined;
12142
12238
  position?: string | undefined;
12239
+ endpoint_name?: string | null | undefined;
12143
12240
  } | null | undefined;
12144
12241
  prompt?: {
12145
12242
  type: "chat";
@@ -12271,6 +12368,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12271
12368
  name: string;
12272
12369
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
12273
12370
  })[] | null | undefined;
12371
+ preprocessor?: {
12372
+ id: string;
12373
+ type: "function";
12374
+ version?: string | undefined;
12375
+ } | {
12376
+ type: "global";
12377
+ name: string;
12378
+ function_type?: "preprocessor" | undefined;
12379
+ } | null | undefined;
12274
12380
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
12275
12381
  mcp?: Record<string, {
12276
12382
  id: string;
@@ -12414,6 +12520,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12414
12520
  }, z.ZodTypeAny, "passthrough"> | undefined;
12415
12521
  model?: string | undefined;
12416
12522
  position?: string | undefined;
12523
+ endpoint_name?: string | null | undefined;
12417
12524
  } | null | undefined;
12418
12525
  prompt?: {
12419
12526
  type: "chat";
@@ -12545,6 +12652,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12545
12652
  name: string;
12546
12653
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
12547
12654
  })[] | null | undefined;
12655
+ preprocessor?: {
12656
+ id: string;
12657
+ type: "function";
12658
+ version?: string | undefined;
12659
+ } | {
12660
+ type: "global";
12661
+ name: string;
12662
+ function_type: "preprocessor";
12663
+ } | null | undefined;
12548
12664
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
12549
12665
  mcp?: Record<string, {
12550
12666
  id: string;
@@ -12685,6 +12801,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12685
12801
  }, z.ZodTypeAny, "passthrough"> | undefined;
12686
12802
  model?: string | undefined;
12687
12803
  position?: string | undefined;
12804
+ endpoint_name?: string | null | undefined;
12688
12805
  } | null | undefined;
12689
12806
  prompt?: {
12690
12807
  type: "chat";
@@ -12816,6 +12933,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12816
12933
  name: string;
12817
12934
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
12818
12935
  })[] | null | undefined;
12936
+ preprocessor?: {
12937
+ id: string;
12938
+ type: "function";
12939
+ version?: string | undefined;
12940
+ } | {
12941
+ type: "global";
12942
+ name: string;
12943
+ function_type?: "preprocessor" | undefined;
12944
+ } | null | undefined;
12819
12945
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
12820
12946
  mcp?: Record<string, {
12821
12947
  id: string;
@@ -13905,6 +14031,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
13905
14031
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
13906
14032
  }, z.ZodTypeAny, "passthrough">>]>>;
13907
14033
  position: z.ZodOptional<z.ZodString>;
14034
+ endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
13908
14035
  }, "strip", z.ZodTypeAny, {
13909
14036
  params?: z.objectOutputType<{
13910
14037
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -14025,6 +14152,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14025
14152
  }, z.ZodTypeAny, "passthrough"> | undefined;
14026
14153
  model?: string | undefined;
14027
14154
  position?: string | undefined;
14155
+ endpoint_name?: string | null | undefined;
14028
14156
  }, {
14029
14157
  params?: z.objectInputType<{
14030
14158
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -14145,6 +14273,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14145
14273
  }, z.ZodTypeAny, "passthrough"> | undefined;
14146
14274
  model?: string | undefined;
14147
14275
  position?: string | undefined;
14276
+ endpoint_name?: string | null | undefined;
14148
14277
  }>, z.ZodNull]>>;
14149
14278
  parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
14150
14279
  type: z.ZodLiteral<"llm_classifier">;
@@ -14168,6 +14297,31 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14168
14297
  allow_no_match?: boolean | undefined;
14169
14298
  allow_skip?: boolean | undefined;
14170
14299
  }>, z.ZodNull]>>;
14300
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
14301
+ type: z.ZodLiteral<"function">;
14302
+ id: z.ZodString;
14303
+ version: z.ZodOptional<z.ZodString>;
14304
+ }, "strip", z.ZodTypeAny, {
14305
+ id: string;
14306
+ type: "function";
14307
+ version?: string | undefined;
14308
+ }, {
14309
+ id: string;
14310
+ type: "function";
14311
+ version?: string | undefined;
14312
+ }>, z.ZodObject<{
14313
+ type: z.ZodLiteral<"global">;
14314
+ name: z.ZodString;
14315
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
14316
+ }, "strip", z.ZodTypeAny, {
14317
+ type: "global";
14318
+ name: string;
14319
+ function_type: "preprocessor";
14320
+ }, {
14321
+ type: "global";
14322
+ name: string;
14323
+ function_type?: "preprocessor" | undefined;
14324
+ }>, z.ZodNull]>>;
14171
14325
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
14172
14326
  type: z.ZodLiteral<"function">;
14173
14327
  id: z.ZodString;
@@ -14359,6 +14513,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14359
14513
  }, z.ZodTypeAny, "passthrough"> | undefined;
14360
14514
  model?: string | undefined;
14361
14515
  position?: string | undefined;
14516
+ endpoint_name?: string | null | undefined;
14362
14517
  } | null | undefined;
14363
14518
  prompt?: {
14364
14519
  type: "chat";
@@ -14490,6 +14645,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14490
14645
  name: string;
14491
14646
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
14492
14647
  })[] | null | undefined;
14648
+ preprocessor?: {
14649
+ id: string;
14650
+ type: "function";
14651
+ version?: string | undefined;
14652
+ } | {
14653
+ type: "global";
14654
+ name: string;
14655
+ function_type: "preprocessor";
14656
+ } | null | undefined;
14493
14657
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
14494
14658
  mcp?: Record<string, {
14495
14659
  id: string;
@@ -14623,6 +14787,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14623
14787
  }, z.ZodTypeAny, "passthrough"> | undefined;
14624
14788
  model?: string | undefined;
14625
14789
  position?: string | undefined;
14790
+ endpoint_name?: string | null | undefined;
14626
14791
  } | null | undefined;
14627
14792
  prompt?: {
14628
14793
  type: "chat";
@@ -14754,6 +14919,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14754
14919
  name: string;
14755
14920
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
14756
14921
  })[] | null | undefined;
14922
+ preprocessor?: {
14923
+ id: string;
14924
+ type: "function";
14925
+ version?: string | undefined;
14926
+ } | {
14927
+ type: "global";
14928
+ name: string;
14929
+ function_type?: "preprocessor" | undefined;
14930
+ } | null | undefined;
14757
14931
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
14758
14932
  mcp?: Record<string, {
14759
14933
  id: string;
@@ -14892,6 +15066,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14892
15066
  }, z.ZodTypeAny, "passthrough"> | undefined;
14893
15067
  model?: string | undefined;
14894
15068
  position?: string | undefined;
15069
+ endpoint_name?: string | null | undefined;
14895
15070
  } | null | undefined;
14896
15071
  prompt?: {
14897
15072
  type: "chat";
@@ -15023,6 +15198,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
15023
15198
  name: string;
15024
15199
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
15025
15200
  })[] | null | undefined;
15201
+ preprocessor?: {
15202
+ id: string;
15203
+ type: "function";
15204
+ version?: string | undefined;
15205
+ } | {
15206
+ type: "global";
15207
+ name: string;
15208
+ function_type: "preprocessor";
15209
+ } | null | undefined;
15026
15210
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
15027
15211
  mcp?: Record<string, {
15028
15212
  id: string;
@@ -15159,6 +15343,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
15159
15343
  }, z.ZodTypeAny, "passthrough"> | undefined;
15160
15344
  model?: string | undefined;
15161
15345
  position?: string | undefined;
15346
+ endpoint_name?: string | null | undefined;
15162
15347
  } | null | undefined;
15163
15348
  prompt?: {
15164
15349
  type: "chat";
@@ -15290,6 +15475,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
15290
15475
  name: string;
15291
15476
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
15292
15477
  })[] | null | undefined;
15478
+ preprocessor?: {
15479
+ id: string;
15480
+ type: "function";
15481
+ version?: string | undefined;
15482
+ } | {
15483
+ type: "global";
15484
+ name: string;
15485
+ function_type?: "preprocessor" | undefined;
15486
+ } | null | undefined;
15293
15487
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
15294
15488
  mcp?: Record<string, {
15295
15489
  id: string;
@@ -16427,6 +16621,7 @@ declare const Prompt$1: z.ZodObject<{
16427
16621
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
16428
16622
  }, z.ZodTypeAny, "passthrough">>]>>;
16429
16623
  position: z.ZodOptional<z.ZodString>;
16624
+ endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
16430
16625
  }, "strip", z.ZodTypeAny, {
16431
16626
  params?: z.objectOutputType<{
16432
16627
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -16547,6 +16742,7 @@ declare const Prompt$1: z.ZodObject<{
16547
16742
  }, z.ZodTypeAny, "passthrough"> | undefined;
16548
16743
  model?: string | undefined;
16549
16744
  position?: string | undefined;
16745
+ endpoint_name?: string | null | undefined;
16550
16746
  }, {
16551
16747
  params?: z.objectInputType<{
16552
16748
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -16667,6 +16863,7 @@ declare const Prompt$1: z.ZodObject<{
16667
16863
  }, z.ZodTypeAny, "passthrough"> | undefined;
16668
16864
  model?: string | undefined;
16669
16865
  position?: string | undefined;
16866
+ endpoint_name?: string | null | undefined;
16670
16867
  }>, z.ZodNull]>>;
16671
16868
  parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
16672
16869
  type: z.ZodLiteral<"llm_classifier">;
@@ -16690,6 +16887,31 @@ declare const Prompt$1: z.ZodObject<{
16690
16887
  allow_no_match?: boolean | undefined;
16691
16888
  allow_skip?: boolean | undefined;
16692
16889
  }>, z.ZodNull]>>;
16890
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
16891
+ type: z.ZodLiteral<"function">;
16892
+ id: z.ZodString;
16893
+ version: z.ZodOptional<z.ZodString>;
16894
+ }, "strip", z.ZodTypeAny, {
16895
+ id: string;
16896
+ type: "function";
16897
+ version?: string | undefined;
16898
+ }, {
16899
+ id: string;
16900
+ type: "function";
16901
+ version?: string | undefined;
16902
+ }>, z.ZodObject<{
16903
+ type: z.ZodLiteral<"global">;
16904
+ name: z.ZodString;
16905
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
16906
+ }, "strip", z.ZodTypeAny, {
16907
+ type: "global";
16908
+ name: string;
16909
+ function_type: "preprocessor";
16910
+ }, {
16911
+ type: "global";
16912
+ name: string;
16913
+ function_type?: "preprocessor" | undefined;
16914
+ }>, z.ZodNull]>>;
16693
16915
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
16694
16916
  type: z.ZodLiteral<"function">;
16695
16917
  id: z.ZodString;
@@ -16881,6 +17103,7 @@ declare const Prompt$1: z.ZodObject<{
16881
17103
  }, z.ZodTypeAny, "passthrough"> | undefined;
16882
17104
  model?: string | undefined;
16883
17105
  position?: string | undefined;
17106
+ endpoint_name?: string | null | undefined;
16884
17107
  } | null | undefined;
16885
17108
  prompt?: {
16886
17109
  type: "chat";
@@ -17012,6 +17235,15 @@ declare const Prompt$1: z.ZodObject<{
17012
17235
  name: string;
17013
17236
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
17014
17237
  })[] | null | undefined;
17238
+ preprocessor?: {
17239
+ id: string;
17240
+ type: "function";
17241
+ version?: string | undefined;
17242
+ } | {
17243
+ type: "global";
17244
+ name: string;
17245
+ function_type: "preprocessor";
17246
+ } | null | undefined;
17015
17247
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
17016
17248
  mcp?: Record<string, {
17017
17249
  id: string;
@@ -17145,6 +17377,7 @@ declare const Prompt$1: z.ZodObject<{
17145
17377
  }, z.ZodTypeAny, "passthrough"> | undefined;
17146
17378
  model?: string | undefined;
17147
17379
  position?: string | undefined;
17380
+ endpoint_name?: string | null | undefined;
17148
17381
  } | null | undefined;
17149
17382
  prompt?: {
17150
17383
  type: "chat";
@@ -17276,6 +17509,15 @@ declare const Prompt$1: z.ZodObject<{
17276
17509
  name: string;
17277
17510
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
17278
17511
  })[] | null | undefined;
17512
+ preprocessor?: {
17513
+ id: string;
17514
+ type: "function";
17515
+ version?: string | undefined;
17516
+ } | {
17517
+ type: "global";
17518
+ name: string;
17519
+ function_type?: "preprocessor" | undefined;
17520
+ } | null | undefined;
17279
17521
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
17280
17522
  mcp?: Record<string, {
17281
17523
  id: string;
@@ -17425,6 +17667,7 @@ declare const Prompt$1: z.ZodObject<{
17425
17667
  }, z.ZodTypeAny, "passthrough"> | undefined;
17426
17668
  model?: string | undefined;
17427
17669
  position?: string | undefined;
17670
+ endpoint_name?: string | null | undefined;
17428
17671
  } | null | undefined;
17429
17672
  prompt?: {
17430
17673
  type: "chat";
@@ -17556,6 +17799,15 @@ declare const Prompt$1: z.ZodObject<{
17556
17799
  name: string;
17557
17800
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
17558
17801
  })[] | null | undefined;
17802
+ preprocessor?: {
17803
+ id: string;
17804
+ type: "function";
17805
+ version?: string | undefined;
17806
+ } | {
17807
+ type: "global";
17808
+ name: string;
17809
+ function_type: "preprocessor";
17810
+ } | null | undefined;
17559
17811
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
17560
17812
  mcp?: Record<string, {
17561
17813
  id: string;
@@ -17703,6 +17955,7 @@ declare const Prompt$1: z.ZodObject<{
17703
17955
  }, z.ZodTypeAny, "passthrough"> | undefined;
17704
17956
  model?: string | undefined;
17705
17957
  position?: string | undefined;
17958
+ endpoint_name?: string | null | undefined;
17706
17959
  } | null | undefined;
17707
17960
  prompt?: {
17708
17961
  type: "chat";
@@ -17834,6 +18087,15 @@ declare const Prompt$1: z.ZodObject<{
17834
18087
  name: string;
17835
18088
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
17836
18089
  })[] | null | undefined;
18090
+ preprocessor?: {
18091
+ id: string;
18092
+ type: "function";
18093
+ version?: string | undefined;
18094
+ } | {
18095
+ type: "global";
18096
+ name: string;
18097
+ function_type?: "preprocessor" | undefined;
18098
+ } | null | undefined;
17837
18099
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
17838
18100
  mcp?: Record<string, {
17839
18101
  id: string;
@@ -18075,57 +18337,59 @@ declare const registerTemplatePlugin: (plugin: TemplateRendererPlugin) => void;
18075
18337
  */
18076
18338
  declare const getTemplateRenderer: (name: string) => TemplateRenderer | undefined;
18077
18339
 
18078
- interface CallerLocation {
18079
- caller_functionname: string;
18080
- caller_filename: string;
18081
- caller_lineno: number;
18082
- }
18083
- interface IsoAsyncLocalStorage<T> {
18340
+ interface GlobalHookAsyncLocalStorage<T> {
18084
18341
  enterWith(store: T): void;
18085
18342
  run<R>(store: T | undefined, callback: () => R): R;
18086
18343
  getStore(): T | undefined;
18087
18344
  }
18088
- type IsoMessageFunction<M = any, N extends string | symbol = string> = (message: M, name: N) => void;
18089
- type IsoTransformFunction<M, S> = (message: M) => S;
18090
- /**
18091
- * Channel interface matching the shared node:diagnostics_channel and dc-browser API.
18092
- */
18093
- interface IsoChannel<M = any, N extends string | symbol = string> {
18345
+ type GlobalHookMessageFunction<M = any, N extends string | symbol = string> = (message: M, name: N) => void;
18346
+ type GlobalHookTransformFunction<M, S> = (message: M) => S;
18347
+ interface GlobalHookChannel<M = any, N extends string | symbol = string> {
18094
18348
  readonly name: N;
18095
18349
  readonly hasSubscribers: boolean;
18096
- subscribe(subscription: IsoMessageFunction<M, N>): void;
18097
- unsubscribe(subscription: IsoMessageFunction<M, N>): boolean;
18098
- bindStore<T>(store: IsoAsyncLocalStorage<T>, transform?: IsoTransformFunction<M, T>): void;
18099
- unbindStore<T>(store: IsoAsyncLocalStorage<T>): boolean;
18350
+ subscribe(subscription: GlobalHookMessageFunction<M, N>): void;
18351
+ unsubscribe(subscription: GlobalHookMessageFunction<M, N>): boolean;
18352
+ bindStore<T>(store: GlobalHookAsyncLocalStorage<T>, transform?: GlobalHookTransformFunction<M, T>): void;
18353
+ unbindStore<T>(store: GlobalHookAsyncLocalStorage<T>): boolean;
18100
18354
  publish(message: M): void;
18101
18355
  runStores<F extends (...args: any[]) => any>(message: M, fn: F, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
18102
18356
  }
18103
- /**
18104
- * TracingChannel interface matching both node:diagnostics_channel and dc-browser.
18105
- * A composite of the five tracing subchannels used to instrument sync/async operations.
18106
- */
18107
- interface IsoTracingChannelCollection<M = any> {
18108
- readonly start?: IsoChannel<M>;
18109
- readonly end?: IsoChannel<M>;
18110
- readonly asyncStart?: IsoChannel<M>;
18111
- readonly asyncEnd?: IsoChannel<M>;
18112
- readonly error?: IsoChannel<M>;
18357
+ interface GlobalTracingChannelCollection<M = any> {
18358
+ readonly start?: GlobalHookChannel<M>;
18359
+ readonly end?: GlobalHookChannel<M>;
18360
+ readonly asyncStart?: GlobalHookChannel<M>;
18361
+ readonly asyncEnd?: GlobalHookChannel<M>;
18362
+ readonly error?: GlobalHookChannel<M>;
18113
18363
  }
18114
- interface IsoTracingChannel<M = any> extends IsoTracingChannelCollection<M> {
18115
- readonly hasSubscribers: boolean;
18116
- subscribe(handlers: IsoChannelHandlers<M>): void;
18117
- unsubscribe(handlers: IsoChannelHandlers<M>): boolean;
18118
- traceSync<F extends (...args: any[]) => any>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
18119
- tracePromise<F extends (...args: any[]) => PromiseLike<any>>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
18120
- traceCallback<F extends (...args: any[]) => any>(fn: F, position?: number, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
18121
- }
18122
- interface IsoChannelHandlers<M = any> {
18364
+ interface GlobalHookHandlers<M = any> {
18123
18365
  start?: (context: M, name: string) => void;
18124
18366
  end?: (context: M, name: string) => void;
18125
18367
  asyncStart?: (context: M, name: string) => void;
18126
18368
  asyncEnd?: (context: M, name: string) => void;
18127
18369
  error?: (context: M, name: string) => void;
18128
18370
  }
18371
+ interface GlobalTracingChannel<M = any> extends GlobalTracingChannelCollection<M> {
18372
+ readonly start: GlobalHookChannel<M>;
18373
+ readonly end: GlobalHookChannel<M>;
18374
+ readonly asyncStart: GlobalHookChannel<M>;
18375
+ readonly asyncEnd: GlobalHookChannel<M>;
18376
+ readonly error: GlobalHookChannel<M>;
18377
+ readonly hasSubscribers: boolean;
18378
+ subscribe(handlers: GlobalHookHandlers<M>): void;
18379
+ unsubscribe(handlers: GlobalHookHandlers<M>): boolean;
18380
+ traceSync<F extends (...args: any[]) => any>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
18381
+ tracePromise<F extends (...args: any[]) => PromiseLike<any>>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
18382
+ traceCallback<F extends (...args: any[]) => any>(fn: F, position?: number, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
18383
+ }
18384
+
18385
+ interface CallerLocation {
18386
+ caller_functionname: string;
18387
+ caller_filename: string;
18388
+ caller_lineno: number;
18389
+ }
18390
+ type IsoAsyncLocalStorage<T> = GlobalHookAsyncLocalStorage<T>;
18391
+ type IsoTracingChannelCollection<M = any> = GlobalTracingChannelCollection<M>;
18392
+ type IsoTracingChannel<M = any> = GlobalTracingChannel<M>;
18129
18393
  interface Common {
18130
18394
  buildType: "browser" | "browser-js" | "node" | "edge-light" | "workerd" | "unknown";
18131
18395
  getRepoInfo: (settings?: GitMetadataSettingsType) => Promise<RepoInfoType | undefined>;
@@ -18137,6 +18401,8 @@ interface Common {
18137
18401
  newTracingChannel: <M = any>(nameOrChannels: string | IsoTracingChannelCollection<M>) => IsoTracingChannel<M>;
18138
18402
  processOn: (event: string, handler: (code: any) => void) => void;
18139
18403
  hash?: (data: string) => string;
18404
+ hmacSha256?: (key: string, data: string) => string;
18405
+ timingSafeEqual?: (left: string, right: string) => boolean;
18140
18406
  basename: (filepath: string) => string;
18141
18407
  writeln: (text: string) => void;
18142
18408
  pathJoin?: (...args: string[]) => string;
@@ -20466,9 +20732,13 @@ type SetCurrentArg = {
20466
20732
  };
20467
20733
  type StartSpanEventArgs = ExperimentLogPartialArgs & Partial<IdField>;
20468
20734
  declare const INITIAL_SPAN_WRITE_AS_MERGE: unique symbol;
20735
+ declare const INTERNAL_SPAN_CONTEXT: unique symbol;
20469
20736
  type InitialSpanWriteAsMergeArg = {
20470
20737
  readonly [INITIAL_SPAN_WRITE_AS_MERGE]?: true;
20471
20738
  };
20739
+ type InternalSpanContextArg = {
20740
+ readonly [INTERNAL_SPAN_CONTEXT]?: Record<string, unknown>;
20741
+ };
20472
20742
  type StartSpanArgs = {
20473
20743
  name?: string;
20474
20744
  type?: SpanType;
@@ -20652,7 +20922,7 @@ declare const BRAINTRUST_CURRENT_SPAN_STORE: unique symbol;
20652
20922
  * - Default (`BraintrustContextManager`): stores a `Span`
20653
20923
  * - OTEL compat (`OtelContextManager`): stores an OTEL `Context` object
20654
20924
  *
20655
- * TracingChannel's `bindStore` transform (via `wrapSpanForStore`) produces the
20925
+ * The global hook's `bindStore` transform (via `wrapSpanForStore`) produces the
20656
20926
  * correct value type for whichever mode is active.
20657
20927
  */
20658
20928
  type CurrentSpanStore = IsoAsyncLocalStorage<unknown>;
@@ -20661,7 +20931,7 @@ declare abstract class ContextManager {
20661
20931
  abstract runInContext<R>(span: Span, callback: () => R): R;
20662
20932
  abstract getCurrentSpan(): Span | undefined;
20663
20933
  /**
20664
- * Returns the value to store in the ALS bound to a TracingChannel's start event.
20934
+ * Returns the value to store in the ALS bound to a global hook's start event.
20665
20935
  * In default mode this is the Span itself; in OTEL mode it is the OTEL Context
20666
20936
  * containing the span so that OTEL's own ALS stores a proper Context object.
20667
20937
  */
@@ -20790,7 +21060,12 @@ declare class BraintrustState {
20790
21060
  private _contextManager;
20791
21061
  private _otelFlushCallback;
20792
21062
  spanOriginEnvironment: SpanOriginEnvironment | undefined;
21063
+ private traceContextSigningSecret;
20793
21064
  constructor(loginParams: LoginOptions);
21065
+ /** @internal */
21066
+ _internalSetTraceContextSigningSecret(secret: string | undefined): void;
21067
+ /** @internal */
21068
+ _internalGetTraceContextSigningSecret(): string | undefined;
20794
21069
  resetLoginInfo(): void;
20795
21070
  resetIdGenState(): void;
20796
21071
  [RESET_CONTEXT_MANAGER_STATE](): void;
@@ -22196,7 +22471,7 @@ declare class SpanImpl implements Span {
22196
22471
  defaultRootType?: SpanType;
22197
22472
  spanId?: string;
22198
22473
  propagatedState?: PropagatedState | undefined;
22199
- } & Omit<StartSpanArgs, "parent"> & InitialSpanWriteAsMergeArg);
22474
+ } & Omit<StartSpanArgs, "parent"> & InitialSpanWriteAsMergeArg & InternalSpanContextArg);
22200
22475
  getParentInfo(): {
22201
22476
  objectType: SpanObjectTypeV3;
22202
22477
  objectId: LazyValue<string>;
@@ -23299,167 +23574,11 @@ interface WrapAISDKOptions {
23299
23574
  declare function wrapAISDK<T>(aiSDK: T, options?: WrapAISDKOptions): T;
23300
23575
  declare const wrapAgentClass: (AgentClass: any, options?: WrapAISDKOptions) => any;
23301
23576
 
23302
- /**
23303
- * Narrow AI SDK v7 telemetry types used by Braintrust.
23304
- *
23305
- * These mirror only the callback fields Braintrust reads. The public AI SDK
23306
- * `Telemetry` type is structural, so users do not need `ai` installed as a
23307
- * direct dependency for this package to type-check.
23308
- */
23309
- interface AISDKV7TelemetryOptions {
23310
- recordInputs?: boolean;
23311
- recordOutputs?: boolean;
23312
- functionId?: string;
23313
- }
23314
- declare const BRAINTRUST_AI_SDK_V7_OPERATION_KEY: unique symbol;
23315
- interface AISDKV7ModelInfo {
23316
- provider?: string;
23317
- modelId?: string;
23318
- }
23319
- interface AISDKV7OperationEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
23320
- callId: string;
23321
- operationId: string;
23322
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23323
- [key: string]: unknown;
23324
- }
23325
- interface AISDKV7LanguageModelCallStartEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
23326
- callId: string;
23327
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23328
- [key: string]: unknown;
23329
- }
23330
- interface AISDKV7LanguageModelCallEndEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
23331
- callId: string;
23332
- content?: unknown;
23333
- finishReason?: unknown;
23334
- responseId?: string;
23335
- usage?: unknown;
23336
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23337
- [key: string]: unknown;
23338
- }
23339
- interface AISDKV7ObjectStepStartEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
23340
- callId: string;
23341
- promptMessages?: unknown;
23342
- stepNumber?: number;
23343
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23344
- [key: string]: unknown;
23345
- }
23346
- interface AISDKV7ObjectStepEndEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
23347
- callId: string;
23348
- finishReason?: unknown;
23349
- objectText?: string;
23350
- providerMetadata?: unknown;
23351
- reasoning?: unknown;
23352
- request?: unknown;
23353
- response?: unknown;
23354
- usage?: unknown;
23355
- warnings?: unknown;
23356
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23357
- [key: string]: unknown;
23358
- }
23359
- interface AISDKV7EmbedStartEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
23360
- callId: string;
23361
- embedCallId: string;
23362
- operationId: string;
23363
- values: unknown[];
23364
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23365
- [key: string]: unknown;
23366
- }
23367
- interface AISDKV7EmbedEndEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
23368
- callId: string;
23369
- embedCallId: string;
23370
- operationId: string;
23371
- embeddings?: unknown[];
23372
- usage?: unknown;
23373
- values?: unknown[];
23374
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23375
- [key: string]: unknown;
23376
- }
23377
- interface AISDKV7RerankStartEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
23378
- callId: string;
23379
- documents?: unknown[];
23380
- query?: string;
23381
- topN?: number;
23382
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23383
- [key: string]: unknown;
23384
- }
23385
- interface AISDKV7RerankEndEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
23386
- callId: string;
23387
- ranking?: Array<{
23388
- index?: number;
23389
- relevanceScore?: number;
23390
- }>;
23391
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23392
- [key: string]: unknown;
23393
- }
23394
- interface AISDKV7ToolCall {
23395
- toolCallId?: string;
23396
- toolName?: string;
23397
- input?: unknown;
23398
- [key: string]: unknown;
23399
- }
23400
- interface AISDKV7ToolExecutionStartEvent extends AISDKV7TelemetryOptions {
23401
- callId?: string;
23402
- toolCall: AISDKV7ToolCall;
23403
- toolContext?: unknown;
23404
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23405
- [key: string]: unknown;
23406
- }
23407
- interface AISDKV7ToolOutput {
23408
- type?: "tool-result" | "tool-error" | string;
23409
- output?: unknown;
23410
- error?: unknown;
23411
- [key: string]: unknown;
23412
- }
23413
- interface AISDKV7ToolExecutionEndEvent extends AISDKV7TelemetryOptions {
23414
- callId?: string;
23415
- durationMs?: number;
23416
- error?: unknown;
23417
- output?: unknown;
23418
- success?: boolean;
23419
- toolCall: AISDKV7ToolCall;
23420
- toolOutput?: AISDKV7ToolOutput;
23421
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23422
- [key: string]: unknown;
23423
- }
23424
- interface AISDKV7ChunkEvent {
23425
- chunk?: {
23426
- type?: string;
23427
- callId?: string;
23428
- [key: string]: unknown;
23429
- };
23430
- }
23431
- interface AISDKV7Telemetry {
23432
- onStart?: (event: AISDKV7OperationEvent) => void | PromiseLike<void>;
23433
- onStepStart?: (event: unknown) => void | PromiseLike<void>;
23434
- onLanguageModelCallStart?: (event: AISDKV7LanguageModelCallStartEvent) => void | PromiseLike<void>;
23435
- onLanguageModelCallEnd?: (event: AISDKV7LanguageModelCallEndEvent) => void | PromiseLike<void>;
23436
- onObjectStepStart?: (event: AISDKV7ObjectStepStartEvent) => void | PromiseLike<void>;
23437
- onObjectStepEnd?: (event: AISDKV7ObjectStepEndEvent) => void | PromiseLike<void>;
23438
- onEmbedStart?: (event: AISDKV7EmbedStartEvent) => void | PromiseLike<void>;
23439
- onEmbedEnd?: (event: AISDKV7EmbedEndEvent) => void | PromiseLike<void>;
23440
- onRerankStart?: (event: AISDKV7RerankStartEvent) => void | PromiseLike<void>;
23441
- onRerankEnd?: (event: AISDKV7RerankEndEvent) => void | PromiseLike<void>;
23442
- onToolExecutionStart?: (event: AISDKV7ToolExecutionStartEvent) => void | PromiseLike<void>;
23443
- onToolExecutionEnd?: (event: AISDKV7ToolExecutionEndEvent) => void | PromiseLike<void>;
23444
- onChunk?: (event: AISDKV7ChunkEvent) => void | PromiseLike<void>;
23445
- onStepEnd?: (event: unknown) => void | PromiseLike<void>;
23446
- onStepFinish?: (event: unknown) => void | PromiseLike<void>;
23447
- onEnd?: (event: AISDKV7OperationEvent) => void | PromiseLike<void>;
23448
- onAbort?: (event: unknown) => void | PromiseLike<void>;
23449
- onError?: (event: unknown) => void | PromiseLike<void>;
23450
- executeTool?: <T>(options: {
23451
- callId: string;
23452
- toolCallId: string;
23453
- execute: () => PromiseLike<T>;
23454
- [BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
23455
- }) => PromiseLike<T>;
23456
- }
23457
-
23458
23577
  /**
23459
23578
  * Creates a Braintrust telemetry integration for AI SDK v7's
23460
23579
  * `registerTelemetry()` API.
23461
23580
  */
23462
- declare function braintrustAISDKTelemetry(): AISDKV7Telemetry;
23581
+ declare function braintrustAISDKTelemetry(): any;
23463
23582
 
23464
23583
  /**
23465
23584
  * Wrap an ai-sdk model (created with `.chat()`, `.completion()`, etc.) to add tracing. If Braintrust is
@@ -24092,12 +24211,29 @@ declare function wrapCursorSDK<T>(sdk: T): T;
24092
24211
  */
24093
24212
  declare function wrapPiCodingAgentSDK<T>(sdk: T): T;
24094
24213
 
24214
+ /**
24215
+ * Adds Braintrust tracing to a Cloudflare Agents base `Agent` class.
24216
+ *
24217
+ * The returned value is the same class, patched in place so existing Durable
24218
+ * Object exports and inheritance continue to work unchanged.
24219
+ */
24220
+ declare function wrapCloudflareAgent<T>(Agent: T): T;
24221
+
24095
24222
  /**
24096
24223
  * Wraps the Strands Agent SDK with Braintrust tracing. The wrapper emits
24097
24224
  * diagnostics-channel events; the Strands plugin owns span lifecycle.
24098
24225
  */
24099
24226
  declare function wrapStrandsAgentSDK<T>(sdk: T): T;
24100
24227
 
24228
+ /**
24229
+ * Wraps the @cloudflare/ai-chat module with Braintrust tracing.
24230
+ *
24231
+ * Pass the module namespace (`import * as aiChat from "@cloudflare/ai-chat"`)
24232
+ * and subclass the wrapped AIChatAgent export. The wrapper emits the same
24233
+ * diagnostic-channel events as automatic instrumentation.
24234
+ */
24235
+ declare function wrapCloudflareAIChat<T>(module: T): T;
24236
+
24101
24237
  /**
24102
24238
  * Wrap a Google GenAI module (imported with `import * as googleGenAI from '@google/genai'`) to add tracing.
24103
24239
  * If Braintrust is not configured, nothing will be traced.
@@ -24299,6 +24435,32 @@ declare function wrapHuggingFace(huggingFace: HuggingFaceModule): HuggingFaceMod
24299
24435
  declare function wrapHuggingFace(huggingFace: HuggingFaceClient): HuggingFaceClient;
24300
24436
  declare function wrapHuggingFace<T>(huggingFace: T): T;
24301
24437
 
24438
+ interface HuggingFaceTransformersModel {
24439
+ config?: Record<string, unknown>;
24440
+ name?: string;
24441
+ }
24442
+ interface HuggingFaceTransformersPipeline {
24443
+ (...args: unknown[]): Promise<unknown>;
24444
+ task?: string;
24445
+ model?: HuggingFaceTransformersModel;
24446
+ tokenizer?: unknown;
24447
+ }
24448
+ interface HuggingFaceTransformersPipelineConstructor {
24449
+ new (...args: unknown[]): HuggingFaceTransformersPipeline;
24450
+ }
24451
+ interface HuggingFaceTransformersModule {
24452
+ pipeline?: (task: string, model?: string | null, options?: Record<string, unknown>) => Promise<HuggingFaceTransformersPipeline>;
24453
+ TextGenerationPipeline?: HuggingFaceTransformersPipelineConstructor;
24454
+ Text2TextGenerationPipeline?: HuggingFaceTransformersPipelineConstructor;
24455
+ SummarizationPipeline?: HuggingFaceTransformersPipelineConstructor;
24456
+ FeatureExtractionPipeline?: HuggingFaceTransformersPipelineConstructor;
24457
+ QuestionAnsweringPipeline?: HuggingFaceTransformersPipelineConstructor;
24458
+ }
24459
+
24460
+ declare function wrapHuggingFaceTransformers(transformers: HuggingFaceTransformersModule): HuggingFaceTransformersModule;
24461
+ declare function wrapHuggingFaceTransformers(transformers: HuggingFaceTransformersPipeline): HuggingFaceTransformersPipeline;
24462
+ declare function wrapHuggingFaceTransformers<T>(transformers: T): T;
24463
+
24302
24464
  /**
24303
24465
  * Wrap an @openrouter/agent OpenRouter client so callModel() emits
24304
24466
  * diagnostics-channel events consumed by the OpenRouter Agent plugin.
@@ -29455,6 +29617,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
29455
29617
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
29456
29618
  }, z.ZodTypeAny, "passthrough">>]>>;
29457
29619
  position: z.ZodOptional<z.ZodString>;
29620
+ endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
29458
29621
  }, "strip", z.ZodTypeAny, {
29459
29622
  params?: z.objectOutputType<{
29460
29623
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -29575,6 +29738,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
29575
29738
  }, z.ZodTypeAny, "passthrough"> | undefined;
29576
29739
  model?: string | undefined;
29577
29740
  position?: string | undefined;
29741
+ endpoint_name?: string | null | undefined;
29578
29742
  }, {
29579
29743
  params?: z.objectInputType<{
29580
29744
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -29695,6 +29859,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
29695
29859
  }, z.ZodTypeAny, "passthrough"> | undefined;
29696
29860
  model?: string | undefined;
29697
29861
  position?: string | undefined;
29862
+ endpoint_name?: string | null | undefined;
29698
29863
  }>, z.ZodNull]>>;
29699
29864
  parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
29700
29865
  type: z.ZodLiteral<"llm_classifier">;
@@ -29718,6 +29883,31 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
29718
29883
  allow_no_match?: boolean | undefined;
29719
29884
  allow_skip?: boolean | undefined;
29720
29885
  }>, z.ZodNull]>>;
29886
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
29887
+ type: z.ZodLiteral<"function">;
29888
+ id: z.ZodString;
29889
+ version: z.ZodOptional<z.ZodString>;
29890
+ }, "strip", z.ZodTypeAny, {
29891
+ id: string;
29892
+ type: "function";
29893
+ version?: string | undefined;
29894
+ }, {
29895
+ id: string;
29896
+ type: "function";
29897
+ version?: string | undefined;
29898
+ }>, z.ZodObject<{
29899
+ type: z.ZodLiteral<"global">;
29900
+ name: z.ZodString;
29901
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
29902
+ }, "strip", z.ZodTypeAny, {
29903
+ type: "global";
29904
+ name: string;
29905
+ function_type: "preprocessor";
29906
+ }, {
29907
+ type: "global";
29908
+ name: string;
29909
+ function_type?: "preprocessor" | undefined;
29910
+ }>, z.ZodNull]>>;
29721
29911
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
29722
29912
  type: z.ZodLiteral<"function">;
29723
29913
  id: z.ZodString;
@@ -29909,6 +30099,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
29909
30099
  }, z.ZodTypeAny, "passthrough"> | undefined;
29910
30100
  model?: string | undefined;
29911
30101
  position?: string | undefined;
30102
+ endpoint_name?: string | null | undefined;
29912
30103
  } | null | undefined;
29913
30104
  prompt?: {
29914
30105
  type: "chat";
@@ -30040,6 +30231,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30040
30231
  name: string;
30041
30232
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
30042
30233
  })[] | null | undefined;
30234
+ preprocessor?: {
30235
+ id: string;
30236
+ type: "function";
30237
+ version?: string | undefined;
30238
+ } | {
30239
+ type: "global";
30240
+ name: string;
30241
+ function_type: "preprocessor";
30242
+ } | null | undefined;
30043
30243
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
30044
30244
  mcp?: Record<string, {
30045
30245
  id: string;
@@ -30173,6 +30373,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30173
30373
  }, z.ZodTypeAny, "passthrough"> | undefined;
30174
30374
  model?: string | undefined;
30175
30375
  position?: string | undefined;
30376
+ endpoint_name?: string | null | undefined;
30176
30377
  } | null | undefined;
30177
30378
  prompt?: {
30178
30379
  type: "chat";
@@ -30304,6 +30505,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30304
30505
  name: string;
30305
30506
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
30306
30507
  })[] | null | undefined;
30508
+ preprocessor?: {
30509
+ id: string;
30510
+ type: "function";
30511
+ version?: string | undefined;
30512
+ } | {
30513
+ type: "global";
30514
+ name: string;
30515
+ function_type?: "preprocessor" | undefined;
30516
+ } | null | undefined;
30307
30517
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
30308
30518
  mcp?: Record<string, {
30309
30519
  id: string;
@@ -30442,6 +30652,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30442
30652
  }, z.ZodTypeAny, "passthrough"> | undefined;
30443
30653
  model?: string | undefined;
30444
30654
  position?: string | undefined;
30655
+ endpoint_name?: string | null | undefined;
30445
30656
  } | null | undefined;
30446
30657
  prompt?: {
30447
30658
  type: "chat";
@@ -30573,6 +30784,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30573
30784
  name: string;
30574
30785
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
30575
30786
  })[] | null | undefined;
30787
+ preprocessor?: {
30788
+ id: string;
30789
+ type: "function";
30790
+ version?: string | undefined;
30791
+ } | {
30792
+ type: "global";
30793
+ name: string;
30794
+ function_type: "preprocessor";
30795
+ } | null | undefined;
30576
30796
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
30577
30797
  mcp?: Record<string, {
30578
30798
  id: string;
@@ -30710,6 +30930,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30710
30930
  }, z.ZodTypeAny, "passthrough"> | undefined;
30711
30931
  model?: string | undefined;
30712
30932
  position?: string | undefined;
30933
+ endpoint_name?: string | null | undefined;
30713
30934
  } | null | undefined;
30714
30935
  prompt?: {
30715
30936
  type: "chat";
@@ -30841,6 +31062,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30841
31062
  name: string;
30842
31063
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
30843
31064
  })[] | null | undefined;
31065
+ preprocessor?: {
31066
+ id: string;
31067
+ type: "function";
31068
+ version?: string | undefined;
31069
+ } | {
31070
+ type: "global";
31071
+ name: string;
31072
+ function_type?: "preprocessor" | undefined;
31073
+ } | null | undefined;
30844
31074
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
30845
31075
  mcp?: Record<string, {
30846
31076
  id: string;
@@ -32050,6 +32280,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32050
32280
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
32051
32281
  }, z.ZodTypeAny, "passthrough">>]>>;
32052
32282
  position: z.ZodOptional<z.ZodString>;
32283
+ endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
32053
32284
  }, "strip", z.ZodTypeAny, {
32054
32285
  params?: z.objectOutputType<{
32055
32286
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -32170,6 +32401,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32170
32401
  }, z.ZodTypeAny, "passthrough"> | undefined;
32171
32402
  model?: string | undefined;
32172
32403
  position?: string | undefined;
32404
+ endpoint_name?: string | null | undefined;
32173
32405
  }, {
32174
32406
  params?: z.objectInputType<{
32175
32407
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -32290,6 +32522,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32290
32522
  }, z.ZodTypeAny, "passthrough"> | undefined;
32291
32523
  model?: string | undefined;
32292
32524
  position?: string | undefined;
32525
+ endpoint_name?: string | null | undefined;
32293
32526
  }>, z.ZodNull]>>;
32294
32527
  parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
32295
32528
  type: z.ZodLiteral<"llm_classifier">;
@@ -32313,6 +32546,31 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32313
32546
  allow_no_match?: boolean | undefined;
32314
32547
  allow_skip?: boolean | undefined;
32315
32548
  }>, z.ZodNull]>>;
32549
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
32550
+ type: z.ZodLiteral<"function">;
32551
+ id: z.ZodString;
32552
+ version: z.ZodOptional<z.ZodString>;
32553
+ }, "strip", z.ZodTypeAny, {
32554
+ id: string;
32555
+ type: "function";
32556
+ version?: string | undefined;
32557
+ }, {
32558
+ id: string;
32559
+ type: "function";
32560
+ version?: string | undefined;
32561
+ }>, z.ZodObject<{
32562
+ type: z.ZodLiteral<"global">;
32563
+ name: z.ZodString;
32564
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
32565
+ }, "strip", z.ZodTypeAny, {
32566
+ type: "global";
32567
+ name: string;
32568
+ function_type: "preprocessor";
32569
+ }, {
32570
+ type: "global";
32571
+ name: string;
32572
+ function_type?: "preprocessor" | undefined;
32573
+ }>, z.ZodNull]>>;
32316
32574
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
32317
32575
  type: z.ZodLiteral<"function">;
32318
32576
  id: z.ZodString;
@@ -32504,6 +32762,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32504
32762
  }, z.ZodTypeAny, "passthrough"> | undefined;
32505
32763
  model?: string | undefined;
32506
32764
  position?: string | undefined;
32765
+ endpoint_name?: string | null | undefined;
32507
32766
  } | null | undefined;
32508
32767
  prompt?: {
32509
32768
  type: "chat";
@@ -32635,6 +32894,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32635
32894
  name: string;
32636
32895
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
32637
32896
  })[] | null | undefined;
32897
+ preprocessor?: {
32898
+ id: string;
32899
+ type: "function";
32900
+ version?: string | undefined;
32901
+ } | {
32902
+ type: "global";
32903
+ name: string;
32904
+ function_type: "preprocessor";
32905
+ } | null | undefined;
32638
32906
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
32639
32907
  mcp?: Record<string, {
32640
32908
  id: string;
@@ -32768,6 +33036,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32768
33036
  }, z.ZodTypeAny, "passthrough"> | undefined;
32769
33037
  model?: string | undefined;
32770
33038
  position?: string | undefined;
33039
+ endpoint_name?: string | null | undefined;
32771
33040
  } | null | undefined;
32772
33041
  prompt?: {
32773
33042
  type: "chat";
@@ -32899,6 +33168,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32899
33168
  name: string;
32900
33169
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
32901
33170
  })[] | null | undefined;
33171
+ preprocessor?: {
33172
+ id: string;
33173
+ type: "function";
33174
+ version?: string | undefined;
33175
+ } | {
33176
+ type: "global";
33177
+ name: string;
33178
+ function_type?: "preprocessor" | undefined;
33179
+ } | null | undefined;
32902
33180
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
32903
33181
  mcp?: Record<string, {
32904
33182
  id: string;
@@ -33037,6 +33315,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33037
33315
  }, z.ZodTypeAny, "passthrough"> | undefined;
33038
33316
  model?: string | undefined;
33039
33317
  position?: string | undefined;
33318
+ endpoint_name?: string | null | undefined;
33040
33319
  } | null | undefined;
33041
33320
  prompt?: {
33042
33321
  type: "chat";
@@ -33168,6 +33447,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33168
33447
  name: string;
33169
33448
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
33170
33449
  })[] | null | undefined;
33450
+ preprocessor?: {
33451
+ id: string;
33452
+ type: "function";
33453
+ version?: string | undefined;
33454
+ } | {
33455
+ type: "global";
33456
+ name: string;
33457
+ function_type: "preprocessor";
33458
+ } | null | undefined;
33171
33459
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
33172
33460
  mcp?: Record<string, {
33173
33461
  id: string;
@@ -33305,6 +33593,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33305
33593
  }, z.ZodTypeAny, "passthrough"> | undefined;
33306
33594
  model?: string | undefined;
33307
33595
  position?: string | undefined;
33596
+ endpoint_name?: string | null | undefined;
33308
33597
  } | null | undefined;
33309
33598
  prompt?: {
33310
33599
  type: "chat";
@@ -33436,6 +33725,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33436
33725
  name: string;
33437
33726
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
33438
33727
  })[] | null | undefined;
33728
+ preprocessor?: {
33729
+ id: string;
33730
+ type: "function";
33731
+ version?: string | undefined;
33732
+ } | {
33733
+ type: "global";
33734
+ name: string;
33735
+ function_type?: "preprocessor" | undefined;
33736
+ } | null | undefined;
33439
33737
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
33440
33738
  mcp?: Record<string, {
33441
33739
  id: string;
@@ -33604,6 +33902,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33604
33902
  }, z.ZodTypeAny, "passthrough"> | undefined;
33605
33903
  model?: string | undefined;
33606
33904
  position?: string | undefined;
33905
+ endpoint_name?: string | null | undefined;
33607
33906
  } | null | undefined;
33608
33907
  prompt?: {
33609
33908
  type: "chat";
@@ -33735,6 +34034,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33735
34034
  name: string;
33736
34035
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
33737
34036
  })[] | null | undefined;
34037
+ preprocessor?: {
34038
+ id: string;
34039
+ type: "function";
34040
+ version?: string | undefined;
34041
+ } | {
34042
+ type: "global";
34043
+ name: string;
34044
+ function_type: "preprocessor";
34045
+ } | null | undefined;
33738
34046
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
33739
34047
  mcp?: Record<string, {
33740
34048
  id: string;
@@ -33885,6 +34193,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33885
34193
  }, z.ZodTypeAny, "passthrough"> | undefined;
33886
34194
  model?: string | undefined;
33887
34195
  position?: string | undefined;
34196
+ endpoint_name?: string | null | undefined;
33888
34197
  } | null | undefined;
33889
34198
  prompt?: {
33890
34199
  type: "chat";
@@ -34016,6 +34325,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
34016
34325
  name: string;
34017
34326
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
34018
34327
  })[] | null | undefined;
34328
+ preprocessor?: {
34329
+ id: string;
34330
+ type: "function";
34331
+ version?: string | undefined;
34332
+ } | {
34333
+ type: "global";
34334
+ name: string;
34335
+ function_type?: "preprocessor" | undefined;
34336
+ } | null | undefined;
34019
34337
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
34020
34338
  mcp?: Record<string, {
34021
34339
  id: string;
@@ -35117,6 +35435,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
35117
35435
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
35118
35436
  }, z.ZodTypeAny, "passthrough">>]>>;
35119
35437
  position: z.ZodOptional<z.ZodString>;
35438
+ endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
35120
35439
  }, "strip", z.ZodTypeAny, {
35121
35440
  params?: z.objectOutputType<{
35122
35441
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -35237,6 +35556,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
35237
35556
  }, z.ZodTypeAny, "passthrough"> | undefined;
35238
35557
  model?: string | undefined;
35239
35558
  position?: string | undefined;
35559
+ endpoint_name?: string | null | undefined;
35240
35560
  }, {
35241
35561
  params?: z.objectInputType<{
35242
35562
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -35357,6 +35677,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
35357
35677
  }, z.ZodTypeAny, "passthrough"> | undefined;
35358
35678
  model?: string | undefined;
35359
35679
  position?: string | undefined;
35680
+ endpoint_name?: string | null | undefined;
35360
35681
  }>, z.ZodNull]>>;
35361
35682
  parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
35362
35683
  type: z.ZodLiteral<"llm_classifier">;
@@ -35380,6 +35701,31 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
35380
35701
  allow_no_match?: boolean | undefined;
35381
35702
  allow_skip?: boolean | undefined;
35382
35703
  }>, z.ZodNull]>>;
35704
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
35705
+ type: z.ZodLiteral<"function">;
35706
+ id: z.ZodString;
35707
+ version: z.ZodOptional<z.ZodString>;
35708
+ }, "strip", z.ZodTypeAny, {
35709
+ id: string;
35710
+ type: "function";
35711
+ version?: string | undefined;
35712
+ }, {
35713
+ id: string;
35714
+ type: "function";
35715
+ version?: string | undefined;
35716
+ }>, z.ZodObject<{
35717
+ type: z.ZodLiteral<"global">;
35718
+ name: z.ZodString;
35719
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
35720
+ }, "strip", z.ZodTypeAny, {
35721
+ type: "global";
35722
+ name: string;
35723
+ function_type: "preprocessor";
35724
+ }, {
35725
+ type: "global";
35726
+ name: string;
35727
+ function_type?: "preprocessor" | undefined;
35728
+ }>, z.ZodNull]>>;
35383
35729
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
35384
35730
  type: z.ZodLiteral<"function">;
35385
35731
  id: z.ZodString;
@@ -35571,6 +35917,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
35571
35917
  }, z.ZodTypeAny, "passthrough"> | undefined;
35572
35918
  model?: string | undefined;
35573
35919
  position?: string | undefined;
35920
+ endpoint_name?: string | null | undefined;
35574
35921
  } | null | undefined;
35575
35922
  prompt?: {
35576
35923
  type: "chat";
@@ -35702,6 +36049,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
35702
36049
  name: string;
35703
36050
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
35704
36051
  })[] | null | undefined;
36052
+ preprocessor?: {
36053
+ id: string;
36054
+ type: "function";
36055
+ version?: string | undefined;
36056
+ } | {
36057
+ type: "global";
36058
+ name: string;
36059
+ function_type: "preprocessor";
36060
+ } | null | undefined;
35705
36061
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
35706
36062
  mcp?: Record<string, {
35707
36063
  id: string;
@@ -35835,6 +36191,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
35835
36191
  }, z.ZodTypeAny, "passthrough"> | undefined;
35836
36192
  model?: string | undefined;
35837
36193
  position?: string | undefined;
36194
+ endpoint_name?: string | null | undefined;
35838
36195
  } | null | undefined;
35839
36196
  prompt?: {
35840
36197
  type: "chat";
@@ -35966,6 +36323,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
35966
36323
  name: string;
35967
36324
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
35968
36325
  })[] | null | undefined;
36326
+ preprocessor?: {
36327
+ id: string;
36328
+ type: "function";
36329
+ version?: string | undefined;
36330
+ } | {
36331
+ type: "global";
36332
+ name: string;
36333
+ function_type?: "preprocessor" | undefined;
36334
+ } | null | undefined;
35969
36335
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
35970
36336
  mcp?: Record<string, {
35971
36337
  id: string;
@@ -36104,6 +36470,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36104
36470
  }, z.ZodTypeAny, "passthrough"> | undefined;
36105
36471
  model?: string | undefined;
36106
36472
  position?: string | undefined;
36473
+ endpoint_name?: string | null | undefined;
36107
36474
  } | null | undefined;
36108
36475
  prompt?: {
36109
36476
  type: "chat";
@@ -36235,6 +36602,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36235
36602
  name: string;
36236
36603
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
36237
36604
  })[] | null | undefined;
36605
+ preprocessor?: {
36606
+ id: string;
36607
+ type: "function";
36608
+ version?: string | undefined;
36609
+ } | {
36610
+ type: "global";
36611
+ name: string;
36612
+ function_type: "preprocessor";
36613
+ } | null | undefined;
36238
36614
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
36239
36615
  mcp?: Record<string, {
36240
36616
  id: string;
@@ -36372,6 +36748,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36372
36748
  }, z.ZodTypeAny, "passthrough"> | undefined;
36373
36749
  model?: string | undefined;
36374
36750
  position?: string | undefined;
36751
+ endpoint_name?: string | null | undefined;
36375
36752
  } | null | undefined;
36376
36753
  prompt?: {
36377
36754
  type: "chat";
@@ -36503,6 +36880,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36503
36880
  name: string;
36504
36881
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
36505
36882
  })[] | null | undefined;
36883
+ preprocessor?: {
36884
+ id: string;
36885
+ type: "function";
36886
+ version?: string | undefined;
36887
+ } | {
36888
+ type: "global";
36889
+ name: string;
36890
+ function_type?: "preprocessor" | undefined;
36891
+ } | null | undefined;
36506
36892
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
36507
36893
  mcp?: Record<string, {
36508
36894
  id: string;
@@ -36683,6 +37069,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36683
37069
  }, z.ZodTypeAny, "passthrough"> | undefined;
36684
37070
  model?: string | undefined;
36685
37071
  position?: string | undefined;
37072
+ endpoint_name?: string | null | undefined;
36686
37073
  } | null | undefined;
36687
37074
  prompt?: {
36688
37075
  type: "chat";
@@ -36814,6 +37201,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36814
37201
  name: string;
36815
37202
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
36816
37203
  })[] | null | undefined;
37204
+ preprocessor?: {
37205
+ id: string;
37206
+ type: "function";
37207
+ version?: string | undefined;
37208
+ } | {
37209
+ type: "global";
37210
+ name: string;
37211
+ function_type: "preprocessor";
37212
+ } | null | undefined;
36817
37213
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
36818
37214
  mcp?: Record<string, {
36819
37215
  id: string;
@@ -36977,6 +37373,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36977
37373
  }, z.ZodTypeAny, "passthrough"> | undefined;
36978
37374
  model?: string | undefined;
36979
37375
  position?: string | undefined;
37376
+ endpoint_name?: string | null | undefined;
36980
37377
  } | null | undefined;
36981
37378
  prompt?: {
36982
37379
  type: "chat";
@@ -37108,6 +37505,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
37108
37505
  name: string;
37109
37506
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
37110
37507
  })[] | null | undefined;
37508
+ preprocessor?: {
37509
+ id: string;
37510
+ type: "function";
37511
+ version?: string | undefined;
37512
+ } | {
37513
+ type: "global";
37514
+ name: string;
37515
+ function_type: "preprocessor";
37516
+ } | null | undefined;
37111
37517
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
37112
37518
  mcp?: Record<string, {
37113
37519
  id: string;
@@ -37264,6 +37670,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
37264
37670
  }, z.ZodTypeAny, "passthrough"> | undefined;
37265
37671
  model?: string | undefined;
37266
37672
  position?: string | undefined;
37673
+ endpoint_name?: string | null | undefined;
37267
37674
  } | null | undefined;
37268
37675
  prompt?: {
37269
37676
  type: "chat";
@@ -37395,6 +37802,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
37395
37802
  name: string;
37396
37803
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
37397
37804
  })[] | null | undefined;
37805
+ preprocessor?: {
37806
+ id: string;
37807
+ type: "function";
37808
+ version?: string | undefined;
37809
+ } | {
37810
+ type: "global";
37811
+ name: string;
37812
+ function_type?: "preprocessor" | undefined;
37813
+ } | null | undefined;
37398
37814
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
37399
37815
  mcp?: Record<string, {
37400
37816
  id: string;
@@ -37558,6 +37974,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
37558
37974
  }, z.ZodTypeAny, "passthrough"> | undefined;
37559
37975
  model?: string | undefined;
37560
37976
  position?: string | undefined;
37977
+ endpoint_name?: string | null | undefined;
37561
37978
  } | null | undefined;
37562
37979
  prompt?: {
37563
37980
  type: "chat";
@@ -37689,6 +38106,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
37689
38106
  name: string;
37690
38107
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
37691
38108
  })[] | null | undefined;
38109
+ preprocessor?: {
38110
+ id: string;
38111
+ type: "function";
38112
+ version?: string | undefined;
38113
+ } | {
38114
+ type: "global";
38115
+ name: string;
38116
+ function_type?: "preprocessor" | undefined;
38117
+ } | null | undefined;
37692
38118
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
37693
38119
  mcp?: Record<string, {
37694
38120
  id: string;
@@ -38869,6 +39295,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
38869
39295
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
38870
39296
  }, z.ZodTypeAny, "passthrough">>]>>;
38871
39297
  position: z.ZodOptional<z.ZodString>;
39298
+ endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
38872
39299
  }, "strip", z.ZodTypeAny, {
38873
39300
  params?: z.objectOutputType<{
38874
39301
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -38989,6 +39416,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
38989
39416
  }, z.ZodTypeAny, "passthrough"> | undefined;
38990
39417
  model?: string | undefined;
38991
39418
  position?: string | undefined;
39419
+ endpoint_name?: string | null | undefined;
38992
39420
  }, {
38993
39421
  params?: z.objectInputType<{
38994
39422
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -39109,6 +39537,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39109
39537
  }, z.ZodTypeAny, "passthrough"> | undefined;
39110
39538
  model?: string | undefined;
39111
39539
  position?: string | undefined;
39540
+ endpoint_name?: string | null | undefined;
39112
39541
  }>, z.ZodNull]>>;
39113
39542
  parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
39114
39543
  type: z.ZodLiteral<"llm_classifier">;
@@ -39132,6 +39561,31 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39132
39561
  allow_no_match?: boolean | undefined;
39133
39562
  allow_skip?: boolean | undefined;
39134
39563
  }>, z.ZodNull]>>;
39564
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
39565
+ type: z.ZodLiteral<"function">;
39566
+ id: z.ZodString;
39567
+ version: z.ZodOptional<z.ZodString>;
39568
+ }, "strip", z.ZodTypeAny, {
39569
+ id: string;
39570
+ type: "function";
39571
+ version?: string | undefined;
39572
+ }, {
39573
+ id: string;
39574
+ type: "function";
39575
+ version?: string | undefined;
39576
+ }>, z.ZodObject<{
39577
+ type: z.ZodLiteral<"global">;
39578
+ name: z.ZodString;
39579
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
39580
+ }, "strip", z.ZodTypeAny, {
39581
+ type: "global";
39582
+ name: string;
39583
+ function_type: "preprocessor";
39584
+ }, {
39585
+ type: "global";
39586
+ name: string;
39587
+ function_type?: "preprocessor" | undefined;
39588
+ }>, z.ZodNull]>>;
39135
39589
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
39136
39590
  type: z.ZodLiteral<"function">;
39137
39591
  id: z.ZodString;
@@ -39323,6 +39777,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39323
39777
  }, z.ZodTypeAny, "passthrough"> | undefined;
39324
39778
  model?: string | undefined;
39325
39779
  position?: string | undefined;
39780
+ endpoint_name?: string | null | undefined;
39326
39781
  } | null | undefined;
39327
39782
  prompt?: {
39328
39783
  type: "chat";
@@ -39454,6 +39909,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39454
39909
  name: string;
39455
39910
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
39456
39911
  })[] | null | undefined;
39912
+ preprocessor?: {
39913
+ id: string;
39914
+ type: "function";
39915
+ version?: string | undefined;
39916
+ } | {
39917
+ type: "global";
39918
+ name: string;
39919
+ function_type: "preprocessor";
39920
+ } | null | undefined;
39457
39921
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
39458
39922
  mcp?: Record<string, {
39459
39923
  id: string;
@@ -39587,6 +40051,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39587
40051
  }, z.ZodTypeAny, "passthrough"> | undefined;
39588
40052
  model?: string | undefined;
39589
40053
  position?: string | undefined;
40054
+ endpoint_name?: string | null | undefined;
39590
40055
  } | null | undefined;
39591
40056
  prompt?: {
39592
40057
  type: "chat";
@@ -39718,6 +40183,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39718
40183
  name: string;
39719
40184
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
39720
40185
  })[] | null | undefined;
40186
+ preprocessor?: {
40187
+ id: string;
40188
+ type: "function";
40189
+ version?: string | undefined;
40190
+ } | {
40191
+ type: "global";
40192
+ name: string;
40193
+ function_type?: "preprocessor" | undefined;
40194
+ } | null | undefined;
39721
40195
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
39722
40196
  mcp?: Record<string, {
39723
40197
  id: string;
@@ -39856,6 +40330,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39856
40330
  }, z.ZodTypeAny, "passthrough"> | undefined;
39857
40331
  model?: string | undefined;
39858
40332
  position?: string | undefined;
40333
+ endpoint_name?: string | null | undefined;
39859
40334
  } | null | undefined;
39860
40335
  prompt?: {
39861
40336
  type: "chat";
@@ -39987,6 +40462,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39987
40462
  name: string;
39988
40463
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
39989
40464
  })[] | null | undefined;
40465
+ preprocessor?: {
40466
+ id: string;
40467
+ type: "function";
40468
+ version?: string | undefined;
40469
+ } | {
40470
+ type: "global";
40471
+ name: string;
40472
+ function_type: "preprocessor";
40473
+ } | null | undefined;
39990
40474
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
39991
40475
  mcp?: Record<string, {
39992
40476
  id: string;
@@ -40124,6 +40608,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40124
40608
  }, z.ZodTypeAny, "passthrough"> | undefined;
40125
40609
  model?: string | undefined;
40126
40610
  position?: string | undefined;
40611
+ endpoint_name?: string | null | undefined;
40127
40612
  } | null | undefined;
40128
40613
  prompt?: {
40129
40614
  type: "chat";
@@ -40255,6 +40740,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40255
40740
  name: string;
40256
40741
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
40257
40742
  })[] | null | undefined;
40743
+ preprocessor?: {
40744
+ id: string;
40745
+ type: "function";
40746
+ version?: string | undefined;
40747
+ } | {
40748
+ type: "global";
40749
+ name: string;
40750
+ function_type?: "preprocessor" | undefined;
40751
+ } | null | undefined;
40258
40752
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
40259
40753
  mcp?: Record<string, {
40260
40754
  id: string;
@@ -40423,6 +40917,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40423
40917
  }, z.ZodTypeAny, "passthrough"> | undefined;
40424
40918
  model?: string | undefined;
40425
40919
  position?: string | undefined;
40920
+ endpoint_name?: string | null | undefined;
40426
40921
  } | null | undefined;
40427
40922
  prompt?: {
40428
40923
  type: "chat";
@@ -40554,6 +41049,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40554
41049
  name: string;
40555
41050
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
40556
41051
  })[] | null | undefined;
41052
+ preprocessor?: {
41053
+ id: string;
41054
+ type: "function";
41055
+ version?: string | undefined;
41056
+ } | {
41057
+ type: "global";
41058
+ name: string;
41059
+ function_type: "preprocessor";
41060
+ } | null | undefined;
40557
41061
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
40558
41062
  mcp?: Record<string, {
40559
41063
  id: string;
@@ -40704,6 +41208,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40704
41208
  }, z.ZodTypeAny, "passthrough"> | undefined;
40705
41209
  model?: string | undefined;
40706
41210
  position?: string | undefined;
41211
+ endpoint_name?: string | null | undefined;
40707
41212
  } | null | undefined;
40708
41213
  prompt?: {
40709
41214
  type: "chat";
@@ -40835,6 +41340,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40835
41340
  name: string;
40836
41341
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
40837
41342
  })[] | null | undefined;
41343
+ preprocessor?: {
41344
+ id: string;
41345
+ type: "function";
41346
+ version?: string | undefined;
41347
+ } | {
41348
+ type: "global";
41349
+ name: string;
41350
+ function_type?: "preprocessor" | undefined;
41351
+ } | null | undefined;
40838
41352
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
40839
41353
  mcp?: Record<string, {
40840
41354
  id: string;
@@ -41936,6 +42450,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
41936
42450
  reasoning_budget: z.ZodOptional<z.ZodNumber>;
41937
42451
  }, z.ZodTypeAny, "passthrough">>]>>;
41938
42452
  position: z.ZodOptional<z.ZodString>;
42453
+ endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
41939
42454
  }, "strip", z.ZodTypeAny, {
41940
42455
  params?: z.objectOutputType<{
41941
42456
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -42056,6 +42571,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
42056
42571
  }, z.ZodTypeAny, "passthrough"> | undefined;
42057
42572
  model?: string | undefined;
42058
42573
  position?: string | undefined;
42574
+ endpoint_name?: string | null | undefined;
42059
42575
  }, {
42060
42576
  params?: z.objectInputType<{
42061
42577
  use_cache: z.ZodOptional<z.ZodBoolean>;
@@ -42176,6 +42692,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
42176
42692
  }, z.ZodTypeAny, "passthrough"> | undefined;
42177
42693
  model?: string | undefined;
42178
42694
  position?: string | undefined;
42695
+ endpoint_name?: string | null | undefined;
42179
42696
  }>, z.ZodNull]>>;
42180
42697
  parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
42181
42698
  type: z.ZodLiteral<"llm_classifier">;
@@ -42199,6 +42716,31 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
42199
42716
  allow_no_match?: boolean | undefined;
42200
42717
  allow_skip?: boolean | undefined;
42201
42718
  }>, z.ZodNull]>>;
42719
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
42720
+ type: z.ZodLiteral<"function">;
42721
+ id: z.ZodString;
42722
+ version: z.ZodOptional<z.ZodString>;
42723
+ }, "strip", z.ZodTypeAny, {
42724
+ id: string;
42725
+ type: "function";
42726
+ version?: string | undefined;
42727
+ }, {
42728
+ id: string;
42729
+ type: "function";
42730
+ version?: string | undefined;
42731
+ }>, z.ZodObject<{
42732
+ type: z.ZodLiteral<"global">;
42733
+ name: z.ZodString;
42734
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
42735
+ }, "strip", z.ZodTypeAny, {
42736
+ type: "global";
42737
+ name: string;
42738
+ function_type: "preprocessor";
42739
+ }, {
42740
+ type: "global";
42741
+ name: string;
42742
+ function_type?: "preprocessor" | undefined;
42743
+ }>, z.ZodNull]>>;
42202
42744
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
42203
42745
  type: z.ZodLiteral<"function">;
42204
42746
  id: z.ZodString;
@@ -42390,6 +42932,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
42390
42932
  }, z.ZodTypeAny, "passthrough"> | undefined;
42391
42933
  model?: string | undefined;
42392
42934
  position?: string | undefined;
42935
+ endpoint_name?: string | null | undefined;
42393
42936
  } | null | undefined;
42394
42937
  prompt?: {
42395
42938
  type: "chat";
@@ -42521,6 +43064,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
42521
43064
  name: string;
42522
43065
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
42523
43066
  })[] | null | undefined;
43067
+ preprocessor?: {
43068
+ id: string;
43069
+ type: "function";
43070
+ version?: string | undefined;
43071
+ } | {
43072
+ type: "global";
43073
+ name: string;
43074
+ function_type: "preprocessor";
43075
+ } | null | undefined;
42524
43076
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
42525
43077
  mcp?: Record<string, {
42526
43078
  id: string;
@@ -42654,6 +43206,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
42654
43206
  }, z.ZodTypeAny, "passthrough"> | undefined;
42655
43207
  model?: string | undefined;
42656
43208
  position?: string | undefined;
43209
+ endpoint_name?: string | null | undefined;
42657
43210
  } | null | undefined;
42658
43211
  prompt?: {
42659
43212
  type: "chat";
@@ -42785,6 +43338,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
42785
43338
  name: string;
42786
43339
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
42787
43340
  })[] | null | undefined;
43341
+ preprocessor?: {
43342
+ id: string;
43343
+ type: "function";
43344
+ version?: string | undefined;
43345
+ } | {
43346
+ type: "global";
43347
+ name: string;
43348
+ function_type?: "preprocessor" | undefined;
43349
+ } | null | undefined;
42788
43350
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
42789
43351
  mcp?: Record<string, {
42790
43352
  id: string;
@@ -42923,6 +43485,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
42923
43485
  }, z.ZodTypeAny, "passthrough"> | undefined;
42924
43486
  model?: string | undefined;
42925
43487
  position?: string | undefined;
43488
+ endpoint_name?: string | null | undefined;
42926
43489
  } | null | undefined;
42927
43490
  prompt?: {
42928
43491
  type: "chat";
@@ -43054,6 +43617,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43054
43617
  name: string;
43055
43618
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
43056
43619
  })[] | null | undefined;
43620
+ preprocessor?: {
43621
+ id: string;
43622
+ type: "function";
43623
+ version?: string | undefined;
43624
+ } | {
43625
+ type: "global";
43626
+ name: string;
43627
+ function_type: "preprocessor";
43628
+ } | null | undefined;
43057
43629
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
43058
43630
  mcp?: Record<string, {
43059
43631
  id: string;
@@ -43191,6 +43763,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43191
43763
  }, z.ZodTypeAny, "passthrough"> | undefined;
43192
43764
  model?: string | undefined;
43193
43765
  position?: string | undefined;
43766
+ endpoint_name?: string | null | undefined;
43194
43767
  } | null | undefined;
43195
43768
  prompt?: {
43196
43769
  type: "chat";
@@ -43322,6 +43895,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43322
43895
  name: string;
43323
43896
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
43324
43897
  })[] | null | undefined;
43898
+ preprocessor?: {
43899
+ id: string;
43900
+ type: "function";
43901
+ version?: string | undefined;
43902
+ } | {
43903
+ type: "global";
43904
+ name: string;
43905
+ function_type?: "preprocessor" | undefined;
43906
+ } | null | undefined;
43325
43907
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
43326
43908
  mcp?: Record<string, {
43327
43909
  id: string;
@@ -43502,6 +44084,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43502
44084
  }, z.ZodTypeAny, "passthrough"> | undefined;
43503
44085
  model?: string | undefined;
43504
44086
  position?: string | undefined;
44087
+ endpoint_name?: string | null | undefined;
43505
44088
  } | null | undefined;
43506
44089
  prompt?: {
43507
44090
  type: "chat";
@@ -43633,6 +44216,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43633
44216
  name: string;
43634
44217
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
43635
44218
  })[] | null | undefined;
44219
+ preprocessor?: {
44220
+ id: string;
44221
+ type: "function";
44222
+ version?: string | undefined;
44223
+ } | {
44224
+ type: "global";
44225
+ name: string;
44226
+ function_type: "preprocessor";
44227
+ } | null | undefined;
43636
44228
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
43637
44229
  mcp?: Record<string, {
43638
44230
  id: string;
@@ -43796,6 +44388,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43796
44388
  }, z.ZodTypeAny, "passthrough"> | undefined;
43797
44389
  model?: string | undefined;
43798
44390
  position?: string | undefined;
44391
+ endpoint_name?: string | null | undefined;
43799
44392
  } | null | undefined;
43800
44393
  prompt?: {
43801
44394
  type: "chat";
@@ -43927,6 +44520,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43927
44520
  name: string;
43928
44521
  function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
43929
44522
  })[] | null | undefined;
44523
+ preprocessor?: {
44524
+ id: string;
44525
+ type: "function";
44526
+ version?: string | undefined;
44527
+ } | {
44528
+ type: "global";
44529
+ name: string;
44530
+ function_type: "preprocessor";
44531
+ } | null | undefined;
43930
44532
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
43931
44533
  mcp?: Record<string, {
43932
44534
  id: string;
@@ -44083,6 +44685,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
44083
44685
  }, z.ZodTypeAny, "passthrough"> | undefined;
44084
44686
  model?: string | undefined;
44085
44687
  position?: string | undefined;
44688
+ endpoint_name?: string | null | undefined;
44086
44689
  } | null | undefined;
44087
44690
  prompt?: {
44088
44691
  type: "chat";
@@ -44214,6 +44817,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
44214
44817
  name: string;
44215
44818
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
44216
44819
  })[] | null | undefined;
44820
+ preprocessor?: {
44821
+ id: string;
44822
+ type: "function";
44823
+ version?: string | undefined;
44824
+ } | {
44825
+ type: "global";
44826
+ name: string;
44827
+ function_type?: "preprocessor" | undefined;
44828
+ } | null | undefined;
44217
44829
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
44218
44830
  mcp?: Record<string, {
44219
44831
  id: string;
@@ -44377,6 +44989,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
44377
44989
  }, z.ZodTypeAny, "passthrough"> | undefined;
44378
44990
  model?: string | undefined;
44379
44991
  position?: string | undefined;
44992
+ endpoint_name?: string | null | undefined;
44380
44993
  } | null | undefined;
44381
44994
  prompt?: {
44382
44995
  type: "chat";
@@ -44508,6 +45121,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
44508
45121
  name: string;
44509
45122
  function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
44510
45123
  })[] | null | undefined;
45124
+ preprocessor?: {
45125
+ id: string;
45126
+ type: "function";
45127
+ version?: string | undefined;
45128
+ } | {
45129
+ type: "global";
45130
+ name: string;
45131
+ function_type?: "preprocessor" | undefined;
45132
+ } | null | undefined;
44511
45133
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
44512
45134
  mcp?: Record<string, {
44513
45135
  id: string;
@@ -45390,6 +46012,7 @@ interface InstrumentationIntegrationsConfig {
45390
46012
  googleADK?: boolean;
45391
46013
  huggingface?: boolean;
45392
46014
  claudeAgentSDK?: boolean;
46015
+ cloudflareAIChat?: boolean;
45393
46016
  cursor?: boolean;
45394
46017
  cursorSDK?: boolean;
45395
46018
  flue?: boolean;
@@ -45408,6 +46031,7 @@ interface InstrumentationIntegrationsConfig {
45408
46031
  openaiCodexSDK?: boolean;
45409
46032
  piCodingAgent?: boolean;
45410
46033
  strandsAgentSDK?: boolean;
46034
+ cloudflareAgents?: boolean;
45411
46035
  langchain?: boolean;
45412
46036
  langgraph?: boolean;
45413
46037
  langsmith?: boolean;
@@ -45807,6 +46431,8 @@ declare const exports$1_wrapAgentClass: typeof wrapAgentClass;
45807
46431
  declare const exports$1_wrapAnthropic: typeof wrapAnthropic;
45808
46432
  declare const exports$1_wrapBedrockRuntime: typeof wrapBedrockRuntime;
45809
46433
  declare const exports$1_wrapClaudeAgentSDK: typeof wrapClaudeAgentSDK;
46434
+ declare const exports$1_wrapCloudflareAIChat: typeof wrapCloudflareAIChat;
46435
+ declare const exports$1_wrapCloudflareAgent: typeof wrapCloudflareAgent;
45810
46436
  declare const exports$1_wrapCohere: typeof wrapCohere;
45811
46437
  declare const exports$1_wrapCopilotClient: typeof wrapCopilotClient;
45812
46438
  declare const exports$1_wrapCursorSDK: typeof wrapCursorSDK;
@@ -45815,6 +46441,7 @@ declare const exports$1_wrapGoogleADK: typeof wrapGoogleADK;
45815
46441
  declare const exports$1_wrapGoogleGenAI: typeof wrapGoogleGenAI;
45816
46442
  declare const exports$1_wrapGroq: typeof wrapGroq;
45817
46443
  declare const exports$1_wrapHuggingFace: typeof wrapHuggingFace;
46444
+ declare const exports$1_wrapHuggingFaceTransformers: typeof wrapHuggingFaceTransformers;
45818
46445
  declare const exports$1_wrapLangSmithClient: typeof wrapLangSmithClient;
45819
46446
  declare const exports$1_wrapLangSmithRunTrees: typeof wrapLangSmithRunTrees;
45820
46447
  declare const exports$1_wrapLangSmithTraceable: typeof wrapLangSmithTraceable;
@@ -45830,7 +46457,7 @@ declare const exports$1_wrapStrandsAgentSDK: typeof wrapStrandsAgentSDK;
45830
46457
  declare const exports$1_wrapTraced: typeof wrapTraced;
45831
46458
  declare const exports$1_wrapVitest: typeof wrapVitest;
45832
46459
  declare namespace exports$1 {
45833
- export { type exports$1_AnyDataset as AnyDataset, exports$1_Attachment as Attachment, type exports$1_AttachmentParams as AttachmentParams, exports$1_AttachmentReference as AttachmentReference, exports$1_BAGGAGE_HEADER as BAGGAGE_HEADER, exports$1_BRAINTRUST_CURRENT_SPAN_STORE as BRAINTRUST_CURRENT_SPAN_STORE, exports$1_BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME as BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME, exports$1_BRAINTRUST_PARENT_KEY as BRAINTRUST_PARENT_KEY, type exports$1_BackgroundLoggerOpts as BackgroundLoggerOpts, exports$1_BaseAttachment as BaseAttachment, exports$1_BaseExperiment as BaseExperiment, type exports$1_BaseMetadata as BaseMetadata, exports$1_BraintrustLangChainCallbackHandler as BraintrustLangChainCallbackHandler, exports$1_BraintrustMiddleware as BraintrustMiddleware, exports$1_BraintrustObservabilityExporter as BraintrustObservabilityExporter, exports$1_BraintrustState as BraintrustState, exports$1_BraintrustStream as BraintrustStream, type exports$1_BraintrustStreamChunk as BraintrustStreamChunk, exports$1_CachedSpanFetcher as CachedSpanFetcher, type exports$1_ChatPrompt as ChatPrompt, exports$1_CodeFunction as CodeFunction, type exports$1_CodeOpts as CodeOpts, exports$1_CodePrompt as CodePrompt, type exports$1_CommentEvent as CommentEvent, type exports$1_CompiledPrompt as CompiledPrompt, type exports$1_CompiledPromptParams as CompiledPromptParams, type exports$1_CompletionPrompt as CompletionPrompt, exports$1_ContextManager as ContextManager, type exports$1_ContextParentSpanIds as ContextParentSpanIds, type exports$1_CreateProjectOpts as CreateProjectOpts, type exports$1_CurrentSpanStore as CurrentSpanStore, exports$1_DEFAULT_FETCH_BATCH_SIZE as DEFAULT_FETCH_BATCH_SIZE, exports$1_DEFAULT_MAX_REQUEST_SIZE as DEFAULT_MAX_REQUEST_SIZE, type exports$1_DataSummary as DataSummary, exports$1_Dataset as Dataset, exports$1_DatasetPipeline as DatasetPipeline, type exports$1_DatasetRecord as DatasetRecord, type exports$1_DatasetRestorePreviewResult as DatasetRestorePreviewResult, type exports$1_DatasetRestoreResult as DatasetRestoreResult, type DatasetSnapshotType as DatasetSnapshot, type exports$1_DatasetSummary as DatasetSummary, type exports$1_DefaultMetadataType as DefaultMetadataType, type exports$1_DefaultPromptArgs as DefaultPromptArgs, exports$1_ERR_PERMALINK as ERR_PERMALINK, type exports$1_EndSpanArgs as EndSpanArgs, exports$1_Eval as Eval, type exports$1_EvalCase as EvalCase, type exports$1_EvalClassifier as EvalClassifier, type exports$1_EvalHooks as EvalHooks, type exports$1_EvalParameterSerializedSchema as EvalParameterSerializedSchema, type exports$1_EvalParameters as EvalParameters, type exports$1_EvalResult as EvalResult, exports$1_EvalResultWithSummary as EvalResultWithSummary, type exports$1_EvalScorer as EvalScorer, type exports$1_EvalScorerArgs as EvalScorerArgs, type exports$1_EvalTask as EvalTask, type exports$1_Evaluator as Evaluator, type exports$1_EvaluatorDef as EvaluatorDef, type exports$1_EvaluatorDefinition as EvaluatorDefinition, type exports$1_EvaluatorDefinitions as EvaluatorDefinitions, type exports$1_EvaluatorFile as EvaluatorFile, type exports$1_EvaluatorManifest as EvaluatorManifest, exports$1_Experiment as Experiment, type exports$1_ExperimentLogFullArgs as ExperimentLogFullArgs, type exports$1_ExperimentLogPartialArgs as ExperimentLogPartialArgs, type exports$1_ExperimentSummary as ExperimentSummary, type exports$1_Exportable as Exportable, exports$1_ExternalAttachment as ExternalAttachment, type exports$1_ExternalAttachmentParams as ExternalAttachmentParams, exports$1_FailedHTTPResponse as FailedHTTPResponse, type exports$1_FullInitDatasetOptions as FullInitDatasetOptions, type exports$1_FullInitOptions as FullInitOptions, type exports$1_FullLoginOptions as FullLoginOptions, type exports$1_FunctionEvent as FunctionEvent, type exports$1_GetThreadOptions as GetThreadOptions, exports$1_IDGenerator as IDGenerator, type exports$1_IdField as IdField, type exports$1_InitDatasetOptions as InitDatasetOptions, type exports$1_InitLoggerOptions as InitLoggerOptions, type exports$1_InitOptions as InitOptions, type exports$1_InputField as InputField, type exports$1_InstrumentationConfig as InstrumentationConfig, type exports$1_InvokeFunctionArgs as InvokeFunctionArgs, type exports$1_InvokeReturn as InvokeReturn, exports$1_JSONAttachment as JSONAttachment, exports$1_LEGACY_CACHED_HEADER as LEGACY_CACHED_HEADER, exports$1_LOGS3_OVERFLOW_REFERENCE_TYPE as LOGS3_OVERFLOW_REFERENCE_TYPE, type exports$1_LangChainCallbackHandlerOptions as LangChainCallbackHandlerOptions, exports$1_LazyValue as LazyValue, type exports$1_LoadPromptOptions as LoadPromptOptions, exports$1_LocalTrace as LocalTrace, type exports$1_LogCommentFullArgs as LogCommentFullArgs, type exports$1_LogFeedbackFullArgs as LogFeedbackFullArgs, type exports$1_LogOptions as LogOptions, exports$1_Logger as Logger, exports$1_LoginInvalidOrgError as LoginInvalidOrgError, type exports$1_LoginOptions as LoginOptions, type exports$1_Logs3OverflowInputRow as Logs3OverflowInputRow, type exports$1_Logs3OverflowUpload as Logs3OverflowUpload, type exports$1_MastraObservabilityExporter as MastraObservabilityExporter, type exports$1_MetricSummary as MetricSummary, exports$1_NOOP_SPAN as NOOP_SPAN, exports$1_NOOP_SPAN_PERMALINK as NOOP_SPAN_PERMALINK, exports$1_NoopSpan as NoopSpan, exports$1_OTELIDGenerator as OTELIDGenerator, exports$1_ObjectFetcher as ObjectFetcher, type exports$1_ObjectMetadata as ObjectMetadata, type exports$1_OtherExperimentLogFields as OtherExperimentLogFields, type exports$1_ParametersSource as ParametersSource, type exports$1_ParentExperimentIds as ParentExperimentIds, type exports$1_ParentProjectLogIds as ParentProjectLogIds, type exports$1_ParsedTraceparent as ParsedTraceparent, exports$1_Project as Project, exports$1_ProjectNameIdMap as ProjectNameIdMap, type exports$1_PromiseUnless as PromiseUnless, exports$1_Prompt as Prompt, exports$1_PromptBuilder as PromptBuilder, type exports$1_PromptContents as PromptContents, type exports$1_PromptDefinition as PromptDefinition, type exports$1_PromptDefinitionWithTools as PromptDefinitionWithTools, type exports$1_PromptOpts as PromptOpts, type exports$1_PromptRowWithId as PromptRowWithId, type exports$1_PropagatedState as PropagatedState, type exports$1_PropagationContext as PropagationContext, exports$1_ReadonlyAttachment as ReadonlyAttachment, exports$1_ReadonlyExperiment as ReadonlyExperiment, type exports$1_RegisterSandboxOptions as RegisterSandboxOptions, type exports$1_RegisterSandboxResult as RegisterSandboxResult, exports$1_Reporter as Reporter, type exports$1_ReporterBody as ReporterBody, type exports$1_SandboxConfig as SandboxConfig, type exports$1_ScoreSummary as ScoreSummary, exports$1_ScorerBuilder as ScorerBuilder, type exports$1_ScorerOpts as ScorerOpts, type exports$1_SerializedBraintrustState as SerializedBraintrustState, type exports$1_SetCurrentArg as SetCurrentArg, type exports$1_Span as Span, type exports$1_SpanContext as SpanContext, type exports$1_SpanData as SpanData, exports$1_SpanFetcher as SpanFetcher, exports$1_SpanImpl as SpanImpl, type exports$1_StartSpanArgs as StartSpanArgs, exports$1_TRACEPARENT_HEADER as TRACEPARENT_HEADER, exports$1_TRACESTATE_HEADER as TRACESTATE_HEADER, type exports$1_TemplateFormat as TemplateFormat, type exports$1_TemplateRenderer as TemplateRenderer, type exports$1_TemplateRendererPlugin as TemplateRendererPlugin, exports$1_TestBackgroundLogger as TestBackgroundLogger, exports$1_ToolBuilder as ToolBuilder, type exports$1_Trace as Trace, type exports$1_TraceContextCarrier as TraceContextCarrier, type exports$1_TraceContextHeaders as TraceContextHeaders, exports$1_UUIDGenerator as UUIDGenerator, type exports$1_WithTransactionId as WithTransactionId, exports$1_X_CACHED_HEADER as X_CACHED_HEADER, exports$1__exportsForTestingOnly as _exportsForTestingOnly, exports$1__internalGetGlobalState as _internalGetGlobalState, iso as _internalIso, exports$1__internalSetInitialState as _internalSetInitialState, exports$1_addAzureBlobHeaders as addAzureBlobHeaders, exports$1_agentAssertionScorer as agentAssertionScorer, exports$1_braintrustAISDKTelemetry as braintrustAISDKTelemetry, exports$1_braintrustEveHook as braintrustEveHook, exports$1_braintrustEveInstrumentation as braintrustEveInstrumentation, exports$1_braintrustFlueInstrumentation as braintrustFlueInstrumentation, exports$1_braintrustFlueObserver as braintrustFlueObserver, exports$1_braintrustStreamChunkSchema as braintrustStreamChunkSchema, exports$1_buildLocalSummary as buildLocalSummary, exports$1_configureInstrumentation as configureInstrumentation, exports$1_constructLogs3OverflowRequest as constructLogs3OverflowRequest, exports$1_createFinalValuePassThroughStream as createFinalValuePassThroughStream, exports$1_currentExperiment as currentExperiment, exports$1_currentLogger as currentLogger, exports$1_currentSpan as currentSpan, exports$1_deepCopyEvent as deepCopyEvent, exports$1_defaultErrorScoreHandler as defaultErrorScoreHandler, exports$1_deserializePlainStringAsJSON as deserializePlainStringAsJSON, exports$1_devNullWritableStream as devNullWritableStream, exports$1_evaluatorDefinitionSchema as evaluatorDefinitionSchema, exports$1_evaluatorDefinitionsSchema as evaluatorDefinitionsSchema, exports$1_extractTraceContextFromHeaders as extractTraceContextFromHeaders, exports$1_flush as flush, exports$1_getContextManager as getContextManager, exports$1_getIdGenerator as getIdGenerator, exports$1_getPromptVersions as getPromptVersions, exports$1_getSpanParentObject as getSpanParentObject, exports$1_getTemplateRenderer as getTemplateRenderer, graphFramework as graph, exports$1_init as init, exports$1_initDataset as initDataset, exports$1_initExperiment as initExperiment, exports$1_initFunction as initFunction, exports$1_initLogger as initLogger, exports$1_initNodeTestSuite as initNodeTestSuite, exports$1_injectTraceContext as injectTraceContext, exports$1_invoke as invoke, exports$1_isTemplateFormat as isTemplateFormat, exports$1_loadParameters as loadParameters, exports$1_loadPrompt as loadPrompt, exports$1_log as log, exports$1_logError as logError, exports$1_login as login, exports$1_loginToState as loginToState, exports$1_logs3OverflowUploadSchema as logs3OverflowUploadSchema, exports$1_newId as newId, exports$1_parseCachedHeader as parseCachedHeader, exports$1_parseTemplateFormat as parseTemplateFormat, exports$1_permalink as permalink, exports$1_pickLogs3OverflowObjectIds as pickLogs3OverflowObjectIds, exports$1_projects as projects, exports$1_promptContentsSchema as promptContentsSchema, exports$1_promptDefinitionSchema as promptDefinitionSchema, exports$1_promptDefinitionToPromptData as promptDefinitionToPromptData, exports$1_promptDefinitionWithToolsSchema as promptDefinitionWithToolsSchema, exports$1_registerOtelFlush as registerOtelFlush, exports$1_registerSandbox as registerSandbox, exports$1_registerTemplatePlugin as registerTemplatePlugin, exports$1_renderMessage as renderMessage, exports$1_renderPromptParams as renderPromptParams, exports$1_renderTemplateContent as renderTemplateContent, exports$1_reportFailures as reportFailures, exports$1_runEvaluator as runEvaluator, exports$1_setFetch as setFetch, exports$1_setMaskingFunction as setMaskingFunction, exports$1_spanComponentsToObjectId as spanComponentsToObjectId, exports$1_startSpan as startSpan, exports$1_summarize as summarize, exports$1_templateRegistry as templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, exports$1_traceable as traceable, exports$1_traced as traced, exports$1_updateSpan as updateSpan, exports$1_uploadLogs3OverflowPayload as uploadLogs3OverflowPayload, exports$1_utf8ByteLength as utf8ByteLength, exports$1_withCurrent as withCurrent, exports$1_withDataset as withDataset, exports$1_withExperiment as withExperiment, exports$1_withLogger as withLogger, exports$1_withParent as withParent, exports$1_wrapAISDK as wrapAISDK, exports$1_wrapAISDKModel as wrapAISDKModel, exports$1_wrapAgentClass as wrapAgentClass, exports$1_wrapAnthropic as wrapAnthropic, exports$1_wrapBedrockRuntime as wrapBedrockRuntime, exports$1_wrapClaudeAgentSDK as wrapClaudeAgentSDK, exports$1_wrapCohere as wrapCohere, exports$1_wrapCopilotClient as wrapCopilotClient, exports$1_wrapCursorSDK as wrapCursorSDK, exports$1_wrapGenkit as wrapGenkit, exports$1_wrapGoogleADK as wrapGoogleADK, exports$1_wrapGoogleGenAI as wrapGoogleGenAI, exports$1_wrapGroq as wrapGroq, exports$1_wrapHuggingFace as wrapHuggingFace, exports$1_wrapLangSmithClient as wrapLangSmithClient, exports$1_wrapLangSmithRunTrees as wrapLangSmithRunTrees, exports$1_wrapLangSmithTraceable as wrapLangSmithTraceable, exports$1_wrapMastraAgent as wrapMastraAgent, exports$1_wrapMistral as wrapMistral, exports$1_wrapOpenAI as wrapOpenAI, exports$1_wrapOpenAICodexSDK as wrapOpenAICodexSDK, exports$1_wrapOpenAIv4 as wrapOpenAIv4, exports$1_wrapOpenRouter as wrapOpenRouter, exports$1_wrapOpenRouterAgent as wrapOpenRouterAgent, exports$1_wrapPiCodingAgentSDK as wrapPiCodingAgentSDK, exports$1_wrapStrandsAgentSDK as wrapStrandsAgentSDK, exports$1_wrapTraced as wrapTraced, exports$1_wrapVitest as wrapVitest };
46460
+ export { type exports$1_AnyDataset as AnyDataset, exports$1_Attachment as Attachment, type exports$1_AttachmentParams as AttachmentParams, exports$1_AttachmentReference as AttachmentReference, exports$1_BAGGAGE_HEADER as BAGGAGE_HEADER, exports$1_BRAINTRUST_CURRENT_SPAN_STORE as BRAINTRUST_CURRENT_SPAN_STORE, exports$1_BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME as BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME, exports$1_BRAINTRUST_PARENT_KEY as BRAINTRUST_PARENT_KEY, type exports$1_BackgroundLoggerOpts as BackgroundLoggerOpts, exports$1_BaseAttachment as BaseAttachment, exports$1_BaseExperiment as BaseExperiment, type exports$1_BaseMetadata as BaseMetadata, exports$1_BraintrustLangChainCallbackHandler as BraintrustLangChainCallbackHandler, exports$1_BraintrustMiddleware as BraintrustMiddleware, exports$1_BraintrustObservabilityExporter as BraintrustObservabilityExporter, exports$1_BraintrustState as BraintrustState, exports$1_BraintrustStream as BraintrustStream, type exports$1_BraintrustStreamChunk as BraintrustStreamChunk, exports$1_CachedSpanFetcher as CachedSpanFetcher, type exports$1_ChatPrompt as ChatPrompt, exports$1_CodeFunction as CodeFunction, type exports$1_CodeOpts as CodeOpts, exports$1_CodePrompt as CodePrompt, type exports$1_CommentEvent as CommentEvent, type exports$1_CompiledPrompt as CompiledPrompt, type exports$1_CompiledPromptParams as CompiledPromptParams, type exports$1_CompletionPrompt as CompletionPrompt, exports$1_ContextManager as ContextManager, type exports$1_ContextParentSpanIds as ContextParentSpanIds, type exports$1_CreateProjectOpts as CreateProjectOpts, type exports$1_CurrentSpanStore as CurrentSpanStore, exports$1_DEFAULT_FETCH_BATCH_SIZE as DEFAULT_FETCH_BATCH_SIZE, exports$1_DEFAULT_MAX_REQUEST_SIZE as DEFAULT_MAX_REQUEST_SIZE, type exports$1_DataSummary as DataSummary, exports$1_Dataset as Dataset, exports$1_DatasetPipeline as DatasetPipeline, type exports$1_DatasetRecord as DatasetRecord, type exports$1_DatasetRestorePreviewResult as DatasetRestorePreviewResult, type exports$1_DatasetRestoreResult as DatasetRestoreResult, type DatasetSnapshotType as DatasetSnapshot, type exports$1_DatasetSummary as DatasetSummary, type exports$1_DefaultMetadataType as DefaultMetadataType, type exports$1_DefaultPromptArgs as DefaultPromptArgs, exports$1_ERR_PERMALINK as ERR_PERMALINK, type exports$1_EndSpanArgs as EndSpanArgs, exports$1_Eval as Eval, type exports$1_EvalCase as EvalCase, type exports$1_EvalClassifier as EvalClassifier, type exports$1_EvalHooks as EvalHooks, type exports$1_EvalParameterSerializedSchema as EvalParameterSerializedSchema, type exports$1_EvalParameters as EvalParameters, type exports$1_EvalResult as EvalResult, exports$1_EvalResultWithSummary as EvalResultWithSummary, type exports$1_EvalScorer as EvalScorer, type exports$1_EvalScorerArgs as EvalScorerArgs, type exports$1_EvalTask as EvalTask, type exports$1_Evaluator as Evaluator, type exports$1_EvaluatorDef as EvaluatorDef, type exports$1_EvaluatorDefinition as EvaluatorDefinition, type exports$1_EvaluatorDefinitions as EvaluatorDefinitions, type exports$1_EvaluatorFile as EvaluatorFile, type exports$1_EvaluatorManifest as EvaluatorManifest, exports$1_Experiment as Experiment, type exports$1_ExperimentLogFullArgs as ExperimentLogFullArgs, type exports$1_ExperimentLogPartialArgs as ExperimentLogPartialArgs, type exports$1_ExperimentSummary as ExperimentSummary, type exports$1_Exportable as Exportable, exports$1_ExternalAttachment as ExternalAttachment, type exports$1_ExternalAttachmentParams as ExternalAttachmentParams, exports$1_FailedHTTPResponse as FailedHTTPResponse, type exports$1_FullInitDatasetOptions as FullInitDatasetOptions, type exports$1_FullInitOptions as FullInitOptions, type exports$1_FullLoginOptions as FullLoginOptions, type exports$1_FunctionEvent as FunctionEvent, type exports$1_GetThreadOptions as GetThreadOptions, exports$1_IDGenerator as IDGenerator, type exports$1_IdField as IdField, type exports$1_InitDatasetOptions as InitDatasetOptions, type exports$1_InitLoggerOptions as InitLoggerOptions, type exports$1_InitOptions as InitOptions, type exports$1_InputField as InputField, type exports$1_InstrumentationConfig as InstrumentationConfig, type exports$1_InvokeFunctionArgs as InvokeFunctionArgs, type exports$1_InvokeReturn as InvokeReturn, exports$1_JSONAttachment as JSONAttachment, exports$1_LEGACY_CACHED_HEADER as LEGACY_CACHED_HEADER, exports$1_LOGS3_OVERFLOW_REFERENCE_TYPE as LOGS3_OVERFLOW_REFERENCE_TYPE, type exports$1_LangChainCallbackHandlerOptions as LangChainCallbackHandlerOptions, exports$1_LazyValue as LazyValue, type exports$1_LoadPromptOptions as LoadPromptOptions, exports$1_LocalTrace as LocalTrace, type exports$1_LogCommentFullArgs as LogCommentFullArgs, type exports$1_LogFeedbackFullArgs as LogFeedbackFullArgs, type exports$1_LogOptions as LogOptions, exports$1_Logger as Logger, exports$1_LoginInvalidOrgError as LoginInvalidOrgError, type exports$1_LoginOptions as LoginOptions, type exports$1_Logs3OverflowInputRow as Logs3OverflowInputRow, type exports$1_Logs3OverflowUpload as Logs3OverflowUpload, type exports$1_MastraObservabilityExporter as MastraObservabilityExporter, type exports$1_MetricSummary as MetricSummary, exports$1_NOOP_SPAN as NOOP_SPAN, exports$1_NOOP_SPAN_PERMALINK as NOOP_SPAN_PERMALINK, exports$1_NoopSpan as NoopSpan, exports$1_OTELIDGenerator as OTELIDGenerator, exports$1_ObjectFetcher as ObjectFetcher, type exports$1_ObjectMetadata as ObjectMetadata, type exports$1_OtherExperimentLogFields as OtherExperimentLogFields, type exports$1_ParametersSource as ParametersSource, type exports$1_ParentExperimentIds as ParentExperimentIds, type exports$1_ParentProjectLogIds as ParentProjectLogIds, type exports$1_ParsedTraceparent as ParsedTraceparent, exports$1_Project as Project, exports$1_ProjectNameIdMap as ProjectNameIdMap, type exports$1_PromiseUnless as PromiseUnless, exports$1_Prompt as Prompt, exports$1_PromptBuilder as PromptBuilder, type exports$1_PromptContents as PromptContents, type exports$1_PromptDefinition as PromptDefinition, type exports$1_PromptDefinitionWithTools as PromptDefinitionWithTools, type exports$1_PromptOpts as PromptOpts, type exports$1_PromptRowWithId as PromptRowWithId, type exports$1_PropagatedState as PropagatedState, type exports$1_PropagationContext as PropagationContext, exports$1_ReadonlyAttachment as ReadonlyAttachment, exports$1_ReadonlyExperiment as ReadonlyExperiment, type exports$1_RegisterSandboxOptions as RegisterSandboxOptions, type exports$1_RegisterSandboxResult as RegisterSandboxResult, exports$1_Reporter as Reporter, type exports$1_ReporterBody as ReporterBody, type exports$1_SandboxConfig as SandboxConfig, type exports$1_ScoreSummary as ScoreSummary, exports$1_ScorerBuilder as ScorerBuilder, type exports$1_ScorerOpts as ScorerOpts, type exports$1_SerializedBraintrustState as SerializedBraintrustState, type exports$1_SetCurrentArg as SetCurrentArg, type exports$1_Span as Span, type exports$1_SpanContext as SpanContext, type exports$1_SpanData as SpanData, exports$1_SpanFetcher as SpanFetcher, exports$1_SpanImpl as SpanImpl, type exports$1_StartSpanArgs as StartSpanArgs, exports$1_TRACEPARENT_HEADER as TRACEPARENT_HEADER, exports$1_TRACESTATE_HEADER as TRACESTATE_HEADER, type exports$1_TemplateFormat as TemplateFormat, type exports$1_TemplateRenderer as TemplateRenderer, type exports$1_TemplateRendererPlugin as TemplateRendererPlugin, exports$1_TestBackgroundLogger as TestBackgroundLogger, exports$1_ToolBuilder as ToolBuilder, type exports$1_Trace as Trace, type exports$1_TraceContextCarrier as TraceContextCarrier, type exports$1_TraceContextHeaders as TraceContextHeaders, exports$1_UUIDGenerator as UUIDGenerator, type exports$1_WithTransactionId as WithTransactionId, exports$1_X_CACHED_HEADER as X_CACHED_HEADER, exports$1__exportsForTestingOnly as _exportsForTestingOnly, exports$1__internalGetGlobalState as _internalGetGlobalState, iso as _internalIso, exports$1__internalSetInitialState as _internalSetInitialState, exports$1_addAzureBlobHeaders as addAzureBlobHeaders, exports$1_agentAssertionScorer as agentAssertionScorer, exports$1_braintrustAISDKTelemetry as braintrustAISDKTelemetry, exports$1_braintrustEveHook as braintrustEveHook, exports$1_braintrustEveInstrumentation as braintrustEveInstrumentation, exports$1_braintrustFlueInstrumentation as braintrustFlueInstrumentation, exports$1_braintrustFlueObserver as braintrustFlueObserver, exports$1_braintrustStreamChunkSchema as braintrustStreamChunkSchema, exports$1_buildLocalSummary as buildLocalSummary, exports$1_configureInstrumentation as configureInstrumentation, exports$1_constructLogs3OverflowRequest as constructLogs3OverflowRequest, exports$1_createFinalValuePassThroughStream as createFinalValuePassThroughStream, exports$1_currentExperiment as currentExperiment, exports$1_currentLogger as currentLogger, exports$1_currentSpan as currentSpan, exports$1_deepCopyEvent as deepCopyEvent, exports$1_defaultErrorScoreHandler as defaultErrorScoreHandler, exports$1_deserializePlainStringAsJSON as deserializePlainStringAsJSON, exports$1_devNullWritableStream as devNullWritableStream, exports$1_evaluatorDefinitionSchema as evaluatorDefinitionSchema, exports$1_evaluatorDefinitionsSchema as evaluatorDefinitionsSchema, exports$1_extractTraceContextFromHeaders as extractTraceContextFromHeaders, exports$1_flush as flush, exports$1_getContextManager as getContextManager, exports$1_getIdGenerator as getIdGenerator, exports$1_getPromptVersions as getPromptVersions, exports$1_getSpanParentObject as getSpanParentObject, exports$1_getTemplateRenderer as getTemplateRenderer, graphFramework as graph, exports$1_init as init, exports$1_initDataset as initDataset, exports$1_initExperiment as initExperiment, exports$1_initFunction as initFunction, exports$1_initLogger as initLogger, exports$1_initNodeTestSuite as initNodeTestSuite, exports$1_injectTraceContext as injectTraceContext, exports$1_invoke as invoke, exports$1_isTemplateFormat as isTemplateFormat, exports$1_loadParameters as loadParameters, exports$1_loadPrompt as loadPrompt, exports$1_log as log, exports$1_logError as logError, exports$1_login as login, exports$1_loginToState as loginToState, exports$1_logs3OverflowUploadSchema as logs3OverflowUploadSchema, exports$1_newId as newId, exports$1_parseCachedHeader as parseCachedHeader, exports$1_parseTemplateFormat as parseTemplateFormat, exports$1_permalink as permalink, exports$1_pickLogs3OverflowObjectIds as pickLogs3OverflowObjectIds, exports$1_projects as projects, exports$1_promptContentsSchema as promptContentsSchema, exports$1_promptDefinitionSchema as promptDefinitionSchema, exports$1_promptDefinitionToPromptData as promptDefinitionToPromptData, exports$1_promptDefinitionWithToolsSchema as promptDefinitionWithToolsSchema, exports$1_registerOtelFlush as registerOtelFlush, exports$1_registerSandbox as registerSandbox, exports$1_registerTemplatePlugin as registerTemplatePlugin, exports$1_renderMessage as renderMessage, exports$1_renderPromptParams as renderPromptParams, exports$1_renderTemplateContent as renderTemplateContent, exports$1_reportFailures as reportFailures, exports$1_runEvaluator as runEvaluator, exports$1_setFetch as setFetch, exports$1_setMaskingFunction as setMaskingFunction, exports$1_spanComponentsToObjectId as spanComponentsToObjectId, exports$1_startSpan as startSpan, exports$1_summarize as summarize, exports$1_templateRegistry as templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, exports$1_traceable as traceable, exports$1_traced as traced, exports$1_updateSpan as updateSpan, exports$1_uploadLogs3OverflowPayload as uploadLogs3OverflowPayload, exports$1_utf8ByteLength as utf8ByteLength, exports$1_withCurrent as withCurrent, exports$1_withDataset as withDataset, exports$1_withExperiment as withExperiment, exports$1_withLogger as withLogger, exports$1_withParent as withParent, exports$1_wrapAISDK as wrapAISDK, exports$1_wrapAISDKModel as wrapAISDKModel, exports$1_wrapAgentClass as wrapAgentClass, exports$1_wrapAnthropic as wrapAnthropic, exports$1_wrapBedrockRuntime as wrapBedrockRuntime, exports$1_wrapClaudeAgentSDK as wrapClaudeAgentSDK, exports$1_wrapCloudflareAIChat as wrapCloudflareAIChat, exports$1_wrapCloudflareAgent as wrapCloudflareAgent, exports$1_wrapCohere as wrapCohere, exports$1_wrapCopilotClient as wrapCopilotClient, exports$1_wrapCursorSDK as wrapCursorSDK, exports$1_wrapGenkit as wrapGenkit, exports$1_wrapGoogleADK as wrapGoogleADK, exports$1_wrapGoogleGenAI as wrapGoogleGenAI, exports$1_wrapGroq as wrapGroq, exports$1_wrapHuggingFace as wrapHuggingFace, exports$1_wrapHuggingFaceTransformers as wrapHuggingFaceTransformers, exports$1_wrapLangSmithClient as wrapLangSmithClient, exports$1_wrapLangSmithRunTrees as wrapLangSmithRunTrees, exports$1_wrapLangSmithTraceable as wrapLangSmithTraceable, exports$1_wrapMastraAgent as wrapMastraAgent, exports$1_wrapMistral as wrapMistral, exports$1_wrapOpenAI as wrapOpenAI, exports$1_wrapOpenAICodexSDK as wrapOpenAICodexSDK, exports$1_wrapOpenAIv4 as wrapOpenAIv4, exports$1_wrapOpenRouter as wrapOpenRouter, exports$1_wrapOpenRouterAgent as wrapOpenRouterAgent, exports$1_wrapPiCodingAgentSDK as wrapPiCodingAgentSDK, exports$1_wrapStrandsAgentSDK as wrapStrandsAgentSDK, exports$1_wrapTraced as wrapTraced, exports$1_wrapVitest as wrapVitest };
45834
46461
  }
45835
46462
 
45836
- export { type AnyDataset, Attachment, type AttachmentParams, AttachmentReference, BAGGAGE_HEADER, BRAINTRUST_CURRENT_SPAN_STORE, BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME, BRAINTRUST_PARENT_KEY, type BackgroundLoggerOpts, BaseAttachment, BaseExperiment, type BaseMetadata, BraintrustLangChainCallbackHandler, BraintrustMiddleware, BraintrustObservabilityExporter, BraintrustState, BraintrustStream, type BraintrustStreamChunk, CachedSpanFetcher, type ChatPrompt, CodeFunction, type CodeOpts, CodePrompt, type CommentEvent, type CompiledPrompt, type CompiledPromptParams, type CompletionPrompt, ContextManager, type ContextParentSpanIds, type CreateProjectOpts, type CurrentSpanStore, DEFAULT_FETCH_BATCH_SIZE, DEFAULT_MAX_REQUEST_SIZE, type DataSummary, Dataset, DatasetPipeline, type DatasetRecord, type DatasetRestorePreviewResult, type DatasetRestoreResult, type DatasetSnapshotType as DatasetSnapshot, type DatasetSummary, type DefaultMetadataType, type DefaultPromptArgs, ERR_PERMALINK, type EndSpanArgs, Eval, type EvalCase, type EvalClassifier, type EvalHooks, type EvalParameterSerializedSchema, type EvalParameters, type EvalResult, EvalResultWithSummary, type EvalScorer, type EvalScorerArgs, type EvalTask, type Evaluator, type EvaluatorDef, type EvaluatorDefinition, type EvaluatorDefinitions, type EvaluatorFile, type EvaluatorManifest, Experiment, type ExperimentLogFullArgs, type ExperimentLogPartialArgs, type ExperimentSummary, type Exportable, ExternalAttachment, type ExternalAttachmentParams, FailedHTTPResponse, type FullInitDatasetOptions, type FullInitOptions, type FullLoginOptions, type FunctionEvent, type GetThreadOptions, IDGenerator, type IdField, type InitDatasetOptions, type InitLoggerOptions, type InitOptions, type InputField, type InstrumentationConfig, type InvokeFunctionArgs, type InvokeReturn, JSONAttachment, LEGACY_CACHED_HEADER, LOGS3_OVERFLOW_REFERENCE_TYPE, type LangChainCallbackHandlerOptions, LazyValue, type LoadPromptOptions, LocalTrace, type LogCommentFullArgs, type LogFeedbackFullArgs, type LogOptions, Logger, LoginInvalidOrgError, type LoginOptions, type Logs3OverflowInputRow, type Logs3OverflowUpload, type MastraObservabilityExporter, type MetricSummary, NOOP_SPAN, NOOP_SPAN_PERMALINK, NoopSpan, OTELIDGenerator, ObjectFetcher, type ObjectMetadata, type OtherExperimentLogFields, type ParametersSource, type ParentExperimentIds, type ParentProjectLogIds, type ParsedTraceparent, Project, ProjectNameIdMap, type PromiseUnless, Prompt, PromptBuilder, type PromptContents, type PromptDefinition, type PromptDefinitionWithTools, type PromptOpts, type PromptRowWithId, type PropagatedState, type PropagationContext, 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, TRACEPARENT_HEADER, TRACESTATE_HEADER, type TemplateFormat, type TemplateRenderer, type TemplateRendererPlugin, TestBackgroundLogger, ToolBuilder, type Trace, type TraceContextCarrier, type TraceContextHeaders, UUIDGenerator, type WithTransactionId, X_CACHED_HEADER, _exportsForTestingOnly, _internalGetGlobalState, iso as _internalIso, _internalSetInitialState, addAzureBlobHeaders, agentAssertionScorer, braintrustAISDKTelemetry, braintrustEveHook, braintrustEveInstrumentation, braintrustFlueInstrumentation, braintrustFlueObserver, braintrustStreamChunkSchema, buildLocalSummary, configureInstrumentation, constructLogs3OverflowRequest, createFinalValuePassThroughStream, currentExperiment, currentLogger, currentSpan, deepCopyEvent, exports$1 as default, defaultErrorScoreHandler, deserializePlainStringAsJSON, devNullWritableStream, evaluatorDefinitionSchema, evaluatorDefinitionsSchema, extractTraceContextFromHeaders, flush, getContextManager, getIdGenerator, getPromptVersions, getSpanParentObject, getTemplateRenderer, graphFramework as graph, init, initDataset, initExperiment, initFunction, initLogger, initNodeTestSuite, injectTraceContext, 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, wrapBedrockRuntime, wrapClaudeAgentSDK, wrapCohere, wrapCopilotClient, wrapCursorSDK, wrapGenkit, wrapGoogleADK, wrapGoogleGenAI, wrapGroq, wrapHuggingFace, wrapLangSmithClient, wrapLangSmithRunTrees, wrapLangSmithTraceable, wrapMastraAgent, wrapMistral, wrapOpenAI, wrapOpenAICodexSDK, wrapOpenAIv4, wrapOpenRouter, wrapOpenRouterAgent, wrapPiCodingAgentSDK, wrapStrandsAgentSDK, wrapTraced, wrapVitest };
46463
+ export { type AnyDataset, Attachment, type AttachmentParams, AttachmentReference, BAGGAGE_HEADER, BRAINTRUST_CURRENT_SPAN_STORE, BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME, BRAINTRUST_PARENT_KEY, type BackgroundLoggerOpts, BaseAttachment, BaseExperiment, type BaseMetadata, BraintrustLangChainCallbackHandler, BraintrustMiddleware, BraintrustObservabilityExporter, BraintrustState, BraintrustStream, type BraintrustStreamChunk, CachedSpanFetcher, type ChatPrompt, CodeFunction, type CodeOpts, CodePrompt, type CommentEvent, type CompiledPrompt, type CompiledPromptParams, type CompletionPrompt, ContextManager, type ContextParentSpanIds, type CreateProjectOpts, type CurrentSpanStore, DEFAULT_FETCH_BATCH_SIZE, DEFAULT_MAX_REQUEST_SIZE, type DataSummary, Dataset, DatasetPipeline, type DatasetRecord, type DatasetRestorePreviewResult, type DatasetRestoreResult, type DatasetSnapshotType as DatasetSnapshot, type DatasetSummary, type DefaultMetadataType, type DefaultPromptArgs, ERR_PERMALINK, type EndSpanArgs, Eval, type EvalCase, type EvalClassifier, type EvalHooks, type EvalParameterSerializedSchema, type EvalParameters, type EvalResult, EvalResultWithSummary, type EvalScorer, type EvalScorerArgs, type EvalTask, type Evaluator, type EvaluatorDef, type EvaluatorDefinition, type EvaluatorDefinitions, type EvaluatorFile, type EvaluatorManifest, Experiment, type ExperimentLogFullArgs, type ExperimentLogPartialArgs, type ExperimentSummary, type Exportable, ExternalAttachment, type ExternalAttachmentParams, FailedHTTPResponse, type FullInitDatasetOptions, type FullInitOptions, type FullLoginOptions, type FunctionEvent, type GetThreadOptions, IDGenerator, type IdField, type InitDatasetOptions, type InitLoggerOptions, type InitOptions, type InputField, type InstrumentationConfig, type InvokeFunctionArgs, type InvokeReturn, JSONAttachment, LEGACY_CACHED_HEADER, LOGS3_OVERFLOW_REFERENCE_TYPE, type LangChainCallbackHandlerOptions, LazyValue, type LoadPromptOptions, LocalTrace, type LogCommentFullArgs, type LogFeedbackFullArgs, type LogOptions, Logger, LoginInvalidOrgError, type LoginOptions, type Logs3OverflowInputRow, type Logs3OverflowUpload, type MastraObservabilityExporter, type MetricSummary, NOOP_SPAN, NOOP_SPAN_PERMALINK, NoopSpan, OTELIDGenerator, ObjectFetcher, type ObjectMetadata, type OtherExperimentLogFields, type ParametersSource, type ParentExperimentIds, type ParentProjectLogIds, type ParsedTraceparent, Project, ProjectNameIdMap, type PromiseUnless, Prompt, PromptBuilder, type PromptContents, type PromptDefinition, type PromptDefinitionWithTools, type PromptOpts, type PromptRowWithId, type PropagatedState, type PropagationContext, 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, TRACEPARENT_HEADER, TRACESTATE_HEADER, type TemplateFormat, type TemplateRenderer, type TemplateRendererPlugin, TestBackgroundLogger, ToolBuilder, type Trace, type TraceContextCarrier, type TraceContextHeaders, UUIDGenerator, type WithTransactionId, X_CACHED_HEADER, _exportsForTestingOnly, _internalGetGlobalState, iso as _internalIso, _internalSetInitialState, addAzureBlobHeaders, agentAssertionScorer, braintrustAISDKTelemetry, braintrustEveHook, braintrustEveInstrumentation, braintrustFlueInstrumentation, braintrustFlueObserver, braintrustStreamChunkSchema, buildLocalSummary, configureInstrumentation, constructLogs3OverflowRequest, createFinalValuePassThroughStream, currentExperiment, currentLogger, currentSpan, deepCopyEvent, exports$1 as default, defaultErrorScoreHandler, deserializePlainStringAsJSON, devNullWritableStream, evaluatorDefinitionSchema, evaluatorDefinitionsSchema, extractTraceContextFromHeaders, flush, getContextManager, getIdGenerator, getPromptVersions, getSpanParentObject, getTemplateRenderer, graphFramework as graph, init, initDataset, initExperiment, initFunction, initLogger, initNodeTestSuite, injectTraceContext, 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, wrapBedrockRuntime, wrapClaudeAgentSDK, wrapCloudflareAIChat, wrapCloudflareAgent, wrapCohere, wrapCopilotClient, wrapCursorSDK, wrapGenkit, wrapGoogleADK, wrapGoogleGenAI, wrapGroq, wrapHuggingFace, wrapHuggingFaceTransformers, wrapLangSmithClient, wrapLangSmithRunTrees, wrapLangSmithTraceable, wrapMastraAgent, wrapMistral, wrapOpenAI, wrapOpenAICodexSDK, wrapOpenAIv4, wrapOpenRouter, wrapOpenRouterAgent, wrapPiCodingAgentSDK, wrapStrandsAgentSDK, wrapTraced, wrapVitest };