braintrust 3.26.0 → 3.28.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 (61) hide show
  1. package/dev/dist/index.d.mts +519 -186
  2. package/dev/dist/index.d.ts +519 -186
  3. package/dev/dist/index.js +3727 -1526
  4. package/dev/dist/index.mjs +2815 -614
  5. package/dist/apply-auto-instrumentation.js +372 -261
  6. package/dist/apply-auto-instrumentation.mjs +171 -60
  7. package/dist/auto-instrumentations/bundler/esbuild.cjs +458 -61
  8. package/dist/auto-instrumentations/bundler/esbuild.mjs +5 -4
  9. package/dist/auto-instrumentations/bundler/next.cjs +460 -63
  10. package/dist/auto-instrumentations/bundler/next.mjs +6 -5
  11. package/dist/auto-instrumentations/bundler/rollup.cjs +458 -61
  12. package/dist/auto-instrumentations/bundler/rollup.mjs +5 -4
  13. package/dist/auto-instrumentations/bundler/vite.cjs +487 -62
  14. package/dist/auto-instrumentations/bundler/vite.mjs +34 -5
  15. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +444 -61
  16. package/dist/auto-instrumentations/bundler/webpack.cjs +458 -61
  17. package/dist/auto-instrumentations/bundler/webpack.mjs +6 -5
  18. package/dist/auto-instrumentations/{chunk-6E22MYSW.mjs → chunk-26PKVUKB.mjs} +109 -5
  19. package/dist/auto-instrumentations/{chunk-AKKPLXTP.mjs → chunk-2AMDGD65.mjs} +160 -57
  20. package/dist/auto-instrumentations/{chunk-V5LEODRX.mjs → chunk-HD35AM3M.mjs} +1 -1
  21. package/dist/auto-instrumentations/{chunk-XYN63IG5.mjs → chunk-I55G56ZL.mjs} +21 -58
  22. package/dist/auto-instrumentations/{chunk-NRE4QUQR.mjs → chunk-JPUFNW7X.mjs} +140 -0
  23. package/dist/auto-instrumentations/{chunk-XZHHE4Y3.mjs → chunk-NP7V4XB2.mjs} +157 -3
  24. package/dist/auto-instrumentations/hook.mjs +396 -32
  25. package/dist/auto-instrumentations/index.cjs +298 -2
  26. package/dist/auto-instrumentations/index.d.mts +5 -1
  27. package/dist/auto-instrumentations/index.d.ts +5 -1
  28. package/dist/auto-instrumentations/index.mjs +6 -2
  29. package/dist/auto-instrumentations/loader/cjs-patch.cjs +105 -57
  30. package/dist/auto-instrumentations/loader/cjs-patch.mjs +2 -2
  31. package/dist/auto-instrumentations/loader/esm-hook.mjs +1 -1
  32. package/dist/browser.d.mts +683 -56
  33. package/dist/browser.d.ts +683 -56
  34. package/dist/browser.js +4242 -655
  35. package/dist/browser.mjs +4242 -655
  36. package/dist/{chunk-VYNNEKSA.js → chunk-BBE7SNRV.js} +248 -10
  37. package/dist/{chunk-VRZZQPAA.js → chunk-OBBWQW6K.js} +3351 -1392
  38. package/dist/{chunk-XIZOM2HO.mjs → chunk-UPFNQCGB.mjs} +2419 -460
  39. package/dist/{chunk-PN7EWK66.mjs → chunk-ZHUHZWFY.mjs} +241 -3
  40. package/dist/cli.js +2867 -668
  41. package/dist/edge-light.d.mts +1 -1
  42. package/dist/edge-light.d.ts +1 -1
  43. package/dist/edge-light.js +4242 -655
  44. package/dist/edge-light.mjs +4242 -655
  45. package/dist/index.d.mts +1267 -640
  46. package/dist/index.d.ts +1267 -640
  47. package/dist/index.js +2107 -630
  48. package/dist/index.mjs +1649 -172
  49. package/dist/instrumentation/index.d.mts +198 -6
  50. package/dist/instrumentation/index.d.ts +198 -6
  51. package/dist/instrumentation/index.js +2661 -581
  52. package/dist/instrumentation/index.mjs +2661 -581
  53. package/dist/vitest-evals-reporter.js +45 -43
  54. package/dist/vitest-evals-reporter.mjs +5 -3
  55. package/dist/workerd.d.mts +1 -1
  56. package/dist/workerd.d.ts +1 -1
  57. package/dist/workerd.js +4242 -655
  58. package/dist/workerd.mjs +4242 -655
  59. package/package.json +2 -3
  60. package/util/dist/index.d.mts +1545 -100
  61. package/util/dist/index.d.ts +1545 -100
package/dist/index.d.ts CHANGED
@@ -169,16 +169,108 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
169
169
  token: z.ZodString;
170
170
  function_ids: z.ZodArray<z.ZodUnknown, "many">;
171
171
  skip_logging: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
172
+ triggered_functions: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
173
+ triggered_xact_id: z.ZodString;
174
+ completed_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
175
+ idempotency_key: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
176
+ attempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
177
+ scope: z.ZodUnion<[z.ZodObject<{
178
+ type: z.ZodLiteral<"span">;
179
+ }, "strip", z.ZodTypeAny, {
180
+ type: "span";
181
+ }, {
182
+ type: "span";
183
+ }>, z.ZodObject<{
184
+ type: z.ZodLiteral<"trace">;
185
+ }, "strip", z.ZodTypeAny, {
186
+ type: "trace";
187
+ }, {
188
+ type: "trace";
189
+ }>, z.ZodObject<{
190
+ type: z.ZodLiteral<"group">;
191
+ key: z.ZodString;
192
+ value: z.ZodString;
193
+ }, "strip", z.ZodTypeAny, {
194
+ value: string;
195
+ type: "group";
196
+ key: string;
197
+ }, {
198
+ value: string;
199
+ type: "group";
200
+ key: string;
201
+ }>]>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ triggered_xact_id: string;
204
+ attempts: number;
205
+ scope: {
206
+ type: "span";
207
+ } | {
208
+ type: "trace";
209
+ } | {
210
+ value: string;
211
+ type: "group";
212
+ key: string;
213
+ };
214
+ completed_xact_id?: string | null | undefined;
215
+ idempotency_key?: string | null | undefined;
216
+ }, {
217
+ triggered_xact_id: string;
218
+ scope: {
219
+ type: "span";
220
+ } | {
221
+ type: "trace";
222
+ } | {
223
+ value: string;
224
+ type: "group";
225
+ key: string;
226
+ };
227
+ completed_xact_id?: string | null | undefined;
228
+ idempotency_key?: string | null | undefined;
229
+ attempts?: number | undefined;
230
+ }>>, z.ZodNull]>>;
231
+ last_triggered_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
172
232
  }, "strip", z.ZodTypeAny, {
173
233
  status: "enabled";
174
234
  token: string;
175
235
  function_ids: unknown[];
176
236
  skip_logging?: boolean | null | undefined;
237
+ triggered_functions?: Record<string, {
238
+ triggered_xact_id: string;
239
+ attempts: number;
240
+ scope: {
241
+ type: "span";
242
+ } | {
243
+ type: "trace";
244
+ } | {
245
+ value: string;
246
+ type: "group";
247
+ key: string;
248
+ };
249
+ completed_xact_id?: string | null | undefined;
250
+ idempotency_key?: string | null | undefined;
251
+ }> | null | undefined;
252
+ last_triggered_xact_id?: string | number | null | undefined;
177
253
  }, {
178
254
  status: "enabled";
179
255
  token: string;
180
256
  function_ids: unknown[];
181
257
  skip_logging?: boolean | null | undefined;
258
+ triggered_functions?: Record<string, {
259
+ triggered_xact_id: string;
260
+ scope: {
261
+ type: "span";
262
+ } | {
263
+ type: "trace";
264
+ } | {
265
+ value: string;
266
+ type: "group";
267
+ key: string;
268
+ };
269
+ completed_xact_id?: string | null | undefined;
270
+ idempotency_key?: string | null | undefined;
271
+ attempts?: number | undefined;
272
+ }> | null | undefined;
273
+ last_triggered_xact_id?: string | number | null | undefined;
182
274
  }>, z.ZodObject<{
183
275
  status: z.ZodLiteral<"disabled">;
184
276
  }, "strip", z.ZodTypeAny, {
@@ -193,6 +285,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
193
285
  token: string;
194
286
  function_ids: unknown[];
195
287
  skip_logging?: boolean | null | undefined;
288
+ triggered_functions?: Record<string, {
289
+ triggered_xact_id: string;
290
+ attempts: number;
291
+ scope: {
292
+ type: "span";
293
+ } | {
294
+ type: "trace";
295
+ } | {
296
+ value: string;
297
+ type: "group";
298
+ key: string;
299
+ };
300
+ completed_xact_id?: string | null | undefined;
301
+ idempotency_key?: string | null | undefined;
302
+ }> | null | undefined;
303
+ last_triggered_xact_id?: string | number | null | undefined;
196
304
  } | {
197
305
  status: "disabled";
198
306
  } | null;
@@ -203,6 +311,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
203
311
  token: string;
204
312
  function_ids: unknown[];
205
313
  skip_logging?: boolean | null | undefined;
314
+ triggered_functions?: Record<string, {
315
+ triggered_xact_id: string;
316
+ scope: {
317
+ type: "span";
318
+ } | {
319
+ type: "trace";
320
+ } | {
321
+ value: string;
322
+ type: "group";
323
+ key: string;
324
+ };
325
+ completed_xact_id?: string | null | undefined;
326
+ idempotency_key?: string | null | undefined;
327
+ attempts?: number | undefined;
328
+ }> | null | undefined;
329
+ last_triggered_xact_id?: string | number | null | undefined;
206
330
  } | {
207
331
  status: "disabled";
208
332
  } | null;
@@ -219,26 +343,83 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
219
343
  }, {
220
344
  kind: "state_enabled_force_rescore";
221
345
  }>, z.ZodObject<{
222
- kind: z.ZodLiteral<"add_triggered_functions">;
223
- triggered_function_ids: z.ZodArray<z.ZodUnknown, "many">;
346
+ kind: z.ZodLiteral<"trigger_functions">;
347
+ triggered_functions: z.ZodArray<z.ZodObject<{
348
+ function_id: z.ZodOptional<z.ZodUnknown>;
349
+ scope: z.ZodUnion<[z.ZodObject<{
350
+ type: z.ZodLiteral<"span">;
351
+ }, "strip", z.ZodTypeAny, {
352
+ type: "span";
353
+ }, {
354
+ type: "span";
355
+ }>, z.ZodObject<{
356
+ type: z.ZodLiteral<"trace">;
357
+ }, "strip", z.ZodTypeAny, {
358
+ type: "trace";
359
+ }, {
360
+ type: "trace";
361
+ }>]>;
362
+ idempotency_key: z.ZodOptional<z.ZodString>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ scope: {
365
+ type: "span";
366
+ } | {
367
+ type: "trace";
368
+ };
369
+ idempotency_key?: string | undefined;
370
+ function_id?: unknown;
371
+ }, {
372
+ scope: {
373
+ type: "span";
374
+ } | {
375
+ type: "trace";
376
+ };
377
+ idempotency_key?: string | undefined;
378
+ function_id?: unknown;
379
+ }>, "many">;
224
380
  }, "strip", z.ZodTypeAny, {
225
- kind: "add_triggered_functions";
226
- triggered_function_ids: unknown[];
381
+ kind: "trigger_functions";
382
+ triggered_functions: {
383
+ scope: {
384
+ type: "span";
385
+ } | {
386
+ type: "trace";
387
+ };
388
+ idempotency_key?: string | undefined;
389
+ function_id?: unknown;
390
+ }[];
227
391
  }, {
228
- kind: "add_triggered_functions";
229
- triggered_function_ids: unknown[];
392
+ kind: "trigger_functions";
393
+ triggered_functions: {
394
+ scope: {
395
+ type: "span";
396
+ } | {
397
+ type: "trace";
398
+ };
399
+ idempotency_key?: string | undefined;
400
+ function_id?: unknown;
401
+ }[];
230
402
  }>, z.ZodObject<{
231
403
  kind: z.ZodLiteral<"complete_triggered_functions">;
232
404
  function_ids: z.ZodArray<z.ZodUnknown, "many">;
233
405
  triggered_xact_id: z.ZodString;
234
406
  }, "strip", z.ZodTypeAny, {
235
- function_ids: unknown[];
236
407
  kind: "complete_triggered_functions";
237
408
  triggered_xact_id: string;
238
- }, {
239
409
  function_ids: unknown[];
410
+ }, {
240
411
  kind: "complete_triggered_functions";
241
412
  triggered_xact_id: string;
413
+ function_ids: unknown[];
414
+ }>, z.ZodObject<{
415
+ kind: z.ZodLiteral<"mark_attempt_failed">;
416
+ function_ids: z.ZodArray<z.ZodUnknown, "many">;
417
+ }, "strip", z.ZodTypeAny, {
418
+ kind: "mark_attempt_failed";
419
+ function_ids: unknown[];
420
+ }, {
421
+ kind: "mark_attempt_failed";
422
+ function_ids: unknown[];
242
423
  }>]>;
243
424
  type AsyncScoringControlType = z.infer<typeof AsyncScoringControl>;
244
425
  declare const ObjectReference$1: z.ZodObject<{
@@ -719,13 +900,13 @@ declare const AnyModelParams: z.ZodObject<{
719
900
  verbosity?: "low" | "medium" | "high" | undefined;
720
901
  top_k?: number | undefined;
721
902
  stop_sequences?: string[] | undefined;
903
+ reasoning_enabled?: boolean | undefined;
904
+ reasoning_budget?: number | undefined;
722
905
  max_tokens_to_sample?: number | undefined;
723
906
  maxOutputTokens?: number | undefined;
724
907
  topP?: number | undefined;
725
908
  topK?: number | undefined;
726
909
  use_cache?: boolean | undefined;
727
- reasoning_enabled?: boolean | undefined;
728
- reasoning_budget?: number | undefined;
729
910
  }, {
730
911
  max_tokens: number;
731
912
  temperature?: number | undefined;
@@ -761,13 +942,13 @@ declare const AnyModelParams: z.ZodObject<{
761
942
  verbosity?: "low" | "medium" | "high" | undefined;
762
943
  top_k?: number | undefined;
763
944
  stop_sequences?: string[] | undefined;
945
+ reasoning_enabled?: boolean | undefined;
946
+ reasoning_budget?: number | undefined;
764
947
  max_tokens_to_sample?: number | undefined;
765
948
  maxOutputTokens?: number | undefined;
766
949
  topP?: number | undefined;
767
950
  topK?: number | undefined;
768
951
  use_cache?: boolean | undefined;
769
- reasoning_enabled?: boolean | undefined;
770
- reasoning_budget?: number | undefined;
771
952
  }>;
772
953
  type AnyModelParamsType = z.infer<typeof AnyModelParams>;
773
954
  declare const BraintrustAttachmentReference: z.ZodObject<{
@@ -777,14 +958,14 @@ declare const BraintrustAttachmentReference: z.ZodObject<{
777
958
  key: z.ZodString;
778
959
  }, "strip", z.ZodTypeAny, {
779
960
  type: "braintrust_attachment";
961
+ key: string;
780
962
  filename: string;
781
963
  content_type: string;
782
- key: string;
783
964
  }, {
784
965
  type: "braintrust_attachment";
966
+ key: string;
785
967
  filename: string;
786
968
  content_type: string;
787
- key: string;
788
969
  }>;
789
970
  type BraintrustAttachmentReferenceType = z.infer<typeof BraintrustAttachmentReference>;
790
971
  declare const ExternalAttachmentReference: z.ZodObject<{
@@ -811,14 +992,14 @@ declare const AttachmentReference: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
811
992
  key: z.ZodString;
812
993
  }, "strip", z.ZodTypeAny, {
813
994
  type: "braintrust_attachment";
995
+ key: string;
814
996
  filename: string;
815
997
  content_type: string;
816
- key: string;
817
998
  }, {
818
999
  type: "braintrust_attachment";
1000
+ key: string;
819
1001
  filename: string;
820
1002
  content_type: string;
821
- key: string;
822
1003
  }>, z.ZodObject<{
823
1004
  type: z.ZodLiteral<"external_attachment">;
824
1005
  filename: z.ZodString;
@@ -849,6 +1030,32 @@ declare const AttachmentStatus: z.ZodObject<{
849
1030
  type AttachmentStatusType = z.infer<typeof AttachmentStatus>;
850
1031
  declare const FunctionTypeEnum: z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>;
851
1032
  type FunctionTypeEnumType = z.infer<typeof FunctionTypeEnum>;
1033
+ declare const SavedFunctionId: z.ZodUnion<[z.ZodObject<{
1034
+ type: z.ZodLiteral<"function">;
1035
+ id: z.ZodString;
1036
+ version: z.ZodOptional<z.ZodString>;
1037
+ }, "strip", z.ZodTypeAny, {
1038
+ id: string;
1039
+ type: "function";
1040
+ version?: string | undefined;
1041
+ }, {
1042
+ id: string;
1043
+ type: "function";
1044
+ version?: string | undefined;
1045
+ }>, z.ZodObject<{
1046
+ type: z.ZodLiteral<"global">;
1047
+ name: z.ZodString;
1048
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ type: "global";
1051
+ name: string;
1052
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
1053
+ }, {
1054
+ type: "global";
1055
+ name: string;
1056
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
1057
+ }>]>;
1058
+ type SavedFunctionIdType = z.infer<typeof SavedFunctionId>;
852
1059
  declare const CallEvent: z.ZodUnion<[z.ZodObject<{
853
1060
  id: z.ZodOptional<z.ZodString>;
854
1061
  data: z.ZodString;
@@ -1973,32 +2180,6 @@ declare const ChatCompletionTool: z.ZodObject<{
1973
2180
  type: "function";
1974
2181
  }>;
1975
2182
  type ChatCompletionToolType = z.infer<typeof ChatCompletionTool>;
1976
- declare const SavedFunctionId: z.ZodUnion<[z.ZodObject<{
1977
- type: z.ZodLiteral<"function">;
1978
- id: z.ZodString;
1979
- version: z.ZodOptional<z.ZodString>;
1980
- }, "strip", z.ZodTypeAny, {
1981
- id: string;
1982
- type: "function";
1983
- version?: string | undefined;
1984
- }, {
1985
- id: string;
1986
- type: "function";
1987
- version?: string | undefined;
1988
- }>, z.ZodObject<{
1989
- type: z.ZodLiteral<"global">;
1990
- name: z.ZodString;
1991
- function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
1992
- }, "strip", z.ZodTypeAny, {
1993
- type: "global";
1994
- name: string;
1995
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
1996
- }, {
1997
- type: "global";
1998
- name: string;
1999
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
2000
- }>]>;
2001
- type SavedFunctionIdType = z.infer<typeof SavedFunctionId>;
2002
2183
  declare const DatasetSnapshot: z.ZodObject<{
2003
2184
  id: z.ZodString;
2004
2185
  dataset_id: z.ZodString;
@@ -2034,9 +2215,9 @@ declare const RepoInfo: z.ZodUnion<[z.ZodObject<{
2034
2215
  git_diff: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
2035
2216
  }, "strip", z.ZodTypeAny, {
2036
2217
  dirty?: boolean | null | undefined;
2218
+ tag?: string | null | undefined;
2037
2219
  commit?: string | null | undefined;
2038
2220
  branch?: string | null | undefined;
2039
- tag?: string | null | undefined;
2040
2221
  author_name?: string | null | undefined;
2041
2222
  author_email?: string | null | undefined;
2042
2223
  commit_message?: string | null | undefined;
@@ -2044,9 +2225,9 @@ declare const RepoInfo: z.ZodUnion<[z.ZodObject<{
2044
2225
  git_diff?: string | null | undefined;
2045
2226
  }, {
2046
2227
  dirty?: boolean | null | undefined;
2228
+ tag?: string | null | undefined;
2047
2229
  commit?: string | null | undefined;
2048
2230
  branch?: string | null | undefined;
2049
- tag?: string | null | undefined;
2050
2231
  author_name?: string | null | undefined;
2051
2232
  author_email?: string | null | undefined;
2052
2233
  commit_message?: string | null | undefined;
@@ -4326,21 +4507,21 @@ declare const GraphEdge: z.ZodObject<{
4326
4507
  node: string;
4327
4508
  variable: string;
4328
4509
  };
4510
+ purpose: "data" | "messages" | "control";
4329
4511
  target: {
4330
4512
  node: string;
4331
4513
  variable: string;
4332
4514
  };
4333
- purpose: "data" | "messages" | "control";
4334
4515
  }, {
4335
4516
  source: {
4336
4517
  node: string;
4337
4518
  variable: string;
4338
4519
  };
4520
+ purpose: "data" | "messages" | "control";
4339
4521
  target: {
4340
4522
  node: string;
4341
4523
  variable: string;
4342
4524
  };
4343
- purpose: "data" | "messages" | "control";
4344
4525
  }>;
4345
4526
  type GraphEdgeType = z.infer<typeof GraphEdge>;
4346
4527
  declare const GraphData: z.ZodObject<{
@@ -5543,21 +5724,21 @@ declare const GraphData: z.ZodObject<{
5543
5724
  node: string;
5544
5725
  variable: string;
5545
5726
  };
5727
+ purpose: "data" | "messages" | "control";
5546
5728
  target: {
5547
5729
  node: string;
5548
5730
  variable: string;
5549
5731
  };
5550
- purpose: "data" | "messages" | "control";
5551
5732
  }, {
5552
5733
  source: {
5553
5734
  node: string;
5554
5735
  variable: string;
5555
5736
  };
5737
+ purpose: "data" | "messages" | "control";
5556
5738
  target: {
5557
5739
  node: string;
5558
5740
  variable: string;
5559
5741
  };
5560
- purpose: "data" | "messages" | "control";
5561
5742
  }>>;
5562
5743
  }, "strip", z.ZodTypeAny, {
5563
5744
  type: "graph";
@@ -5737,11 +5918,11 @@ declare const GraphData: z.ZodObject<{
5737
5918
  node: string;
5738
5919
  variable: string;
5739
5920
  };
5921
+ purpose: "data" | "messages" | "control";
5740
5922
  target: {
5741
5923
  node: string;
5742
5924
  variable: string;
5743
5925
  };
5744
- purpose: "data" | "messages" | "control";
5745
5926
  }>;
5746
5927
  }, {
5747
5928
  type: "graph";
@@ -5921,11 +6102,11 @@ declare const GraphData: z.ZodObject<{
5921
6102
  node: string;
5922
6103
  variable: string;
5923
6104
  };
6105
+ purpose: "data" | "messages" | "control";
5924
6106
  target: {
5925
6107
  node: string;
5926
6108
  variable: string;
5927
6109
  };
5928
- purpose: "data" | "messages" | "control";
5929
6110
  }>;
5930
6111
  }>;
5931
6112
  type GraphDataType = z.infer<typeof GraphData>;
@@ -5948,11 +6129,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
5948
6129
  runtime: z.ZodEnum<["node", "python", "browser", "quickjs"]>;
5949
6130
  version: z.ZodString;
5950
6131
  }, "strip", z.ZodTypeAny, {
5951
- runtime: "node" | "python" | "browser" | "quickjs";
5952
6132
  version: string;
5953
- }, {
5954
6133
  runtime: "node" | "python" | "browser" | "quickjs";
6134
+ }, {
5955
6135
  version: string;
6136
+ runtime: "node" | "python" | "browser" | "quickjs";
5956
6137
  }>;
5957
6138
  location: z.ZodUnion<[z.ZodObject<{
5958
6139
  type: z.ZodLiteral<"experiment">;
@@ -6066,8 +6247,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6066
6247
  preview: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
6067
6248
  }, "strip", z.ZodTypeAny, {
6068
6249
  runtime_context: {
6069
- runtime: "node" | "python" | "browser" | "quickjs";
6070
6250
  version: string;
6251
+ runtime: "node" | "python" | "browser" | "quickjs";
6071
6252
  };
6072
6253
  location: {
6073
6254
  type: "experiment";
@@ -6101,8 +6282,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6101
6282
  preview?: string | null | undefined;
6102
6283
  }, {
6103
6284
  runtime_context: {
6104
- runtime: "node" | "python" | "browser" | "quickjs";
6105
6285
  version: string;
6286
+ runtime: "node" | "python" | "browser" | "quickjs";
6106
6287
  };
6107
6288
  location: {
6108
6289
  type: "experiment";
@@ -6140,11 +6321,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6140
6321
  runtime: z.ZodEnum<["node", "python", "browser", "quickjs"]>;
6141
6322
  version: z.ZodString;
6142
6323
  }, "strip", z.ZodTypeAny, {
6143
- runtime: "node" | "python" | "browser" | "quickjs";
6144
6324
  version: string;
6145
- }, {
6146
6325
  runtime: "node" | "python" | "browser" | "quickjs";
6326
+ }, {
6147
6327
  version: string;
6328
+ runtime: "node" | "python" | "browser" | "quickjs";
6148
6329
  }>;
6149
6330
  code: z.ZodString;
6150
6331
  code_hash: z.ZodOptional<z.ZodString>;
@@ -6152,16 +6333,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6152
6333
  code: string;
6153
6334
  type: "inline";
6154
6335
  runtime_context: {
6155
- runtime: "node" | "python" | "browser" | "quickjs";
6156
6336
  version: string;
6337
+ runtime: "node" | "python" | "browser" | "quickjs";
6157
6338
  };
6158
6339
  code_hash?: string | undefined;
6159
6340
  }, {
6160
6341
  code: string;
6161
6342
  type: "inline";
6162
6343
  runtime_context: {
6163
- runtime: "node" | "python" | "browser" | "quickjs";
6164
6344
  version: string;
6345
+ runtime: "node" | "python" | "browser" | "quickjs";
6165
6346
  };
6166
6347
  code_hash?: string | undefined;
6167
6348
  }>]>;
@@ -6171,8 +6352,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6171
6352
  type: "bundle";
6172
6353
  } & {
6173
6354
  runtime_context: {
6174
- runtime: "node" | "python" | "browser" | "quickjs";
6175
6355
  version: string;
6356
+ runtime: "node" | "python" | "browser" | "quickjs";
6176
6357
  };
6177
6358
  location: {
6178
6359
  type: "experiment";
@@ -6208,8 +6389,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6208
6389
  code: string;
6209
6390
  type: "inline";
6210
6391
  runtime_context: {
6211
- runtime: "node" | "python" | "browser" | "quickjs";
6212
6392
  version: string;
6393
+ runtime: "node" | "python" | "browser" | "quickjs";
6213
6394
  };
6214
6395
  code_hash?: string | undefined;
6215
6396
  };
@@ -6219,8 +6400,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6219
6400
  type: "bundle";
6220
6401
  } & {
6221
6402
  runtime_context: {
6222
- runtime: "node" | "python" | "browser" | "quickjs";
6223
6403
  version: string;
6404
+ runtime: "node" | "python" | "browser" | "quickjs";
6224
6405
  };
6225
6406
  location: {
6226
6407
  type: "experiment";
@@ -6256,8 +6437,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
6256
6437
  code: string;
6257
6438
  type: "inline";
6258
6439
  runtime_context: {
6259
- runtime: "node" | "python" | "browser" | "quickjs";
6260
6440
  version: string;
6441
+ runtime: "node" | "python" | "browser" | "quickjs";
6261
6442
  };
6262
6443
  code_hash?: string | undefined;
6263
6444
  };
@@ -7461,21 +7642,21 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
7461
7642
  node: string;
7462
7643
  variable: string;
7463
7644
  };
7645
+ purpose: "data" | "messages" | "control";
7464
7646
  target: {
7465
7647
  node: string;
7466
7648
  variable: string;
7467
7649
  };
7468
- purpose: "data" | "messages" | "control";
7469
7650
  }, {
7470
7651
  source: {
7471
7652
  node: string;
7472
7653
  variable: string;
7473
7654
  };
7655
+ purpose: "data" | "messages" | "control";
7474
7656
  target: {
7475
7657
  node: string;
7476
7658
  variable: string;
7477
7659
  };
7478
- purpose: "data" | "messages" | "control";
7479
7660
  }>>;
7480
7661
  }, "strip", z.ZodTypeAny, {
7481
7662
  type: "graph";
@@ -7655,11 +7836,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
7655
7836
  node: string;
7656
7837
  variable: string;
7657
7838
  };
7839
+ purpose: "data" | "messages" | "control";
7658
7840
  target: {
7659
7841
  node: string;
7660
7842
  variable: string;
7661
7843
  };
7662
- purpose: "data" | "messages" | "control";
7663
7844
  }>;
7664
7845
  }, {
7665
7846
  type: "graph";
@@ -7839,11 +8020,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
7839
8020
  node: string;
7840
8021
  variable: string;
7841
8022
  };
8023
+ purpose: "data" | "messages" | "control";
7842
8024
  target: {
7843
8025
  node: string;
7844
8026
  variable: string;
7845
8027
  };
7846
- purpose: "data" | "messages" | "control";
7847
8028
  }>;
7848
8029
  }>, z.ZodObject<{
7849
8030
  type: z.ZodLiteral<"remote_eval">;
@@ -7875,16 +8056,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
7875
8056
  }, "strip", z.ZodTypeAny, {
7876
8057
  type: "global";
7877
8058
  name: string;
7878
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
8059
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
7879
8060
  config?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
7880
8061
  }, {
7881
8062
  type: "global";
7882
8063
  name: string;
7883
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
8064
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
7884
8065
  config?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
7885
8066
  }>, z.ZodObject<{
7886
8067
  type: z.ZodLiteral<"facet">;
7887
- preprocessor: z.ZodOptional<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
8068
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
7888
8069
  type: z.ZodLiteral<"function">;
7889
8070
  id: z.ZodString;
7890
8071
  version: z.ZodOptional<z.ZodString>;
@@ -7903,12 +8084,21 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
7903
8084
  }, "strip", z.ZodTypeAny, {
7904
8085
  type: "global";
7905
8086
  name: string;
7906
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
8087
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
7907
8088
  }, {
7908
8089
  type: "global";
7909
8090
  name: string;
7910
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
7911
- }>, z.ZodNull]>, z.ZodUnknown>>;
8091
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8092
+ }>, z.ZodObject<{
8093
+ type: z.ZodLiteral<"inline">;
8094
+ code: z.ZodString;
8095
+ }, "strip", z.ZodTypeAny, {
8096
+ code: string;
8097
+ type: "inline";
8098
+ }, {
8099
+ code: string;
8100
+ type: "inline";
8101
+ }>, z.ZodNull]>>;
7912
8102
  prompt: z.ZodString;
7913
8103
  model: z.ZodOptional<z.ZodString>;
7914
8104
  embedding_model: z.ZodOptional<z.ZodString>;
@@ -7916,7 +8106,6 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
7916
8106
  }, "strip", z.ZodTypeAny, {
7917
8107
  type: "facet";
7918
8108
  prompt: string;
7919
- model?: string | undefined;
7920
8109
  preprocessor?: {
7921
8110
  id: string;
7922
8111
  type: "function";
@@ -7924,14 +8113,17 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
7924
8113
  } | {
7925
8114
  type: "global";
7926
8115
  name: string;
7927
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
8116
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
8117
+ } | {
8118
+ code: string;
8119
+ type: "inline";
7928
8120
  } | null | undefined;
7929
8121
  embedding_model?: string | undefined;
8122
+ model?: string | undefined;
7930
8123
  no_match_pattern?: string | undefined;
7931
8124
  }, {
7932
8125
  type: "facet";
7933
8126
  prompt: string;
7934
- model?: string | undefined;
7935
8127
  preprocessor?: {
7936
8128
  id: string;
7937
8129
  type: "function";
@@ -7939,13 +8131,17 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
7939
8131
  } | {
7940
8132
  type: "global";
7941
8133
  name: string;
7942
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
8134
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8135
+ } | {
8136
+ code: string;
8137
+ type: "inline";
7943
8138
  } | null | undefined;
7944
8139
  embedding_model?: string | undefined;
8140
+ model?: string | undefined;
7945
8141
  no_match_pattern?: string | undefined;
7946
8142
  }>, z.ZodObject<{
7947
8143
  type: z.ZodLiteral<"batched_facet">;
7948
- preprocessor: z.ZodOptional<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
8144
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
7949
8145
  type: z.ZodLiteral<"function">;
7950
8146
  id: z.ZodString;
7951
8147
  version: z.ZodOptional<z.ZodString>;
@@ -7964,12 +8160,21 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
7964
8160
  }, "strip", z.ZodTypeAny, {
7965
8161
  type: "global";
7966
8162
  name: string;
7967
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
8163
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
7968
8164
  }, {
7969
8165
  type: "global";
7970
8166
  name: string;
7971
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
7972
- }>, z.ZodNull]>, z.ZodUnknown>>;
8167
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8168
+ }>, z.ZodObject<{
8169
+ type: z.ZodLiteral<"inline">;
8170
+ code: z.ZodString;
8171
+ }, "strip", z.ZodTypeAny, {
8172
+ code: string;
8173
+ type: "inline";
8174
+ }, {
8175
+ code: string;
8176
+ type: "inline";
8177
+ }>, z.ZodNull]>>;
7973
8178
  facets: z.ZodArray<z.ZodObject<{
7974
8179
  name: z.ZodString;
7975
8180
  prompt: z.ZodString;
@@ -7979,14 +8184,14 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
7979
8184
  }, "strip", z.ZodTypeAny, {
7980
8185
  prompt: string;
7981
8186
  name: string;
7982
- model?: string | undefined;
7983
8187
  embedding_model?: string | undefined;
8188
+ model?: string | undefined;
7984
8189
  no_match_pattern?: string | undefined;
7985
8190
  }, {
7986
8191
  prompt: string;
7987
8192
  name: string;
7988
- model?: string | undefined;
7989
8193
  embedding_model?: string | undefined;
8194
+ model?: string | undefined;
7990
8195
  no_match_pattern?: string | undefined;
7991
8196
  }>, "many">;
7992
8197
  topic_maps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
@@ -7995,12 +8200,37 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
7995
8200
  topic_map_data: z.ZodObject<{
7996
8201
  type: z.ZodLiteral<"topic_map">;
7997
8202
  source_facet: z.ZodString;
8203
+ source_facet_function: z.ZodOptional<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
8204
+ type: z.ZodLiteral<"function">;
8205
+ id: z.ZodString;
8206
+ version: z.ZodOptional<z.ZodString>;
8207
+ }, "strip", z.ZodTypeAny, {
8208
+ id: string;
8209
+ type: "function";
8210
+ version?: string | undefined;
8211
+ }, {
8212
+ id: string;
8213
+ type: "function";
8214
+ version?: string | undefined;
8215
+ }>, z.ZodObject<{
8216
+ type: z.ZodLiteral<"global">;
8217
+ name: z.ZodString;
8218
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
8219
+ }, "strip", z.ZodTypeAny, {
8220
+ type: "global";
8221
+ name: string;
8222
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
8223
+ }, {
8224
+ type: "global";
8225
+ name: string;
8226
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8227
+ }>]>, z.ZodUnknown>>;
7998
8228
  embedding_model: z.ZodString;
7999
8229
  bundle_key: z.ZodOptional<z.ZodString>;
8000
8230
  report_key: z.ZodOptional<z.ZodString>;
8001
8231
  topic_names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8002
8232
  generation_settings: z.ZodOptional<z.ZodObject<{
8003
- algorithm: z.ZodEnum<["hdbscan", "kmeans"]>;
8233
+ algorithm: z.ZodEnum<["hdbscan", "kmeans", "community"]>;
8004
8234
  dimension_reduction: z.ZodEnum<["umap", "pca", "none"]>;
8005
8235
  sample_size: z.ZodOptional<z.ZodNumber>;
8006
8236
  n_clusters: z.ZodOptional<z.ZodNumber>;
@@ -8009,7 +8239,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8009
8239
  hierarchy_threshold: z.ZodOptional<z.ZodNumber>;
8010
8240
  naming_model: z.ZodOptional<z.ZodString>;
8011
8241
  }, "strip", z.ZodTypeAny, {
8012
- algorithm: "hdbscan" | "kmeans";
8242
+ algorithm: "hdbscan" | "kmeans" | "community";
8013
8243
  dimension_reduction: "none" | "umap" | "pca";
8014
8244
  sample_size?: number | undefined;
8015
8245
  n_clusters?: number | undefined;
@@ -8018,7 +8248,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8018
8248
  hierarchy_threshold?: number | undefined;
8019
8249
  naming_model?: string | undefined;
8020
8250
  }, {
8021
- algorithm: "hdbscan" | "kmeans";
8251
+ algorithm: "hdbscan" | "kmeans" | "community";
8022
8252
  dimension_reduction: "none" | "umap" | "pca";
8023
8253
  sample_size?: number | undefined;
8024
8254
  n_clusters?: number | undefined;
@@ -8036,12 +8266,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8036
8266
  type: "topic_map";
8037
8267
  source_facet: string;
8038
8268
  embedding_model: string;
8039
- btql_filter?: string | undefined;
8269
+ source_facet_function?: {
8270
+ id: string;
8271
+ type: "function";
8272
+ version?: string | undefined;
8273
+ } | {
8274
+ type: "global";
8275
+ name: string;
8276
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
8277
+ } | undefined;
8040
8278
  bundle_key?: string | undefined;
8041
8279
  report_key?: string | undefined;
8042
8280
  topic_names?: Record<string, string> | undefined;
8043
8281
  generation_settings?: {
8044
- algorithm: "hdbscan" | "kmeans";
8282
+ algorithm: "hdbscan" | "kmeans" | "community";
8045
8283
  dimension_reduction: "none" | "umap" | "pca";
8046
8284
  sample_size?: number | undefined;
8047
8285
  n_clusters?: number | undefined;
@@ -8053,17 +8291,26 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8053
8291
  disable_reconciliation?: boolean | undefined;
8054
8292
  reconcile_mode?: "evolve" | "names_only" | undefined;
8055
8293
  distance_threshold?: number | undefined;
8294
+ btql_filter?: string | undefined;
8056
8295
  automation_btql_filter?: string | undefined;
8057
8296
  }, {
8058
8297
  type: "topic_map";
8059
8298
  source_facet: string;
8060
8299
  embedding_model: string;
8061
- btql_filter?: string | undefined;
8300
+ source_facet_function?: {
8301
+ id: string;
8302
+ type: "function";
8303
+ version?: string | undefined;
8304
+ } | {
8305
+ type: "global";
8306
+ name: string;
8307
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8308
+ } | undefined;
8062
8309
  bundle_key?: string | undefined;
8063
8310
  report_key?: string | undefined;
8064
8311
  topic_names?: Record<string, string> | undefined;
8065
8312
  generation_settings?: {
8066
- algorithm: "hdbscan" | "kmeans";
8313
+ algorithm: "hdbscan" | "kmeans" | "community";
8067
8314
  dimension_reduction: "none" | "umap" | "pca";
8068
8315
  sample_size?: number | undefined;
8069
8316
  n_clusters?: number | undefined;
@@ -8075,6 +8322,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8075
8322
  disable_reconciliation?: boolean | undefined;
8076
8323
  reconcile_mode?: "evolve" | "names_only" | undefined;
8077
8324
  distance_threshold?: number | undefined;
8325
+ btql_filter?: string | undefined;
8078
8326
  automation_btql_filter?: string | undefined;
8079
8327
  }>;
8080
8328
  }, "strip", z.ZodTypeAny, {
@@ -8083,12 +8331,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8083
8331
  type: "topic_map";
8084
8332
  source_facet: string;
8085
8333
  embedding_model: string;
8086
- btql_filter?: string | undefined;
8334
+ source_facet_function?: {
8335
+ id: string;
8336
+ type: "function";
8337
+ version?: string | undefined;
8338
+ } | {
8339
+ type: "global";
8340
+ name: string;
8341
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
8342
+ } | undefined;
8087
8343
  bundle_key?: string | undefined;
8088
8344
  report_key?: string | undefined;
8089
8345
  topic_names?: Record<string, string> | undefined;
8090
8346
  generation_settings?: {
8091
- algorithm: "hdbscan" | "kmeans";
8347
+ algorithm: "hdbscan" | "kmeans" | "community";
8092
8348
  dimension_reduction: "none" | "umap" | "pca";
8093
8349
  sample_size?: number | undefined;
8094
8350
  n_clusters?: number | undefined;
@@ -8100,6 +8356,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8100
8356
  disable_reconciliation?: boolean | undefined;
8101
8357
  reconcile_mode?: "evolve" | "names_only" | undefined;
8102
8358
  distance_threshold?: number | undefined;
8359
+ btql_filter?: string | undefined;
8103
8360
  automation_btql_filter?: string | undefined;
8104
8361
  };
8105
8362
  topic_map_id?: string | undefined;
@@ -8109,12 +8366,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8109
8366
  type: "topic_map";
8110
8367
  source_facet: string;
8111
8368
  embedding_model: string;
8112
- btql_filter?: string | undefined;
8369
+ source_facet_function?: {
8370
+ id: string;
8371
+ type: "function";
8372
+ version?: string | undefined;
8373
+ } | {
8374
+ type: "global";
8375
+ name: string;
8376
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8377
+ } | undefined;
8113
8378
  bundle_key?: string | undefined;
8114
8379
  report_key?: string | undefined;
8115
8380
  topic_names?: Record<string, string> | undefined;
8116
8381
  generation_settings?: {
8117
- algorithm: "hdbscan" | "kmeans";
8382
+ algorithm: "hdbscan" | "kmeans" | "community";
8118
8383
  dimension_reduction: "none" | "umap" | "pca";
8119
8384
  sample_size?: number | undefined;
8120
8385
  n_clusters?: number | undefined;
@@ -8126,6 +8391,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8126
8391
  disable_reconciliation?: boolean | undefined;
8127
8392
  reconcile_mode?: "evolve" | "names_only" | undefined;
8128
8393
  distance_threshold?: number | undefined;
8394
+ btql_filter?: string | undefined;
8129
8395
  automation_btql_filter?: string | undefined;
8130
8396
  };
8131
8397
  topic_map_id?: string | undefined;
@@ -8135,8 +8401,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8135
8401
  facets: {
8136
8402
  prompt: string;
8137
8403
  name: string;
8138
- model?: string | undefined;
8139
8404
  embedding_model?: string | undefined;
8405
+ model?: string | undefined;
8140
8406
  no_match_pattern?: string | undefined;
8141
8407
  }[];
8142
8408
  preprocessor?: {
@@ -8146,7 +8412,10 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8146
8412
  } | {
8147
8413
  type: "global";
8148
8414
  name: string;
8149
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
8415
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
8416
+ } | {
8417
+ code: string;
8418
+ type: "inline";
8150
8419
  } | null | undefined;
8151
8420
  topic_maps?: Record<string, {
8152
8421
  function_name: string;
@@ -8154,12 +8423,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8154
8423
  type: "topic_map";
8155
8424
  source_facet: string;
8156
8425
  embedding_model: string;
8157
- btql_filter?: string | undefined;
8426
+ source_facet_function?: {
8427
+ id: string;
8428
+ type: "function";
8429
+ version?: string | undefined;
8430
+ } | {
8431
+ type: "global";
8432
+ name: string;
8433
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
8434
+ } | undefined;
8158
8435
  bundle_key?: string | undefined;
8159
8436
  report_key?: string | undefined;
8160
8437
  topic_names?: Record<string, string> | undefined;
8161
8438
  generation_settings?: {
8162
- algorithm: "hdbscan" | "kmeans";
8439
+ algorithm: "hdbscan" | "kmeans" | "community";
8163
8440
  dimension_reduction: "none" | "umap" | "pca";
8164
8441
  sample_size?: number | undefined;
8165
8442
  n_clusters?: number | undefined;
@@ -8171,6 +8448,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8171
8448
  disable_reconciliation?: boolean | undefined;
8172
8449
  reconcile_mode?: "evolve" | "names_only" | undefined;
8173
8450
  distance_threshold?: number | undefined;
8451
+ btql_filter?: string | undefined;
8174
8452
  automation_btql_filter?: string | undefined;
8175
8453
  };
8176
8454
  topic_map_id?: string | undefined;
@@ -8180,8 +8458,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8180
8458
  facets: {
8181
8459
  prompt: string;
8182
8460
  name: string;
8183
- model?: string | undefined;
8184
8461
  embedding_model?: string | undefined;
8462
+ model?: string | undefined;
8185
8463
  no_match_pattern?: string | undefined;
8186
8464
  }[];
8187
8465
  preprocessor?: {
@@ -8191,7 +8469,10 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8191
8469
  } | {
8192
8470
  type: "global";
8193
8471
  name: string;
8194
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
8472
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8473
+ } | {
8474
+ code: string;
8475
+ type: "inline";
8195
8476
  } | null | undefined;
8196
8477
  topic_maps?: Record<string, {
8197
8478
  function_name: string;
@@ -8199,12 +8480,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8199
8480
  type: "topic_map";
8200
8481
  source_facet: string;
8201
8482
  embedding_model: string;
8202
- btql_filter?: string | undefined;
8483
+ source_facet_function?: {
8484
+ id: string;
8485
+ type: "function";
8486
+ version?: string | undefined;
8487
+ } | {
8488
+ type: "global";
8489
+ name: string;
8490
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8491
+ } | undefined;
8203
8492
  bundle_key?: string | undefined;
8204
8493
  report_key?: string | undefined;
8205
8494
  topic_names?: Record<string, string> | undefined;
8206
8495
  generation_settings?: {
8207
- algorithm: "hdbscan" | "kmeans";
8496
+ algorithm: "hdbscan" | "kmeans" | "community";
8208
8497
  dimension_reduction: "none" | "umap" | "pca";
8209
8498
  sample_size?: number | undefined;
8210
8499
  n_clusters?: number | undefined;
@@ -8216,6 +8505,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8216
8505
  disable_reconciliation?: boolean | undefined;
8217
8506
  reconcile_mode?: "evolve" | "names_only" | undefined;
8218
8507
  distance_threshold?: number | undefined;
8508
+ btql_filter?: string | undefined;
8219
8509
  automation_btql_filter?: string | undefined;
8220
8510
  };
8221
8511
  topic_map_id?: string | undefined;
@@ -8264,12 +8554,37 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8264
8554
  }>, z.ZodIntersection<z.ZodObject<{
8265
8555
  type: z.ZodLiteral<"topic_map">;
8266
8556
  source_facet: z.ZodString;
8557
+ source_facet_function: z.ZodOptional<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
8558
+ type: z.ZodLiteral<"function">;
8559
+ id: z.ZodString;
8560
+ version: z.ZodOptional<z.ZodString>;
8561
+ }, "strip", z.ZodTypeAny, {
8562
+ id: string;
8563
+ type: "function";
8564
+ version?: string | undefined;
8565
+ }, {
8566
+ id: string;
8567
+ type: "function";
8568
+ version?: string | undefined;
8569
+ }>, z.ZodObject<{
8570
+ type: z.ZodLiteral<"global">;
8571
+ name: z.ZodString;
8572
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
8573
+ }, "strip", z.ZodTypeAny, {
8574
+ type: "global";
8575
+ name: string;
8576
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
8577
+ }, {
8578
+ type: "global";
8579
+ name: string;
8580
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8581
+ }>]>, z.ZodUnknown>>;
8267
8582
  embedding_model: z.ZodString;
8268
8583
  bundle_key: z.ZodOptional<z.ZodString>;
8269
8584
  report_key: z.ZodOptional<z.ZodString>;
8270
8585
  topic_names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8271
8586
  generation_settings: z.ZodOptional<z.ZodObject<{
8272
- algorithm: z.ZodEnum<["hdbscan", "kmeans"]>;
8587
+ algorithm: z.ZodEnum<["hdbscan", "kmeans", "community"]>;
8273
8588
  dimension_reduction: z.ZodEnum<["umap", "pca", "none"]>;
8274
8589
  sample_size: z.ZodOptional<z.ZodNumber>;
8275
8590
  n_clusters: z.ZodOptional<z.ZodNumber>;
@@ -8278,7 +8593,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8278
8593
  hierarchy_threshold: z.ZodOptional<z.ZodNumber>;
8279
8594
  naming_model: z.ZodOptional<z.ZodString>;
8280
8595
  }, "strip", z.ZodTypeAny, {
8281
- algorithm: "hdbscan" | "kmeans";
8596
+ algorithm: "hdbscan" | "kmeans" | "community";
8282
8597
  dimension_reduction: "none" | "umap" | "pca";
8283
8598
  sample_size?: number | undefined;
8284
8599
  n_clusters?: number | undefined;
@@ -8287,7 +8602,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8287
8602
  hierarchy_threshold?: number | undefined;
8288
8603
  naming_model?: string | undefined;
8289
8604
  }, {
8290
- algorithm: "hdbscan" | "kmeans";
8605
+ algorithm: "hdbscan" | "kmeans" | "community";
8291
8606
  dimension_reduction: "none" | "umap" | "pca";
8292
8607
  sample_size?: number | undefined;
8293
8608
  n_clusters?: number | undefined;
@@ -8305,12 +8620,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8305
8620
  type: "topic_map";
8306
8621
  source_facet: string;
8307
8622
  embedding_model: string;
8308
- btql_filter?: string | undefined;
8623
+ source_facet_function?: {
8624
+ id: string;
8625
+ type: "function";
8626
+ version?: string | undefined;
8627
+ } | {
8628
+ type: "global";
8629
+ name: string;
8630
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
8631
+ } | undefined;
8309
8632
  bundle_key?: string | undefined;
8310
8633
  report_key?: string | undefined;
8311
8634
  topic_names?: Record<string, string> | undefined;
8312
8635
  generation_settings?: {
8313
- algorithm: "hdbscan" | "kmeans";
8636
+ algorithm: "hdbscan" | "kmeans" | "community";
8314
8637
  dimension_reduction: "none" | "umap" | "pca";
8315
8638
  sample_size?: number | undefined;
8316
8639
  n_clusters?: number | undefined;
@@ -8322,17 +8645,26 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8322
8645
  disable_reconciliation?: boolean | undefined;
8323
8646
  reconcile_mode?: "evolve" | "names_only" | undefined;
8324
8647
  distance_threshold?: number | undefined;
8648
+ btql_filter?: string | undefined;
8325
8649
  automation_btql_filter?: string | undefined;
8326
8650
  }, {
8327
8651
  type: "topic_map";
8328
8652
  source_facet: string;
8329
8653
  embedding_model: string;
8330
- btql_filter?: string | undefined;
8654
+ source_facet_function?: {
8655
+ id: string;
8656
+ type: "function";
8657
+ version?: string | undefined;
8658
+ } | {
8659
+ type: "global";
8660
+ name: string;
8661
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8662
+ } | undefined;
8331
8663
  bundle_key?: string | undefined;
8332
8664
  report_key?: string | undefined;
8333
8665
  topic_names?: Record<string, string> | undefined;
8334
8666
  generation_settings?: {
8335
- algorithm: "hdbscan" | "kmeans";
8667
+ algorithm: "hdbscan" | "kmeans" | "community";
8336
8668
  dimension_reduction: "none" | "umap" | "pca";
8337
8669
  sample_size?: number | undefined;
8338
8670
  n_clusters?: number | undefined;
@@ -8344,6 +8676,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
8344
8676
  disable_reconciliation?: boolean | undefined;
8345
8677
  reconcile_mode?: "evolve" | "names_only" | undefined;
8346
8678
  distance_threshold?: number | undefined;
8679
+ btql_filter?: string | undefined;
8347
8680
  automation_btql_filter?: string | undefined;
8348
8681
  }>, z.ZodUnknown>]>;
8349
8682
  declare const PromptData: z.ZodObject<{
@@ -9731,11 +10064,11 @@ declare const PromptData: z.ZodObject<{
9731
10064
  }, "strip", z.ZodTypeAny, {
9732
10065
  type: "global";
9733
10066
  name: string;
9734
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
10067
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
9735
10068
  }, {
9736
10069
  type: "global";
9737
10070
  name: string;
9738
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
10071
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
9739
10072
  }>]>, "many">, z.ZodNull]>>;
9740
10073
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
9741
10074
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -10013,6 +10346,15 @@ declare const PromptData: z.ZodObject<{
10013
10346
  type: "completion";
10014
10347
  content: string;
10015
10348
  } | null | undefined;
10349
+ preprocessor?: {
10350
+ id: string;
10351
+ type: "function";
10352
+ version?: string | undefined;
10353
+ } | {
10354
+ type: "global";
10355
+ name: string;
10356
+ function_type: "preprocessor";
10357
+ } | null | undefined;
10016
10358
  origin?: {
10017
10359
  project_id?: string | undefined;
10018
10360
  prompt_id?: string | undefined;
@@ -10033,17 +10375,8 @@ declare const PromptData: z.ZodObject<{
10033
10375
  } | {
10034
10376
  type: "global";
10035
10377
  name: string;
10036
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
10378
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
10037
10379
  })[] | 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;
10047
10380
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
10048
10381
  mcp?: Record<string, {
10049
10382
  id: string;
@@ -10287,6 +10620,15 @@ declare const PromptData: z.ZodObject<{
10287
10620
  type: "completion";
10288
10621
  content: string;
10289
10622
  } | null | undefined;
10623
+ preprocessor?: {
10624
+ id: string;
10625
+ type: "function";
10626
+ version?: string | undefined;
10627
+ } | {
10628
+ type: "global";
10629
+ name: string;
10630
+ function_type?: "preprocessor" | undefined;
10631
+ } | null | undefined;
10290
10632
  origin?: {
10291
10633
  project_id?: string | undefined;
10292
10634
  prompt_id?: string | undefined;
@@ -10307,17 +10649,8 @@ declare const PromptData: z.ZodObject<{
10307
10649
  } | {
10308
10650
  type: "global";
10309
10651
  name: string;
10310
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
10652
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
10311
10653
  })[] | 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;
10321
10654
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
10322
10655
  mcp?: Record<string, {
10323
10656
  id: string;
@@ -10357,11 +10690,11 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
10357
10690
  global_function: z.ZodString;
10358
10691
  function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
10359
10692
  }, "strip", z.ZodTypeAny, {
10360
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
10693
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
10361
10694
  global_function: string;
10362
10695
  }, {
10363
10696
  global_function: string;
10364
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
10697
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
10365
10698
  }>, z.ZodObject<{
10366
10699
  prompt_session_id: z.ZodString;
10367
10700
  prompt_session_function_id: z.ZodString;
@@ -10379,11 +10712,11 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
10379
10712
  runtime: z.ZodEnum<["node", "python", "browser", "quickjs"]>;
10380
10713
  version: z.ZodString;
10381
10714
  }, "strip", z.ZodTypeAny, {
10382
- runtime: "node" | "python" | "browser" | "quickjs";
10383
10715
  version: string;
10384
- }, {
10385
10716
  runtime: "node" | "python" | "browser" | "quickjs";
10717
+ }, {
10386
10718
  version: string;
10719
+ runtime: "node" | "python" | "browser" | "quickjs";
10387
10720
  }>;
10388
10721
  code: z.ZodString;
10389
10722
  function_type: z.ZodOptional<z.ZodIntersection<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>, z.ZodUnknown>>;
@@ -10391,19 +10724,19 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
10391
10724
  }, "strip", z.ZodTypeAny, {
10392
10725
  code: string;
10393
10726
  inline_context: {
10394
- runtime: "node" | "python" | "browser" | "quickjs";
10395
10727
  version: string;
10728
+ runtime: "node" | "python" | "browser" | "quickjs";
10396
10729
  };
10397
10730
  name?: string | null | undefined;
10398
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
10731
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
10399
10732
  }, {
10400
10733
  code: string;
10401
10734
  inline_context: {
10402
- runtime: "node" | "python" | "browser" | "quickjs";
10403
10735
  version: string;
10736
+ runtime: "node" | "python" | "browser" | "quickjs";
10404
10737
  };
10405
10738
  name?: string | null | undefined;
10406
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
10739
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
10407
10740
  }>, z.ZodObject<{
10408
10741
  inline_prompt: z.ZodOptional<z.ZodObject<{
10409
10742
  prompt: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -11790,11 +12123,11 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
11790
12123
  }, "strip", z.ZodTypeAny, {
11791
12124
  type: "global";
11792
12125
  name: string;
11793
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
12126
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
11794
12127
  }, {
11795
12128
  type: "global";
11796
12129
  name: string;
11797
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
12130
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
11798
12131
  }>]>, "many">, z.ZodNull]>>;
11799
12132
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
11800
12133
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -12072,6 +12405,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12072
12405
  type: "completion";
12073
12406
  content: string;
12074
12407
  } | null | undefined;
12408
+ preprocessor?: {
12409
+ id: string;
12410
+ type: "function";
12411
+ version?: string | undefined;
12412
+ } | {
12413
+ type: "global";
12414
+ name: string;
12415
+ function_type: "preprocessor";
12416
+ } | null | undefined;
12075
12417
  origin?: {
12076
12418
  project_id?: string | undefined;
12077
12419
  prompt_id?: string | undefined;
@@ -12092,17 +12434,8 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12092
12434
  } | {
12093
12435
  type: "global";
12094
12436
  name: string;
12095
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
12437
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
12096
12438
  })[] | 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;
12106
12439
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
12107
12440
  mcp?: Record<string, {
12108
12441
  id: string;
@@ -12346,6 +12679,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12346
12679
  type: "completion";
12347
12680
  content: string;
12348
12681
  } | null | undefined;
12682
+ preprocessor?: {
12683
+ id: string;
12684
+ type: "function";
12685
+ version?: string | undefined;
12686
+ } | {
12687
+ type: "global";
12688
+ name: string;
12689
+ function_type?: "preprocessor" | undefined;
12690
+ } | null | undefined;
12349
12691
  origin?: {
12350
12692
  project_id?: string | undefined;
12351
12693
  prompt_id?: string | undefined;
@@ -12366,17 +12708,8 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12366
12708
  } | {
12367
12709
  type: "global";
12368
12710
  name: string;
12369
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
12711
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
12370
12712
  })[] | 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;
12380
12713
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
12381
12714
  mcp?: Record<string, {
12382
12715
  id: string;
@@ -12394,7 +12727,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12394
12727
  function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
12395
12728
  name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
12396
12729
  }, "strip", z.ZodTypeAny, {
12397
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
12730
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
12398
12731
  inline_function: {} & {
12399
12732
  [k: string]: unknown;
12400
12733
  };
@@ -12630,6 +12963,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12630
12963
  type: "completion";
12631
12964
  content: string;
12632
12965
  } | null | undefined;
12966
+ preprocessor?: {
12967
+ id: string;
12968
+ type: "function";
12969
+ version?: string | undefined;
12970
+ } | {
12971
+ type: "global";
12972
+ name: string;
12973
+ function_type: "preprocessor";
12974
+ } | null | undefined;
12633
12975
  origin?: {
12634
12976
  project_id?: string | undefined;
12635
12977
  prompt_id?: string | undefined;
@@ -12650,17 +12992,8 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12650
12992
  } | {
12651
12993
  type: "global";
12652
12994
  name: string;
12653
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
12995
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
12654
12996
  })[] | 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;
12664
12997
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
12665
12998
  mcp?: Record<string, {
12666
12999
  id: string;
@@ -12679,7 +13012,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12679
13012
  [k: string]: unknown;
12680
13013
  };
12681
13014
  name?: string | null | undefined;
12682
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
13015
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
12683
13016
  inline_prompt?: {
12684
13017
  options?: {
12685
13018
  params?: z.objectInputType<{
@@ -12911,6 +13244,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12911
13244
  type: "completion";
12912
13245
  content: string;
12913
13246
  } | null | undefined;
13247
+ preprocessor?: {
13248
+ id: string;
13249
+ type: "function";
13250
+ version?: string | undefined;
13251
+ } | {
13252
+ type: "global";
13253
+ name: string;
13254
+ function_type?: "preprocessor" | undefined;
13255
+ } | null | undefined;
12914
13256
  origin?: {
12915
13257
  project_id?: string | undefined;
12916
13258
  prompt_id?: string | undefined;
@@ -12931,17 +13273,8 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
12931
13273
  } | {
12932
13274
  type: "global";
12933
13275
  name: string;
12934
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
13276
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
12935
13277
  })[] | 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;
12945
13278
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
12946
13279
  mcp?: Record<string, {
12947
13280
  id: string;
@@ -14341,11 +14674,11 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14341
14674
  }, "strip", z.ZodTypeAny, {
14342
14675
  type: "global";
14343
14676
  name: string;
14344
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
14677
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
14345
14678
  }, {
14346
14679
  type: "global";
14347
14680
  name: string;
14348
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
14681
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
14349
14682
  }>]>, "many">, z.ZodNull]>>;
14350
14683
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
14351
14684
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -14623,6 +14956,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14623
14956
  type: "completion";
14624
14957
  content: string;
14625
14958
  } | null | undefined;
14959
+ preprocessor?: {
14960
+ id: string;
14961
+ type: "function";
14962
+ version?: string | undefined;
14963
+ } | {
14964
+ type: "global";
14965
+ name: string;
14966
+ function_type: "preprocessor";
14967
+ } | null | undefined;
14626
14968
  origin?: {
14627
14969
  project_id?: string | undefined;
14628
14970
  prompt_id?: string | undefined;
@@ -14643,17 +14985,8 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14643
14985
  } | {
14644
14986
  type: "global";
14645
14987
  name: string;
14646
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
14988
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
14647
14989
  })[] | 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;
14657
14990
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
14658
14991
  mcp?: Record<string, {
14659
14992
  id: string;
@@ -14897,6 +15230,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14897
15230
  type: "completion";
14898
15231
  content: string;
14899
15232
  } | null | undefined;
15233
+ preprocessor?: {
15234
+ id: string;
15235
+ type: "function";
15236
+ version?: string | undefined;
15237
+ } | {
15238
+ type: "global";
15239
+ name: string;
15240
+ function_type?: "preprocessor" | undefined;
15241
+ } | null | undefined;
14900
15242
  origin?: {
14901
15243
  project_id?: string | undefined;
14902
15244
  prompt_id?: string | undefined;
@@ -14917,17 +15259,8 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14917
15259
  } | {
14918
15260
  type: "global";
14919
15261
  name: string;
14920
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
15262
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
14921
15263
  })[] | 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;
14931
15264
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
14932
15265
  mcp?: Record<string, {
14933
15266
  id: string;
@@ -14944,7 +15277,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
14944
15277
  function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
14945
15278
  name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
14946
15279
  }, "strip", z.ZodTypeAny, {
14947
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
15280
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
14948
15281
  inline_prompt: {
14949
15282
  options?: {
14950
15283
  params?: z.objectOutputType<{
@@ -15176,6 +15509,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
15176
15509
  type: "completion";
15177
15510
  content: string;
15178
15511
  } | null | undefined;
15512
+ preprocessor?: {
15513
+ id: string;
15514
+ type: "function";
15515
+ version?: string | undefined;
15516
+ } | {
15517
+ type: "global";
15518
+ name: string;
15519
+ function_type: "preprocessor";
15520
+ } | null | undefined;
15179
15521
  origin?: {
15180
15522
  project_id?: string | undefined;
15181
15523
  prompt_id?: string | undefined;
@@ -15196,17 +15538,8 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
15196
15538
  } | {
15197
15539
  type: "global";
15198
15540
  name: string;
15199
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
15541
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
15200
15542
  })[] | 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;
15210
15543
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
15211
15544
  mcp?: Record<string, {
15212
15545
  id: string;
@@ -15453,6 +15786,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
15453
15786
  type: "completion";
15454
15787
  content: string;
15455
15788
  } | null | undefined;
15789
+ preprocessor?: {
15790
+ id: string;
15791
+ type: "function";
15792
+ version?: string | undefined;
15793
+ } | {
15794
+ type: "global";
15795
+ name: string;
15796
+ function_type?: "preprocessor" | undefined;
15797
+ } | null | undefined;
15456
15798
  origin?: {
15457
15799
  project_id?: string | undefined;
15458
15800
  prompt_id?: string | undefined;
@@ -15473,17 +15815,8 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
15473
15815
  } | {
15474
15816
  type: "global";
15475
15817
  name: string;
15476
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
15818
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
15477
15819
  })[] | 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;
15487
15820
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
15488
15821
  mcp?: Record<string, {
15489
15822
  id: string;
@@ -15498,7 +15831,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
15498
15831
  }> | null | undefined;
15499
15832
  };
15500
15833
  name?: string | null | undefined;
15501
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
15834
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
15502
15835
  }>]>;
15503
15836
  type FunctionIdType = z.infer<typeof FunctionId>;
15504
15837
  declare const GitMetadataSettings: z.ZodObject<{
@@ -15506,10 +15839,10 @@ declare const GitMetadataSettings: z.ZodObject<{
15506
15839
  fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
15507
15840
  }, "strip", z.ZodTypeAny, {
15508
15841
  collect: "some" | "none" | "all";
15509
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
15842
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
15510
15843
  }, {
15511
15844
  collect: "some" | "none" | "all";
15512
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
15845
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
15513
15846
  }>;
15514
15847
  type GitMetadataSettingsType = z.infer<typeof GitMetadataSettings>;
15515
15848
  declare const IfExists: z.ZodEnum<["error", "ignore", "replace"]>;
@@ -16931,11 +17264,11 @@ declare const Prompt$1: z.ZodObject<{
16931
17264
  }, "strip", z.ZodTypeAny, {
16932
17265
  type: "global";
16933
17266
  name: string;
16934
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
17267
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
16935
17268
  }, {
16936
17269
  type: "global";
16937
17270
  name: string;
16938
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
17271
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
16939
17272
  }>]>, "many">, z.ZodNull]>>;
16940
17273
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
16941
17274
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -17213,6 +17546,15 @@ declare const Prompt$1: z.ZodObject<{
17213
17546
  type: "completion";
17214
17547
  content: string;
17215
17548
  } | null | undefined;
17549
+ preprocessor?: {
17550
+ id: string;
17551
+ type: "function";
17552
+ version?: string | undefined;
17553
+ } | {
17554
+ type: "global";
17555
+ name: string;
17556
+ function_type: "preprocessor";
17557
+ } | null | undefined;
17216
17558
  origin?: {
17217
17559
  project_id?: string | undefined;
17218
17560
  prompt_id?: string | undefined;
@@ -17233,17 +17575,8 @@ declare const Prompt$1: z.ZodObject<{
17233
17575
  } | {
17234
17576
  type: "global";
17235
17577
  name: string;
17236
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
17578
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
17237
17579
  })[] | 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;
17247
17580
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
17248
17581
  mcp?: Record<string, {
17249
17582
  id: string;
@@ -17487,6 +17820,15 @@ declare const Prompt$1: z.ZodObject<{
17487
17820
  type: "completion";
17488
17821
  content: string;
17489
17822
  } | null | undefined;
17823
+ preprocessor?: {
17824
+ id: string;
17825
+ type: "function";
17826
+ version?: string | undefined;
17827
+ } | {
17828
+ type: "global";
17829
+ name: string;
17830
+ function_type?: "preprocessor" | undefined;
17831
+ } | null | undefined;
17490
17832
  origin?: {
17491
17833
  project_id?: string | undefined;
17492
17834
  prompt_id?: string | undefined;
@@ -17507,17 +17849,8 @@ declare const Prompt$1: z.ZodObject<{
17507
17849
  } | {
17508
17850
  type: "global";
17509
17851
  name: string;
17510
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
17852
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
17511
17853
  })[] | 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;
17521
17854
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
17522
17855
  mcp?: Record<string, {
17523
17856
  id: string;
@@ -17539,12 +17872,13 @@ declare const Prompt$1: z.ZodObject<{
17539
17872
  id: string;
17540
17873
  project_id: string;
17541
17874
  log_id: "p";
17542
- org_id: string;
17543
17875
  name: string;
17544
17876
  slug: string;
17877
+ org_id: string;
17545
17878
  created?: string | null | undefined;
17546
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
17547
17879
  description?: string | null | undefined;
17880
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
17881
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
17548
17882
  tags?: string[] | null | undefined;
17549
17883
  prompt_data?: {
17550
17884
  options?: {
@@ -17777,6 +18111,15 @@ declare const Prompt$1: z.ZodObject<{
17777
18111
  type: "completion";
17778
18112
  content: string;
17779
18113
  } | null | undefined;
18114
+ preprocessor?: {
18115
+ id: string;
18116
+ type: "function";
18117
+ version?: string | undefined;
18118
+ } | {
18119
+ type: "global";
18120
+ name: string;
18121
+ function_type: "preprocessor";
18122
+ } | null | undefined;
17780
18123
  origin?: {
17781
18124
  project_id?: string | undefined;
17782
18125
  prompt_id?: string | undefined;
@@ -17797,17 +18140,8 @@ declare const Prompt$1: z.ZodObject<{
17797
18140
  } | {
17798
18141
  type: "global";
17799
18142
  name: string;
17800
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
18143
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
17801
18144
  })[] | 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;
17811
18145
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
17812
18146
  mcp?: Record<string, {
17813
18147
  id: string;
@@ -17821,18 +18155,18 @@ declare const Prompt$1: z.ZodObject<{
17821
18155
  enabled_tools?: string[] | null | undefined;
17822
18156
  }> | null | undefined;
17823
18157
  } | null | undefined;
17824
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
17825
18158
  }, {
17826
18159
  _xact_id: string;
17827
18160
  id: string;
17828
18161
  project_id: string;
17829
18162
  log_id: "p";
17830
- org_id: string;
17831
18163
  name: string;
17832
18164
  slug: string;
18165
+ org_id: string;
17833
18166
  created?: string | null | undefined;
17834
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
17835
18167
  description?: string | null | undefined;
18168
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
18169
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
17836
18170
  tags?: string[] | null | undefined;
17837
18171
  prompt_data?: {
17838
18172
  options?: {
@@ -18065,6 +18399,15 @@ declare const Prompt$1: z.ZodObject<{
18065
18399
  type: "completion";
18066
18400
  content: string;
18067
18401
  } | null | undefined;
18402
+ preprocessor?: {
18403
+ id: string;
18404
+ type: "function";
18405
+ version?: string | undefined;
18406
+ } | {
18407
+ type: "global";
18408
+ name: string;
18409
+ function_type?: "preprocessor" | undefined;
18410
+ } | null | undefined;
18068
18411
  origin?: {
18069
18412
  project_id?: string | undefined;
18070
18413
  prompt_id?: string | undefined;
@@ -18085,17 +18428,8 @@ declare const Prompt$1: z.ZodObject<{
18085
18428
  } | {
18086
18429
  type: "global";
18087
18430
  name: string;
18088
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
18431
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
18089
18432
  })[] | 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;
18099
18433
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
18100
18434
  mcp?: Record<string, {
18101
18435
  id: string;
@@ -18109,7 +18443,6 @@ declare const Prompt$1: z.ZodObject<{
18109
18443
  enabled_tools?: string[] | null | undefined;
18110
18444
  }> | null | undefined;
18111
18445
  } | null | undefined;
18112
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
18113
18446
  }>;
18114
18447
  type PromptType = z.infer<typeof Prompt$1>;
18115
18448
  declare const PromptSessionEvent: z.ZodObject<{
@@ -18133,11 +18466,11 @@ declare const PromptSessionEvent: z.ZodObject<{
18133
18466
  prompt_session_id: string;
18134
18467
  project_id: string;
18135
18468
  function_data?: unknown;
18136
- _pagination_key?: string | null | undefined;
18469
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
18137
18470
  tags?: string[] | null | undefined;
18471
+ _pagination_key?: string | null | undefined;
18138
18472
  completion?: unknown;
18139
18473
  prompt_data?: unknown;
18140
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
18141
18474
  prompt_session_data?: unknown;
18142
18475
  object_data?: unknown;
18143
18476
  }, {
@@ -18147,11 +18480,11 @@ declare const PromptSessionEvent: z.ZodObject<{
18147
18480
  prompt_session_id: string;
18148
18481
  project_id: string;
18149
18482
  function_data?: unknown;
18150
- _pagination_key?: string | null | undefined;
18483
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
18151
18484
  tags?: string[] | null | undefined;
18485
+ _pagination_key?: string | null | undefined;
18152
18486
  completion?: unknown;
18153
18487
  prompt_data?: unknown;
18154
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
18155
18488
  prompt_session_data?: unknown;
18156
18489
  object_data?: unknown;
18157
18490
  }>;
@@ -18185,12 +18518,12 @@ declare const SSEProgressEventData: z.ZodObject<{
18185
18518
  data: z.ZodString;
18186
18519
  }, "strip", z.ZodTypeAny, {
18187
18520
  id: string;
18188
- object_type: "prompt" | "tool" | "parameters" | "task" | "scorer" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | "workflow";
18521
+ object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
18189
18522
  name: string;
18190
18523
  data: string;
18191
18524
  event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
18192
- format: "code" | "llm" | "global" | "graph" | "topic_map";
18193
- output_type: "score" | "completion" | "any" | "facet" | "classification";
18525
+ format: "code" | "llm" | "global" | "topic_map" | "graph";
18526
+ output_type: "facet" | "score" | "completion" | "classification" | "any";
18194
18527
  origin?: {
18195
18528
  id: string;
18196
18529
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
@@ -18200,12 +18533,12 @@ declare const SSEProgressEventData: z.ZodObject<{
18200
18533
  } | null | undefined;
18201
18534
  }, {
18202
18535
  id: string;
18203
- object_type: "prompt" | "tool" | "parameters" | "task" | "scorer" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | "workflow";
18536
+ object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
18204
18537
  name: string;
18205
18538
  data: string;
18206
18539
  event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
18207
- format: "code" | "llm" | "global" | "graph" | "topic_map";
18208
- output_type: "score" | "completion" | "any" | "facet" | "classification";
18540
+ format: "code" | "llm" | "global" | "topic_map" | "graph";
18541
+ output_type: "facet" | "score" | "completion" | "classification" | "any";
18209
18542
  origin?: {
18210
18543
  id: string;
18211
18544
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
@@ -18368,7 +18701,15 @@ interface GlobalHookHandlers<M = any> {
18368
18701
  asyncEnd?: (context: M, name: string) => void;
18369
18702
  error?: (context: M, name: string) => void;
18370
18703
  }
18371
- interface GlobalTracingChannel<M = any> extends GlobalTracingChannelCollection<M> {
18704
+ type GlobalInvocationTarget = (this: any, ...args: any[]) => any;
18705
+ type GlobalInvocationInterceptor<A = any> = (target: GlobalInvocationTarget, thisArg: any, args: any[], additional: A) => any;
18706
+ interface GlobalInvocationHook<A = any> {
18707
+ readonly hasInterceptors: boolean;
18708
+ intercept(interceptor: GlobalInvocationInterceptor<A>): () => void;
18709
+ invoke<F extends GlobalInvocationTarget>(target: F, thisArg: ThisParameterType<F>, args: Parameters<F>, additional: A): ReturnType<F>;
18710
+ }
18711
+ type GlobalTraceOperator = "traceCallback" | "tracePromise" | "traceSync";
18712
+ interface GlobalTracingChannel<M = any, A = any> extends GlobalTracingChannelCollection<M>, GlobalInvocationHook<A> {
18372
18713
  readonly start: GlobalHookChannel<M>;
18373
18714
  readonly end: GlobalHookChannel<M>;
18374
18715
  readonly asyncStart: GlobalHookChannel<M>;
@@ -18380,6 +18721,7 @@ interface GlobalTracingChannel<M = any> extends GlobalTracingChannelCollection<M
18380
18721
  traceSync<F extends (...args: any[]) => any>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
18381
18722
  tracePromise<F extends (...args: any[]) => PromiseLike<any>>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
18382
18723
  traceCallback<F extends (...args: any[]) => any>(fn: F, position?: number, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
18724
+ traceInvocation<F extends GlobalInvocationTarget>(operator: GlobalTraceOperator, target: F, thisArg: ThisParameterType<F>, args: Parameters<F>, additional: A, callbackIndex?: number): ReturnType<F>;
18383
18725
  }
18384
18726
 
18385
18727
  interface CallerLocation {
@@ -18410,7 +18752,7 @@ interface Common {
18410
18752
  mkdir?: (path: string, opts?: {
18411
18753
  recursive?: boolean;
18412
18754
  }) => Promise<string | undefined>;
18413
- writeFile?: (filename: string, data: string) => Promise<void>;
18755
+ writeFile?: (filename: string, data: string | Uint8Array) => Promise<void>;
18414
18756
  readFile?: (filename: string) => Promise<Uint8Array>;
18415
18757
  readdir?: (path: string) => Promise<string[]>;
18416
18758
  utimes?: (path: string, atime: Date, mtime: Date) => Promise<void>;
@@ -20700,8 +21042,8 @@ declare const parametersRowSchema: z.ZodObject<{
20700
21042
  name: string;
20701
21043
  slug: string;
20702
21044
  function_type: "parameters";
20703
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
20704
21045
  description?: string | null | undefined;
21046
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
20705
21047
  }, {
20706
21048
  _xact_id: string;
20707
21049
  id: string;
@@ -20714,8 +21056,8 @@ declare const parametersRowSchema: z.ZodObject<{
20714
21056
  name: string;
20715
21057
  slug: string;
20716
21058
  function_type: "parameters";
20717
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
20718
21059
  description?: string | null | undefined;
21060
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
20719
21061
  }>;
20720
21062
  type ParametersRow = z.infer<typeof parametersRowSchema>;
20721
21063
 
@@ -20732,9 +21074,11 @@ type SetCurrentArg = {
20732
21074
  };
20733
21075
  type StartSpanEventArgs = ExperimentLogPartialArgs & Partial<IdField>;
20734
21076
  declare const INITIAL_SPAN_WRITE_AS_MERGE: unique symbol;
21077
+ declare const RESUME_SPAN_WITHOUT_INITIAL_WRITE: unique symbol;
20735
21078
  declare const INTERNAL_SPAN_CONTEXT: unique symbol;
20736
21079
  type InitialSpanWriteAsMergeArg = {
20737
21080
  readonly [INITIAL_SPAN_WRITE_AS_MERGE]?: true;
21081
+ readonly [RESUME_SPAN_WITHOUT_INITIAL_WRITE]?: true;
20738
21082
  };
20739
21083
  type InternalSpanContextArg = {
20740
21084
  readonly [INTERNAL_SPAN_CONTEXT]?: Record<string, unknown>;
@@ -20992,10 +21336,10 @@ declare const loginSchema: z.ZodObject<{
20992
21336
  fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
20993
21337
  }, "strip", z.ZodTypeAny, {
20994
21338
  collect: "some" | "none" | "all";
20995
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
21339
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
20996
21340
  }, {
20997
21341
  collect: "some" | "none" | "all";
20998
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
21342
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
20999
21343
  }>>>;
21000
21344
  debugLogLevel: z.ZodOptional<z.ZodEnum<["error", "warn", "info", "debug"]>>;
21001
21345
  debugLogLevelDisabled: z.ZodOptional<z.ZodBoolean>;
@@ -21009,7 +21353,7 @@ declare const loginSchema: z.ZodObject<{
21009
21353
  orgId?: string | null | undefined;
21010
21354
  gitMetadataSettings?: {
21011
21355
  collect: "some" | "none" | "all";
21012
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
21356
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
21013
21357
  } | null | undefined;
21014
21358
  debugLogLevel?: "error" | "warn" | "info" | "debug" | undefined;
21015
21359
  debugLogLevelDisabled?: boolean | undefined;
@@ -21023,7 +21367,7 @@ declare const loginSchema: z.ZodObject<{
21023
21367
  orgId?: string | null | undefined;
21024
21368
  gitMetadataSettings?: {
21025
21369
  collect: "some" | "none" | "all";
21026
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
21370
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
21027
21371
  } | null | undefined;
21028
21372
  debugLogLevel?: "error" | "warn" | "info" | "debug" | undefined;
21029
21373
  debugLogLevelDisabled?: boolean | undefined;
@@ -23039,12 +23383,12 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
23039
23383
  data: z.ZodString;
23040
23384
  }, "strip", z.ZodTypeAny, {
23041
23385
  id: string;
23042
- object_type: "prompt" | "tool" | "parameters" | "task" | "scorer" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | "workflow";
23386
+ object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
23043
23387
  name: string;
23044
23388
  data: string;
23045
23389
  event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
23046
- format: "code" | "llm" | "global" | "graph" | "topic_map";
23047
- output_type: "score" | "completion" | "any" | "facet" | "classification";
23390
+ format: "code" | "llm" | "global" | "topic_map" | "graph";
23391
+ output_type: "facet" | "score" | "completion" | "classification" | "any";
23048
23392
  origin?: {
23049
23393
  id: string;
23050
23394
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
@@ -23054,12 +23398,12 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
23054
23398
  } | null | undefined;
23055
23399
  }, {
23056
23400
  id: string;
23057
- object_type: "prompt" | "tool" | "parameters" | "task" | "scorer" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | "workflow";
23401
+ object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
23058
23402
  name: string;
23059
23403
  data: string;
23060
23404
  event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
23061
- format: "code" | "llm" | "global" | "graph" | "topic_map";
23062
- output_type: "score" | "completion" | "any" | "facet" | "classification";
23405
+ format: "code" | "llm" | "global" | "topic_map" | "graph";
23406
+ output_type: "facet" | "score" | "completion" | "classification" | "any";
23063
23407
  origin?: {
23064
23408
  id: string;
23065
23409
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
@@ -23072,12 +23416,12 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
23072
23416
  type: "progress";
23073
23417
  data: {
23074
23418
  id: string;
23075
- object_type: "prompt" | "tool" | "parameters" | "task" | "scorer" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | "workflow";
23419
+ object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
23076
23420
  name: string;
23077
23421
  data: string;
23078
23422
  event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
23079
- format: "code" | "llm" | "global" | "graph" | "topic_map";
23080
- output_type: "score" | "completion" | "any" | "facet" | "classification";
23423
+ format: "code" | "llm" | "global" | "topic_map" | "graph";
23424
+ output_type: "facet" | "score" | "completion" | "classification" | "any";
23081
23425
  origin?: {
23082
23426
  id: string;
23083
23427
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
@@ -23090,12 +23434,12 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
23090
23434
  type: "progress";
23091
23435
  data: {
23092
23436
  id: string;
23093
- object_type: "prompt" | "tool" | "parameters" | "task" | "scorer" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | "workflow";
23437
+ object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
23094
23438
  name: string;
23095
23439
  data: string;
23096
23440
  event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
23097
- format: "code" | "llm" | "global" | "graph" | "topic_map";
23098
- output_type: "score" | "completion" | "any" | "facet" | "classification";
23441
+ format: "code" | "llm" | "global" | "topic_map" | "graph";
23442
+ output_type: "facet" | "score" | "completion" | "classification" | "any";
23099
23443
  origin?: {
23100
23444
  id: string;
23101
23445
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
@@ -24050,11 +24394,26 @@ declare function braintrustEveInstrumentation(options: {
24050
24394
  setup?: EveInstrumentationDefinition["setup"];
24051
24395
  }): EveInstrumentationDefinition;
24052
24396
 
24397
+ /**
24398
+ * Collect a stream returned by `anthropic.beta.sessions.events.stream()` or
24399
+ * `anthropic.beta.sessions.threads.events.stream()`.
24400
+ *
24401
+ * The stream method must be auto-instrumented or called through a client
24402
+ * wrapped with `wrapAnthropic()`. Calling this function opts the stream into
24403
+ * Braintrust span collection and returns the original stream unchanged.
24404
+ *
24405
+ * @param stream The resolved Anthropic Sessions event stream.
24406
+ * @returns The same stream object.
24407
+ */
24408
+ declare function collectAnthropicSession<T extends object>(stream: T): T;
24409
+
24053
24410
  /**
24054
24411
  * Wrap an `Anthropic` object (created with `new Anthropic(...)`) so calls emit
24055
24412
  * tracing-channel events that Braintrust plugins can consume.
24056
24413
  *
24057
- * Currently, this only supports the `v4` API.
24414
+ * Currently, this only supports the `v4` API. Sessions streams are eligible
24415
+ * for collection only after being passed to `collectAnthropicSession()`;
24416
+ * wrapping and consuming a Sessions stream alone does not emit spans.
24058
24417
  *
24059
24418
  * @param anthropic
24060
24419
  * @returns The wrapped `Anthropic` object.
@@ -24193,6 +24552,20 @@ declare function wrapMastraAgent<T>(agent: T, _options?: {
24193
24552
  */
24194
24553
  declare function wrapClaudeAgentSDK<T extends object>(sdk: T): T;
24195
24554
 
24555
+ /**
24556
+ * Adds Braintrust tracing to an `@cloudflare/think` module when build-time
24557
+ * auto-instrumentation is unavailable.
24558
+ *
24559
+ * @example
24560
+ * ```ts
24561
+ * import * as cloudflareThink from "@cloudflare/think";
24562
+ * import { wrapCloudflareThink } from "braintrust";
24563
+ *
24564
+ * const { Think } = wrapCloudflareThink(cloudflareThink);
24565
+ * ```
24566
+ */
24567
+ declare function wrapCloudflareThink<T>(sdk: T): T;
24568
+
24196
24569
  /**
24197
24570
  * Wraps the OpenAI Codex TypeScript SDK with Braintrust tracing. The wrapper
24198
24571
  * emits diagnostics-channel events; the OpenAI Codex plugin owns span lifecycle.
@@ -24207,7 +24580,7 @@ declare function wrapCursorSDK<T>(sdk: T): T;
24207
24580
 
24208
24581
  /**
24209
24582
  * Wraps the Pi Coding Agent SDK with Braintrust tracing. The wrapper emits
24210
- * diagnostics-channel events; the Pi Coding Agent plugin owns span lifecycle.
24583
+ * instrumentation hook calls; the Pi Coding Agent plugin owns span lifecycle.
24211
24584
  */
24212
24585
  declare function wrapPiCodingAgentSDK<T>(sdk: T): T;
24213
24586
 
@@ -24478,12 +24851,24 @@ declare function wrapOpenRouter<T>(openrouter: T): T;
24478
24851
  */
24479
24852
  declare function wrapMistral<T>(mistral: T): T;
24480
24853
 
24854
+ /**
24855
+ * Wrap an Ollama client so generation and embedding calls emit Braintrust
24856
+ * diagnostics-channel events.
24857
+ */
24858
+ declare function wrapOllama<T>(ollama: T): T;
24859
+
24481
24860
  /**
24482
24861
  * Wrap a Cohere client so method calls emit diagnostics-channel events that
24483
24862
  * Braintrust plugins can consume.
24484
24863
  */
24485
24864
  declare function wrapCohere<T>(cohere: T): T;
24486
24865
 
24866
+ /**
24867
+ * Wrap a Voyage AI client so method calls pass through the Braintrust
24868
+ * instrumentation hooks.
24869
+ */
24870
+ declare function wrapVoyageAI<T>(client: T): T;
24871
+
24487
24872
  /**
24488
24873
  * Wrap a Groq client (created with `new Groq(...)`) with Braintrust tracing.
24489
24874
  */
@@ -29927,11 +30312,11 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
29927
30312
  }, "strip", z.ZodTypeAny, {
29928
30313
  type: "global";
29929
30314
  name: string;
29930
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
30315
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
29931
30316
  }, {
29932
30317
  type: "global";
29933
30318
  name: string;
29934
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
30319
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
29935
30320
  }>]>, "many">, z.ZodNull]>>;
29936
30321
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
29937
30322
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -30209,6 +30594,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30209
30594
  type: "completion";
30210
30595
  content: string;
30211
30596
  } | null | undefined;
30597
+ preprocessor?: {
30598
+ id: string;
30599
+ type: "function";
30600
+ version?: string | undefined;
30601
+ } | {
30602
+ type: "global";
30603
+ name: string;
30604
+ function_type: "preprocessor";
30605
+ } | null | undefined;
30212
30606
  origin?: {
30213
30607
  project_id?: string | undefined;
30214
30608
  prompt_id?: string | undefined;
@@ -30229,17 +30623,8 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30229
30623
  } | {
30230
30624
  type: "global";
30231
30625
  name: string;
30232
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
30626
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
30233
30627
  })[] | 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;
30243
30628
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
30244
30629
  mcp?: Record<string, {
30245
30630
  id: string;
@@ -30483,6 +30868,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30483
30868
  type: "completion";
30484
30869
  content: string;
30485
30870
  } | null | undefined;
30871
+ preprocessor?: {
30872
+ id: string;
30873
+ type: "function";
30874
+ version?: string | undefined;
30875
+ } | {
30876
+ type: "global";
30877
+ name: string;
30878
+ function_type?: "preprocessor" | undefined;
30879
+ } | null | undefined;
30486
30880
  origin?: {
30487
30881
  project_id?: string | undefined;
30488
30882
  prompt_id?: string | undefined;
@@ -30503,17 +30897,8 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30503
30897
  } | {
30504
30898
  type: "global";
30505
30899
  name: string;
30506
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
30900
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
30507
30901
  })[] | 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;
30517
30902
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
30518
30903
  mcp?: Record<string, {
30519
30904
  id: string;
@@ -30762,6 +31147,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30762
31147
  type: "completion";
30763
31148
  content: string;
30764
31149
  } | null | undefined;
31150
+ preprocessor?: {
31151
+ id: string;
31152
+ type: "function";
31153
+ version?: string | undefined;
31154
+ } | {
31155
+ type: "global";
31156
+ name: string;
31157
+ function_type: "preprocessor";
31158
+ } | null | undefined;
30765
31159
  origin?: {
30766
31160
  project_id?: string | undefined;
30767
31161
  prompt_id?: string | undefined;
@@ -30782,17 +31176,8 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
30782
31176
  } | {
30783
31177
  type: "global";
30784
31178
  name: string;
30785
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
31179
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
30786
31180
  })[] | 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;
30796
31181
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
30797
31182
  mcp?: Record<string, {
30798
31183
  id: string;
@@ -31040,6 +31425,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
31040
31425
  type: "completion";
31041
31426
  content: string;
31042
31427
  } | null | undefined;
31428
+ preprocessor?: {
31429
+ id: string;
31430
+ type: "function";
31431
+ version?: string | undefined;
31432
+ } | {
31433
+ type: "global";
31434
+ name: string;
31435
+ function_type?: "preprocessor" | undefined;
31436
+ } | null | undefined;
31043
31437
  origin?: {
31044
31438
  project_id?: string | undefined;
31045
31439
  prompt_id?: string | undefined;
@@ -31060,17 +31454,8 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
31060
31454
  } | {
31061
31455
  type: "global";
31062
31456
  name: string;
31063
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
31457
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
31064
31458
  })[] | 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;
31074
31459
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
31075
31460
  mcp?: Record<string, {
31076
31461
  id: string;
@@ -32590,11 +32975,11 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32590
32975
  }, "strip", z.ZodTypeAny, {
32591
32976
  type: "global";
32592
32977
  name: string;
32593
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
32978
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
32594
32979
  }, {
32595
32980
  type: "global";
32596
32981
  name: string;
32597
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
32982
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
32598
32983
  }>]>, "many">, z.ZodNull]>>;
32599
32984
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
32600
32985
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -32872,6 +33257,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32872
33257
  type: "completion";
32873
33258
  content: string;
32874
33259
  } | null | undefined;
33260
+ preprocessor?: {
33261
+ id: string;
33262
+ type: "function";
33263
+ version?: string | undefined;
33264
+ } | {
33265
+ type: "global";
33266
+ name: string;
33267
+ function_type: "preprocessor";
33268
+ } | null | undefined;
32875
33269
  origin?: {
32876
33270
  project_id?: string | undefined;
32877
33271
  prompt_id?: string | undefined;
@@ -32892,17 +33286,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
32892
33286
  } | {
32893
33287
  type: "global";
32894
33288
  name: string;
32895
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
33289
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
32896
33290
  })[] | 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;
32906
33291
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
32907
33292
  mcp?: Record<string, {
32908
33293
  id: string;
@@ -33146,6 +33531,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33146
33531
  type: "completion";
33147
33532
  content: string;
33148
33533
  } | null | undefined;
33534
+ preprocessor?: {
33535
+ id: string;
33536
+ type: "function";
33537
+ version?: string | undefined;
33538
+ } | {
33539
+ type: "global";
33540
+ name: string;
33541
+ function_type?: "preprocessor" | undefined;
33542
+ } | null | undefined;
33149
33543
  origin?: {
33150
33544
  project_id?: string | undefined;
33151
33545
  prompt_id?: string | undefined;
@@ -33166,17 +33560,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33166
33560
  } | {
33167
33561
  type: "global";
33168
33562
  name: string;
33169
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
33563
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
33170
33564
  })[] | 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;
33180
33565
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
33181
33566
  mcp?: Record<string, {
33182
33567
  id: string;
@@ -33425,6 +33810,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33425
33810
  type: "completion";
33426
33811
  content: string;
33427
33812
  } | null | undefined;
33813
+ preprocessor?: {
33814
+ id: string;
33815
+ type: "function";
33816
+ version?: string | undefined;
33817
+ } | {
33818
+ type: "global";
33819
+ name: string;
33820
+ function_type: "preprocessor";
33821
+ } | null | undefined;
33428
33822
  origin?: {
33429
33823
  project_id?: string | undefined;
33430
33824
  prompt_id?: string | undefined;
@@ -33445,17 +33839,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33445
33839
  } | {
33446
33840
  type: "global";
33447
33841
  name: string;
33448
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
33842
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
33449
33843
  })[] | 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;
33459
33844
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
33460
33845
  mcp?: Record<string, {
33461
33846
  id: string;
@@ -33703,6 +34088,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33703
34088
  type: "completion";
33704
34089
  content: string;
33705
34090
  } | null | undefined;
34091
+ preprocessor?: {
34092
+ id: string;
34093
+ type: "function";
34094
+ version?: string | undefined;
34095
+ } | {
34096
+ type: "global";
34097
+ name: string;
34098
+ function_type?: "preprocessor" | undefined;
34099
+ } | null | undefined;
33706
34100
  origin?: {
33707
34101
  project_id?: string | undefined;
33708
34102
  prompt_id?: string | undefined;
@@ -33723,17 +34117,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
33723
34117
  } | {
33724
34118
  type: "global";
33725
34119
  name: string;
33726
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
34120
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
33727
34121
  })[] | 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;
33737
34122
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
33738
34123
  mcp?: Record<string, {
33739
34124
  id: string;
@@ -34012,6 +34397,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
34012
34397
  type: "completion";
34013
34398
  content: string;
34014
34399
  } | null | undefined;
34400
+ preprocessor?: {
34401
+ id: string;
34402
+ type: "function";
34403
+ version?: string | undefined;
34404
+ } | {
34405
+ type: "global";
34406
+ name: string;
34407
+ function_type: "preprocessor";
34408
+ } | null | undefined;
34015
34409
  origin?: {
34016
34410
  project_id?: string | undefined;
34017
34411
  prompt_id?: string | undefined;
@@ -34032,17 +34426,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
34032
34426
  } | {
34033
34427
  type: "global";
34034
34428
  name: string;
34035
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
34429
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
34036
34430
  })[] | 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;
34046
34431
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
34047
34432
  mcp?: Record<string, {
34048
34433
  id: string;
@@ -34303,6 +34688,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
34303
34688
  type: "completion";
34304
34689
  content: string;
34305
34690
  } | null | undefined;
34691
+ preprocessor?: {
34692
+ id: string;
34693
+ type: "function";
34694
+ version?: string | undefined;
34695
+ } | {
34696
+ type: "global";
34697
+ name: string;
34698
+ function_type?: "preprocessor" | undefined;
34699
+ } | null | undefined;
34306
34700
  origin?: {
34307
34701
  project_id?: string | undefined;
34308
34702
  prompt_id?: string | undefined;
@@ -34323,17 +34717,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
34323
34717
  } | {
34324
34718
  type: "global";
34325
34719
  name: string;
34326
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
34720
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
34327
34721
  })[] | 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;
34337
34722
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
34338
34723
  mcp?: Record<string, {
34339
34724
  id: string;
@@ -35745,11 +36130,11 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
35745
36130
  }, "strip", z.ZodTypeAny, {
35746
36131
  type: "global";
35747
36132
  name: string;
35748
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
36133
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
35749
36134
  }, {
35750
36135
  type: "global";
35751
36136
  name: string;
35752
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
36137
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
35753
36138
  }>]>, "many">, z.ZodNull]>>;
35754
36139
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
35755
36140
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -36027,6 +36412,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36027
36412
  type: "completion";
36028
36413
  content: string;
36029
36414
  } | null | undefined;
36415
+ preprocessor?: {
36416
+ id: string;
36417
+ type: "function";
36418
+ version?: string | undefined;
36419
+ } | {
36420
+ type: "global";
36421
+ name: string;
36422
+ function_type: "preprocessor";
36423
+ } | null | undefined;
36030
36424
  origin?: {
36031
36425
  project_id?: string | undefined;
36032
36426
  prompt_id?: string | undefined;
@@ -36047,17 +36441,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36047
36441
  } | {
36048
36442
  type: "global";
36049
36443
  name: string;
36050
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
36444
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
36051
36445
  })[] | 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;
36061
36446
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
36062
36447
  mcp?: Record<string, {
36063
36448
  id: string;
@@ -36301,6 +36686,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36301
36686
  type: "completion";
36302
36687
  content: string;
36303
36688
  } | null | undefined;
36689
+ preprocessor?: {
36690
+ id: string;
36691
+ type: "function";
36692
+ version?: string | undefined;
36693
+ } | {
36694
+ type: "global";
36695
+ name: string;
36696
+ function_type?: "preprocessor" | undefined;
36697
+ } | null | undefined;
36304
36698
  origin?: {
36305
36699
  project_id?: string | undefined;
36306
36700
  prompt_id?: string | undefined;
@@ -36321,17 +36715,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36321
36715
  } | {
36322
36716
  type: "global";
36323
36717
  name: string;
36324
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
36718
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
36325
36719
  })[] | 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;
36335
36720
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
36336
36721
  mcp?: Record<string, {
36337
36722
  id: string;
@@ -36580,6 +36965,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36580
36965
  type: "completion";
36581
36966
  content: string;
36582
36967
  } | null | undefined;
36968
+ preprocessor?: {
36969
+ id: string;
36970
+ type: "function";
36971
+ version?: string | undefined;
36972
+ } | {
36973
+ type: "global";
36974
+ name: string;
36975
+ function_type: "preprocessor";
36976
+ } | null | undefined;
36583
36977
  origin?: {
36584
36978
  project_id?: string | undefined;
36585
36979
  prompt_id?: string | undefined;
@@ -36600,17 +36994,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36600
36994
  } | {
36601
36995
  type: "global";
36602
36996
  name: string;
36603
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
36997
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
36604
36998
  })[] | 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;
36614
36999
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
36615
37000
  mcp?: Record<string, {
36616
37001
  id: string;
@@ -36858,6 +37243,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36858
37243
  type: "completion";
36859
37244
  content: string;
36860
37245
  } | null | undefined;
37246
+ preprocessor?: {
37247
+ id: string;
37248
+ type: "function";
37249
+ version?: string | undefined;
37250
+ } | {
37251
+ type: "global";
37252
+ name: string;
37253
+ function_type?: "preprocessor" | undefined;
37254
+ } | null | undefined;
36861
37255
  origin?: {
36862
37256
  project_id?: string | undefined;
36863
37257
  prompt_id?: string | undefined;
@@ -36878,17 +37272,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
36878
37272
  } | {
36879
37273
  type: "global";
36880
37274
  name: string;
36881
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
37275
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
36882
37276
  })[] | 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;
36892
37277
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
36893
37278
  mcp?: Record<string, {
36894
37279
  id: string;
@@ -37179,6 +37564,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
37179
37564
  type: "completion";
37180
37565
  content: string;
37181
37566
  } | null | undefined;
37567
+ preprocessor?: {
37568
+ id: string;
37569
+ type: "function";
37570
+ version?: string | undefined;
37571
+ } | {
37572
+ type: "global";
37573
+ name: string;
37574
+ function_type: "preprocessor";
37575
+ } | null | undefined;
37182
37576
  origin?: {
37183
37577
  project_id?: string | undefined;
37184
37578
  prompt_id?: string | undefined;
@@ -37199,17 +37593,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
37199
37593
  } | {
37200
37594
  type: "global";
37201
37595
  name: string;
37202
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
37596
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
37203
37597
  })[] | 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;
37213
37598
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
37214
37599
  mcp?: Record<string, {
37215
37600
  id: string;
@@ -37483,6 +37868,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
37483
37868
  type: "completion";
37484
37869
  content: string;
37485
37870
  } | null | undefined;
37871
+ preprocessor?: {
37872
+ id: string;
37873
+ type: "function";
37874
+ version?: string | undefined;
37875
+ } | {
37876
+ type: "global";
37877
+ name: string;
37878
+ function_type: "preprocessor";
37879
+ } | null | undefined;
37486
37880
  origin?: {
37487
37881
  project_id?: string | undefined;
37488
37882
  prompt_id?: string | undefined;
@@ -37503,17 +37897,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
37503
37897
  } | {
37504
37898
  type: "global";
37505
37899
  name: string;
37506
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
37900
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
37507
37901
  })[] | 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;
37517
37902
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
37518
37903
  mcp?: Record<string, {
37519
37904
  id: string;
@@ -37780,6 +38165,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
37780
38165
  type: "completion";
37781
38166
  content: string;
37782
38167
  } | null | undefined;
38168
+ preprocessor?: {
38169
+ id: string;
38170
+ type: "function";
38171
+ version?: string | undefined;
38172
+ } | {
38173
+ type: "global";
38174
+ name: string;
38175
+ function_type?: "preprocessor" | undefined;
38176
+ } | null | undefined;
37783
38177
  origin?: {
37784
38178
  project_id?: string | undefined;
37785
38179
  prompt_id?: string | undefined;
@@ -37800,17 +38194,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
37800
38194
  } | {
37801
38195
  type: "global";
37802
38196
  name: string;
37803
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
38197
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
37804
38198
  })[] | 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;
37814
38199
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
37815
38200
  mcp?: Record<string, {
37816
38201
  id: string;
@@ -38084,6 +38469,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
38084
38469
  type: "completion";
38085
38470
  content: string;
38086
38471
  } | null | undefined;
38472
+ preprocessor?: {
38473
+ id: string;
38474
+ type: "function";
38475
+ version?: string | undefined;
38476
+ } | {
38477
+ type: "global";
38478
+ name: string;
38479
+ function_type?: "preprocessor" | undefined;
38480
+ } | null | undefined;
38087
38481
  origin?: {
38088
38482
  project_id?: string | undefined;
38089
38483
  prompt_id?: string | undefined;
@@ -38104,17 +38498,8 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
38104
38498
  } | {
38105
38499
  type: "global";
38106
38500
  name: string;
38107
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
38501
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
38108
38502
  })[] | 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;
38118
38503
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
38119
38504
  mcp?: Record<string, {
38120
38505
  id: string;
@@ -39605,11 +39990,11 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39605
39990
  }, "strip", z.ZodTypeAny, {
39606
39991
  type: "global";
39607
39992
  name: string;
39608
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
39993
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
39609
39994
  }, {
39610
39995
  type: "global";
39611
39996
  name: string;
39612
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
39997
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
39613
39998
  }>]>, "many">, z.ZodNull]>>;
39614
39999
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
39615
40000
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -39887,6 +40272,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39887
40272
  type: "completion";
39888
40273
  content: string;
39889
40274
  } | null | undefined;
40275
+ preprocessor?: {
40276
+ id: string;
40277
+ type: "function";
40278
+ version?: string | undefined;
40279
+ } | {
40280
+ type: "global";
40281
+ name: string;
40282
+ function_type: "preprocessor";
40283
+ } | null | undefined;
39890
40284
  origin?: {
39891
40285
  project_id?: string | undefined;
39892
40286
  prompt_id?: string | undefined;
@@ -39907,17 +40301,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
39907
40301
  } | {
39908
40302
  type: "global";
39909
40303
  name: string;
39910
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
40304
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
39911
40305
  })[] | 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;
39921
40306
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
39922
40307
  mcp?: Record<string, {
39923
40308
  id: string;
@@ -40161,6 +40546,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40161
40546
  type: "completion";
40162
40547
  content: string;
40163
40548
  } | null | undefined;
40549
+ preprocessor?: {
40550
+ id: string;
40551
+ type: "function";
40552
+ version?: string | undefined;
40553
+ } | {
40554
+ type: "global";
40555
+ name: string;
40556
+ function_type?: "preprocessor" | undefined;
40557
+ } | null | undefined;
40164
40558
  origin?: {
40165
40559
  project_id?: string | undefined;
40166
40560
  prompt_id?: string | undefined;
@@ -40181,17 +40575,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40181
40575
  } | {
40182
40576
  type: "global";
40183
40577
  name: string;
40184
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
40578
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
40185
40579
  })[] | 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;
40195
40580
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
40196
40581
  mcp?: Record<string, {
40197
40582
  id: string;
@@ -40440,6 +40825,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40440
40825
  type: "completion";
40441
40826
  content: string;
40442
40827
  } | null | undefined;
40828
+ preprocessor?: {
40829
+ id: string;
40830
+ type: "function";
40831
+ version?: string | undefined;
40832
+ } | {
40833
+ type: "global";
40834
+ name: string;
40835
+ function_type: "preprocessor";
40836
+ } | null | undefined;
40443
40837
  origin?: {
40444
40838
  project_id?: string | undefined;
40445
40839
  prompt_id?: string | undefined;
@@ -40460,17 +40854,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40460
40854
  } | {
40461
40855
  type: "global";
40462
40856
  name: string;
40463
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
40857
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
40464
40858
  })[] | 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;
40474
40859
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
40475
40860
  mcp?: Record<string, {
40476
40861
  id: string;
@@ -40718,6 +41103,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40718
41103
  type: "completion";
40719
41104
  content: string;
40720
41105
  } | null | undefined;
41106
+ preprocessor?: {
41107
+ id: string;
41108
+ type: "function";
41109
+ version?: string | undefined;
41110
+ } | {
41111
+ type: "global";
41112
+ name: string;
41113
+ function_type?: "preprocessor" | undefined;
41114
+ } | null | undefined;
40721
41115
  origin?: {
40722
41116
  project_id?: string | undefined;
40723
41117
  prompt_id?: string | undefined;
@@ -40738,17 +41132,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40738
41132
  } | {
40739
41133
  type: "global";
40740
41134
  name: string;
40741
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
41135
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
40742
41136
  })[] | 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;
40752
41137
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
40753
41138
  mcp?: Record<string, {
40754
41139
  id: string;
@@ -41027,6 +41412,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
41027
41412
  type: "completion";
41028
41413
  content: string;
41029
41414
  } | null | undefined;
41415
+ preprocessor?: {
41416
+ id: string;
41417
+ type: "function";
41418
+ version?: string | undefined;
41419
+ } | {
41420
+ type: "global";
41421
+ name: string;
41422
+ function_type: "preprocessor";
41423
+ } | null | undefined;
41030
41424
  origin?: {
41031
41425
  project_id?: string | undefined;
41032
41426
  prompt_id?: string | undefined;
@@ -41047,17 +41441,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
41047
41441
  } | {
41048
41442
  type: "global";
41049
41443
  name: string;
41050
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
41444
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
41051
41445
  })[] | 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;
41061
41446
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
41062
41447
  mcp?: Record<string, {
41063
41448
  id: string;
@@ -41318,6 +41703,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
41318
41703
  type: "completion";
41319
41704
  content: string;
41320
41705
  } | null | undefined;
41706
+ preprocessor?: {
41707
+ id: string;
41708
+ type: "function";
41709
+ version?: string | undefined;
41710
+ } | {
41711
+ type: "global";
41712
+ name: string;
41713
+ function_type?: "preprocessor" | undefined;
41714
+ } | null | undefined;
41321
41715
  origin?: {
41322
41716
  project_id?: string | undefined;
41323
41717
  prompt_id?: string | undefined;
@@ -41338,17 +41732,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
41338
41732
  } | {
41339
41733
  type: "global";
41340
41734
  name: string;
41341
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
41735
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
41342
41736
  })[] | 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;
41352
41737
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
41353
41738
  mcp?: Record<string, {
41354
41739
  id: string;
@@ -42760,11 +43145,11 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
42760
43145
  }, "strip", z.ZodTypeAny, {
42761
43146
  type: "global";
42762
43147
  name: string;
42763
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
43148
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
42764
43149
  }, {
42765
43150
  type: "global";
42766
43151
  name: string;
42767
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
43152
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
42768
43153
  }>]>, "many">, z.ZodNull]>>;
42769
43154
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
42770
43155
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -43042,6 +43427,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43042
43427
  type: "completion";
43043
43428
  content: string;
43044
43429
  } | null | undefined;
43430
+ preprocessor?: {
43431
+ id: string;
43432
+ type: "function";
43433
+ version?: string | undefined;
43434
+ } | {
43435
+ type: "global";
43436
+ name: string;
43437
+ function_type: "preprocessor";
43438
+ } | null | undefined;
43045
43439
  origin?: {
43046
43440
  project_id?: string | undefined;
43047
43441
  prompt_id?: string | undefined;
@@ -43062,17 +43456,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43062
43456
  } | {
43063
43457
  type: "global";
43064
43458
  name: string;
43065
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
43459
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
43066
43460
  })[] | 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;
43076
43461
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
43077
43462
  mcp?: Record<string, {
43078
43463
  id: string;
@@ -43316,6 +43701,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43316
43701
  type: "completion";
43317
43702
  content: string;
43318
43703
  } | null | undefined;
43704
+ preprocessor?: {
43705
+ id: string;
43706
+ type: "function";
43707
+ version?: string | undefined;
43708
+ } | {
43709
+ type: "global";
43710
+ name: string;
43711
+ function_type?: "preprocessor" | undefined;
43712
+ } | null | undefined;
43319
43713
  origin?: {
43320
43714
  project_id?: string | undefined;
43321
43715
  prompt_id?: string | undefined;
@@ -43336,17 +43730,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43336
43730
  } | {
43337
43731
  type: "global";
43338
43732
  name: string;
43339
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
43733
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
43340
43734
  })[] | 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;
43350
43735
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
43351
43736
  mcp?: Record<string, {
43352
43737
  id: string;
@@ -43595,6 +43980,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43595
43980
  type: "completion";
43596
43981
  content: string;
43597
43982
  } | null | undefined;
43983
+ preprocessor?: {
43984
+ id: string;
43985
+ type: "function";
43986
+ version?: string | undefined;
43987
+ } | {
43988
+ type: "global";
43989
+ name: string;
43990
+ function_type: "preprocessor";
43991
+ } | null | undefined;
43598
43992
  origin?: {
43599
43993
  project_id?: string | undefined;
43600
43994
  prompt_id?: string | undefined;
@@ -43615,17 +44009,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43615
44009
  } | {
43616
44010
  type: "global";
43617
44011
  name: string;
43618
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
44012
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
43619
44013
  })[] | 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;
43629
44014
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
43630
44015
  mcp?: Record<string, {
43631
44016
  id: string;
@@ -43873,6 +44258,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43873
44258
  type: "completion";
43874
44259
  content: string;
43875
44260
  } | null | undefined;
44261
+ preprocessor?: {
44262
+ id: string;
44263
+ type: "function";
44264
+ version?: string | undefined;
44265
+ } | {
44266
+ type: "global";
44267
+ name: string;
44268
+ function_type?: "preprocessor" | undefined;
44269
+ } | null | undefined;
43876
44270
  origin?: {
43877
44271
  project_id?: string | undefined;
43878
44272
  prompt_id?: string | undefined;
@@ -43893,17 +44287,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
43893
44287
  } | {
43894
44288
  type: "global";
43895
44289
  name: string;
43896
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
44290
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
43897
44291
  })[] | 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;
43907
44292
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
43908
44293
  mcp?: Record<string, {
43909
44294
  id: string;
@@ -44194,6 +44579,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
44194
44579
  type: "completion";
44195
44580
  content: string;
44196
44581
  } | null | undefined;
44582
+ preprocessor?: {
44583
+ id: string;
44584
+ type: "function";
44585
+ version?: string | undefined;
44586
+ } | {
44587
+ type: "global";
44588
+ name: string;
44589
+ function_type: "preprocessor";
44590
+ } | null | undefined;
44197
44591
  origin?: {
44198
44592
  project_id?: string | undefined;
44199
44593
  prompt_id?: string | undefined;
@@ -44214,17 +44608,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
44214
44608
  } | {
44215
44609
  type: "global";
44216
44610
  name: string;
44217
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
44611
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
44218
44612
  })[] | 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;
44228
44613
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
44229
44614
  mcp?: Record<string, {
44230
44615
  id: string;
@@ -44498,6 +44883,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
44498
44883
  type: "completion";
44499
44884
  content: string;
44500
44885
  } | null | undefined;
44886
+ preprocessor?: {
44887
+ id: string;
44888
+ type: "function";
44889
+ version?: string | undefined;
44890
+ } | {
44891
+ type: "global";
44892
+ name: string;
44893
+ function_type: "preprocessor";
44894
+ } | null | undefined;
44501
44895
  origin?: {
44502
44896
  project_id?: string | undefined;
44503
44897
  prompt_id?: string | undefined;
@@ -44518,17 +44912,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
44518
44912
  } | {
44519
44913
  type: "global";
44520
44914
  name: string;
44521
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
44915
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
44522
44916
  })[] | 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;
44532
44917
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
44533
44918
  mcp?: Record<string, {
44534
44919
  id: string;
@@ -44795,6 +45180,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
44795
45180
  type: "completion";
44796
45181
  content: string;
44797
45182
  } | null | undefined;
45183
+ preprocessor?: {
45184
+ id: string;
45185
+ type: "function";
45186
+ version?: string | undefined;
45187
+ } | {
45188
+ type: "global";
45189
+ name: string;
45190
+ function_type?: "preprocessor" | undefined;
45191
+ } | null | undefined;
44798
45192
  origin?: {
44799
45193
  project_id?: string | undefined;
44800
45194
  prompt_id?: string | undefined;
@@ -44815,17 +45209,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
44815
45209
  } | {
44816
45210
  type: "global";
44817
45211
  name: string;
44818
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
45212
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
44819
45213
  })[] | 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;
44829
45214
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
44830
45215
  mcp?: Record<string, {
44831
45216
  id: string;
@@ -45099,6 +45484,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
45099
45484
  type: "completion";
45100
45485
  content: string;
45101
45486
  } | null | undefined;
45487
+ preprocessor?: {
45488
+ id: string;
45489
+ type: "function";
45490
+ version?: string | undefined;
45491
+ } | {
45492
+ type: "global";
45493
+ name: string;
45494
+ function_type?: "preprocessor" | undefined;
45495
+ } | null | undefined;
45102
45496
  origin?: {
45103
45497
  project_id?: string | undefined;
45104
45498
  prompt_id?: string | undefined;
@@ -45119,17 +45513,8 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
45119
45513
  } | {
45120
45514
  type: "global";
45121
45515
  name: string;
45122
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
45516
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
45123
45517
  })[] | 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;
45133
45518
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
45134
45519
  mcp?: Record<string, {
45135
45520
  id: string;
@@ -45729,6 +46114,228 @@ type ScoreAccumulator = {
45729
46114
  declare function buildLocalSummary(evaluator: EvaluatorDef<any, any, any, any>, results: EvalResult<any, any, any, any>[], precomputedScores?: ScoreAccumulator): ExperimentSummary;
45730
46115
  declare function reportFailures<Input, Output, Expected, Metadata extends BaseMetadata>(evaluator: EvaluatorDef<Input, Output, Expected, Metadata>, failingResults: EvalResult<Input, Output, Expected, Metadata>[], { verbose, jsonl }: ReporterOpts): void;
45731
46116
 
46117
+ declare const BATCH_TASK_KIND = "braintrust.durable.batch-task";
46118
+ declare const BATCH_SCORER_KIND = "braintrust.durable.batch-scorer";
46119
+ type JsonPrimitive = string | number | boolean | null;
46120
+ type JsonValue = JsonPrimitive | JsonValue[] | {
46121
+ [key: string]: JsonValue;
46122
+ };
46123
+ /**
46124
+ * Minimal persistence used to reconnect provider webhooks with submitted
46125
+ * batches. Each run, case, and batch is stored under its own key. Durable
46126
+ * evaluations do not require any Braintrust backend changes.
46127
+ *
46128
+ * @experimental - The API for this interface is not yet stabilized and may change or be removed across non-major versions. Functionality is not guaranteed.
46129
+ */
46130
+ interface DurableEvalStore {
46131
+ read(key: string): Promise<Uint8Array | undefined>;
46132
+ write(key: string, value: Uint8Array): Promise<void>;
46133
+ /** Atomically stores `value` when `key` is absent and returns its stored value. */
46134
+ getOrSet(key: string, value: Uint8Array): Promise<{
46135
+ value: Uint8Array;
46136
+ created: boolean;
46137
+ }>;
46138
+ }
46139
+ /**
46140
+ * Stores durable evaluation state in memory. State is lost when the current
46141
+ * JavaScript process exits.
46142
+ *
46143
+ * @experimental - The API for this class is not yet stabilized and may change or be removed across non-major versions. Functionality is not guaranteed.
46144
+ */
46145
+ declare class DurableEvalMemoryStore implements DurableEvalStore {
46146
+ private readonly values;
46147
+ read(key: string): Promise<Uint8Array | undefined>;
46148
+ write(key: string, value: Uint8Array): Promise<void>;
46149
+ getOrSet(key: string, value: Uint8Array): Promise<{
46150
+ value: Uint8Array;
46151
+ created: boolean;
46152
+ }>;
46153
+ }
46154
+ /**
46155
+ * Stores durable evaluation state in Redis using an existing Redis client.
46156
+ * Values are base64 encoded so only string `GET` and `SET` operations are
46157
+ * required from the client. Clients from `redis` (node-redis), `ioredis`, and
46158
+ * `@upstash/redis` can be passed directly.
46159
+ *
46160
+ * @experimental - The API for this class is not yet stabilized and may change or be removed across non-major versions. Functionality is not guaranteed.
46161
+ */
46162
+ declare class DurableEvalRedisStore implements DurableEvalStore {
46163
+ private readonly client;
46164
+ private readonly keyPrefix;
46165
+ private readonly ttlMs;
46166
+ constructor(options: {
46167
+ /** A connected node-redis, ioredis, or Upstash Redis client. */
46168
+ client: {
46169
+ get(key: string): Promise<unknown>;
46170
+ set(key: string, value: string): Promise<unknown>;
46171
+ };
46172
+ /** Prefix for Redis keys. Defaults to `braintrust-eval:`. */
46173
+ keyPrefix?: string;
46174
+ /** Entry lifetime in milliseconds. Defaults to seven days. */
46175
+ ttlMs?: number;
46176
+ });
46177
+ read(key: string): Promise<Uint8Array | undefined>;
46178
+ write(key: string, value: Uint8Array): Promise<void>;
46179
+ getOrSet(key: string, value: Uint8Array): Promise<{
46180
+ value: Uint8Array;
46181
+ created: boolean;
46182
+ }>;
46183
+ }
46184
+ interface DurableBatchContext {
46185
+ runId: string;
46186
+ batchId: string;
46187
+ }
46188
+ type DurableBatchPoll = {
46189
+ status: "pending";
46190
+ } | {
46191
+ status: "complete";
46192
+ } | {
46193
+ status: "failed";
46194
+ error: unknown;
46195
+ };
46196
+ type DurableBatchCompletion<SubmissionData extends JsonValue> = {
46197
+ mode: "poll";
46198
+ /** Checks whether the submitted provider batch is ready to collect. */
46199
+ poll(submissionData: SubmissionData, context: DurableBatchContext): Promise<DurableBatchPoll>;
46200
+ } | {
46201
+ mode: "webhook";
46202
+ /** Returns the provider ID used to match an incoming webhook to this batch. */
46203
+ getExternalId(submissionData: SubmissionData, context: DurableBatchContext): string;
46204
+ };
46205
+ interface DurableBatchTaskItem<Input, Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters> {
46206
+ /** Stable identifier for this case and trial within the durable run. */
46207
+ id: string;
46208
+ /** Input value from the evaluation case. */
46209
+ input: Input;
46210
+ /** Expected value from the evaluation case. */
46211
+ expected: Expected;
46212
+ /** Metadata associated with the evaluation case. */
46213
+ metadata: Metadata;
46214
+ /** Tags associated with the evaluation case. */
46215
+ tags: string[] | undefined;
46216
+ /** Parameters supplied when the durable evaluation started. */
46217
+ parameters: InferParameters<Parameters>;
46218
+ /** Zero-based trial index for this case. */
46219
+ trialIndex: number;
46220
+ }
46221
+ type DurableBatchTaskResult<Output, Metadata extends BaseMetadata> = {
46222
+ /** ID of the submitted item this result belongs to. */
46223
+ id: string;
46224
+ /** Task output for the item. */
46225
+ output: Output;
46226
+ /** Metadata to merge into the evaluation case. */
46227
+ metadata?: Metadata;
46228
+ /** Tags to replace those from the evaluation case. */
46229
+ tags?: string[];
46230
+ };
46231
+ type DurableBatchScorerItem<Input, Output, Expected, Metadata extends BaseMetadata> = EvalScorerArgs<Input, Output, Expected, Metadata> & {
46232
+ /** Stable identifier for this case and trial within the durable run. */
46233
+ id: string;
46234
+ /** Zero-based trial index for this case. */
46235
+ trialIndex: number;
46236
+ };
46237
+ type DurableBatchScorerResult = {
46238
+ /** ID of the submitted item this result belongs to. */
46239
+ id: string;
46240
+ /** Score or named scores produced for the item. */
46241
+ score: OneOrMoreScores;
46242
+ };
46243
+ interface DurableBatchProcessor<Item, Result, SubmissionData extends JsonValue> {
46244
+ /** Maximum items submitted in one provider batch. Defaults to 1,000. */
46245
+ batchSize?: number;
46246
+ /** Submits a batch and returns the provider-specific submission data. */
46247
+ submit(items: Item[], context: DurableBatchContext): Promise<SubmissionData>;
46248
+ /** Configures how the SDK learns that the submitted batch completed. */
46249
+ completion: DurableBatchCompletion<SubmissionData>;
46250
+ /** Collects one result for every item in a completed provider batch. */
46251
+ collect(submissionData: SubmissionData, context: DurableBatchContext): Promise<Result[]>;
46252
+ }
46253
+ interface DurableBatchTask<Input, Output, Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters, SubmissionData extends JsonValue> {
46254
+ readonly kind: typeof BATCH_TASK_KIND;
46255
+ readonly processor: DurableBatchProcessor<DurableBatchTaskItem<Input, Expected, Metadata, Parameters>, DurableBatchTaskResult<Output, Metadata>, SubmissionData>;
46256
+ }
46257
+ interface DurableBatchScorer<Input, Output, Expected, Metadata extends BaseMetadata, SubmissionData extends JsonValue> {
46258
+ readonly kind: typeof BATCH_SCORER_KIND;
46259
+ name: string;
46260
+ readonly processor: DurableBatchProcessor<DurableBatchScorerItem<Input, Output, Expected, Metadata>, DurableBatchScorerResult, SubmissionData>;
46261
+ }
46262
+ /**
46263
+ * Defines a task that runs through asynchronous provider batch operations.
46264
+ *
46265
+ * @experimental - The API for this class is not yet stabilized and may change or be removed across non-major versions. Functionality is not guaranteed.
46266
+ */
46267
+ declare class BatchTask<Input, Output, Expected = void, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters, SubmissionData extends JsonValue = JsonValue> implements DurableBatchTask<Input, Output, Expected, Metadata, Parameters, SubmissionData> {
46268
+ readonly processor: DurableBatchProcessor<DurableBatchTaskItem<Input, Expected, Metadata, Parameters>, DurableBatchTaskResult<Output, Metadata>, SubmissionData>;
46269
+ readonly kind: typeof BATCH_TASK_KIND;
46270
+ constructor(processor: DurableBatchProcessor<DurableBatchTaskItem<Input, Expected, Metadata, Parameters>, DurableBatchTaskResult<Output, Metadata>, SubmissionData>);
46271
+ }
46272
+ /**
46273
+ * Defines a scorer that runs through asynchronous provider batch operations.
46274
+ *
46275
+ * @experimental - The API for this class is not yet stabilized and may change or be removed across non-major versions. Functionality is not guaranteed.
46276
+ */
46277
+ declare class BatchScorer<Input, Output, Expected = void, Metadata extends BaseMetadata = DefaultMetadataType, SubmissionData extends JsonValue = JsonValue> implements DurableBatchScorer<Input, Output, Expected, Metadata, SubmissionData> {
46278
+ readonly processor: DurableBatchProcessor<DurableBatchScorerItem<Input, Output, Expected, Metadata>, DurableBatchScorerResult, SubmissionData> & {
46279
+ name: string;
46280
+ };
46281
+ readonly kind: typeof BATCH_SCORER_KIND;
46282
+ readonly name: string;
46283
+ constructor(processor: DurableBatchProcessor<DurableBatchScorerItem<Input, Output, Expected, Metadata>, DurableBatchScorerResult, SubmissionData> & {
46284
+ name: string;
46285
+ });
46286
+ }
46287
+ type DurableEvaluator<Input, Output, Expected = void, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters> = Omit<Evaluator<Input, Output, Expected, Metadata, Parameters>, "task" | "scores" | "timeout" | "signal" | "maxConcurrency" | "update"> & {
46288
+ store: DurableEvalStore;
46289
+ /**
46290
+ * Returns a stable case ID when a data item has neither `id` nor `upsert_id`.
46291
+ * The ID is shared by all trials of the same case.
46292
+ */
46293
+ caseId?: (datum: EvalCase<Input, Expected, Metadata>) => string | Promise<string>;
46294
+ task: EvalTask<Input, Output, Expected, Metadata, Parameters> | DurableBatchTask<Input, Output, Expected, Metadata, Parameters, JsonValue>;
46295
+ scores?: Array<EvalScorer<Input, Output, Expected, Metadata> | DurableBatchScorer<Input, Output, Expected, Metadata, JsonValue>>;
46296
+ };
46297
+ interface DurableEvalStartOptions<Parameters extends EvalParameters = EvalParameters> {
46298
+ parameters?: InferParameters<Parameters>;
46299
+ noSendLogs?: boolean;
46300
+ }
46301
+ type DurableBatchResult = {
46302
+ runId: string;
46303
+ batchId?: string;
46304
+ externalId?: string;
46305
+ };
46306
+ type DurableEvalResult = {
46307
+ status: "waiting";
46308
+ runId: string;
46309
+ pending: {
46310
+ poll: number;
46311
+ webhook: number;
46312
+ };
46313
+ } | {
46314
+ status: "completed";
46315
+ runId: string;
46316
+ pending: {
46317
+ poll: 0;
46318
+ webhook: 0;
46319
+ };
46320
+ summary: ExperimentSummary;
46321
+ };
46322
+ interface DurableEvalDefinition<Parameters extends EvalParameters> {
46323
+ start(options?: DurableEvalStartOptions<Parameters>): Promise<DurableEvalResult>;
46324
+ status(options: {
46325
+ runId: string;
46326
+ }): Promise<DurableEvalResult>;
46327
+ poll(options: {
46328
+ runId: string;
46329
+ }): Promise<DurableEvalResult>;
46330
+ processBatchResult(result: DurableBatchResult): Promise<DurableEvalResult>;
46331
+ }
46332
+ /**
46333
+ * Defines a durable evaluation backed by a user-provided store.
46334
+ *
46335
+ * @experimental - The API for this function is not yet stabilized and may change or be removed across non-major versions. Functionality is not guaranteed.
46336
+ */
46337
+ declare function defineDurableEval<Input, Output, Expected = void, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters>(projectName: string, evaluator: DurableEvaluator<Input, Output, Expected, Metadata, Parameters>): DurableEvalDefinition<Parameters>;
46338
+
45732
46339
  type MaybePromise<T> = T | Promise<T>;
45733
46340
  type AssertionMatcher = RegExp | ((value: unknown) => boolean) | readonly AssertionMatcher[] | {
45734
46341
  [key: string]: AssertionMatcher;
@@ -46013,6 +46620,7 @@ interface InstrumentationIntegrationsConfig {
46013
46620
  huggingface?: boolean;
46014
46621
  claudeAgentSDK?: boolean;
46015
46622
  cloudflareAIChat?: boolean;
46623
+ cloudflareThink?: boolean;
46016
46624
  cursor?: boolean;
46017
46625
  cursorSDK?: boolean;
46018
46626
  flue?: boolean;
@@ -46021,6 +46629,7 @@ interface InstrumentationIntegrationsConfig {
46021
46629
  openrouter?: boolean;
46022
46630
  openrouterAgent?: boolean;
46023
46631
  mistral?: boolean;
46632
+ ollama?: boolean;
46024
46633
  cohere?: boolean;
46025
46634
  groq?: boolean;
46026
46635
  bedrock?: boolean;
@@ -46035,6 +46644,7 @@ interface InstrumentationIntegrationsConfig {
46035
46644
  langchain?: boolean;
46036
46645
  langgraph?: boolean;
46037
46646
  langsmith?: boolean;
46647
+ voyageai?: boolean;
46038
46648
  }
46039
46649
  interface InstrumentationConfig {
46040
46650
  /**
@@ -46075,6 +46685,9 @@ type FlueExecutionOperation = {
46075
46685
  } | {
46076
46686
  type: "task";
46077
46687
  taskId: string;
46688
+ } | {
46689
+ type: "coordinator";
46690
+ phase: "reconcile";
46078
46691
  };
46079
46692
  interface FlueTraceCarrier {
46080
46693
  traceparent: string;
@@ -46168,6 +46781,10 @@ type exports$1_BaseAttachment = BaseAttachment;
46168
46781
  declare const exports$1_BaseAttachment: typeof BaseAttachment;
46169
46782
  declare const exports$1_BaseExperiment: typeof BaseExperiment;
46170
46783
  type exports$1_BaseMetadata = BaseMetadata;
46784
+ type exports$1_BatchScorer<Input, Output, Expected = void, Metadata extends BaseMetadata = DefaultMetadataType, SubmissionData extends JsonValue = JsonValue> = BatchScorer<Input, Output, Expected, Metadata, SubmissionData>;
46785
+ declare const exports$1_BatchScorer: typeof BatchScorer;
46786
+ type exports$1_BatchTask<Input, Output, Expected = void, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters, SubmissionData extends JsonValue = JsonValue> = BatchTask<Input, Output, Expected, Metadata, Parameters, SubmissionData>;
46787
+ declare const exports$1_BatchTask: typeof BatchTask;
46171
46788
  type exports$1_BraintrustLangChainCallbackHandler<IsAsyncFlush extends boolean = true> = BraintrustLangChainCallbackHandler<IsAsyncFlush>;
46172
46789
  declare const exports$1_BraintrustLangChainCallbackHandler: typeof BraintrustLangChainCallbackHandler;
46173
46790
  declare const exports$1_BraintrustMiddleware: typeof BraintrustMiddleware;
@@ -46207,6 +46824,11 @@ type exports$1_DatasetRestoreResult = DatasetRestoreResult;
46207
46824
  type exports$1_DatasetSummary = DatasetSummary;
46208
46825
  type exports$1_DefaultMetadataType = DefaultMetadataType;
46209
46826
  type exports$1_DefaultPromptArgs = DefaultPromptArgs;
46827
+ type exports$1_DurableEvalMemoryStore = DurableEvalMemoryStore;
46828
+ declare const exports$1_DurableEvalMemoryStore: typeof DurableEvalMemoryStore;
46829
+ type exports$1_DurableEvalRedisStore = DurableEvalRedisStore;
46830
+ declare const exports$1_DurableEvalRedisStore: typeof DurableEvalRedisStore;
46831
+ type exports$1_DurableEvalStore = DurableEvalStore;
46210
46832
  declare const exports$1_ERR_PERMALINK: typeof ERR_PERMALINK;
46211
46833
  type exports$1_EndSpanArgs = EndSpanArgs;
46212
46834
  declare const exports$1_Eval: typeof Eval;
@@ -46356,6 +46978,7 @@ declare const exports$1_braintrustFlueInstrumentation: typeof braintrustFlueInst
46356
46978
  declare const exports$1_braintrustFlueObserver: typeof braintrustFlueObserver;
46357
46979
  declare const exports$1_braintrustStreamChunkSchema: typeof braintrustStreamChunkSchema;
46358
46980
  declare const exports$1_buildLocalSummary: typeof buildLocalSummary;
46981
+ declare const exports$1_collectAnthropicSession: typeof collectAnthropicSession;
46359
46982
  declare const exports$1_configureInstrumentation: typeof configureInstrumentation;
46360
46983
  declare const exports$1_constructLogs3OverflowRequest: typeof constructLogs3OverflowRequest;
46361
46984
  declare const exports$1_createFinalValuePassThroughStream: typeof createFinalValuePassThroughStream;
@@ -46364,6 +46987,7 @@ declare const exports$1_currentLogger: typeof currentLogger;
46364
46987
  declare const exports$1_currentSpan: typeof currentSpan;
46365
46988
  declare const exports$1_deepCopyEvent: typeof deepCopyEvent;
46366
46989
  declare const exports$1_defaultErrorScoreHandler: typeof defaultErrorScoreHandler;
46990
+ declare const exports$1_defineDurableEval: typeof defineDurableEval;
46367
46991
  declare const exports$1_deserializePlainStringAsJSON: typeof deserializePlainStringAsJSON;
46368
46992
  declare const exports$1_devNullWritableStream: typeof devNullWritableStream;
46369
46993
  declare const exports$1_evaluatorDefinitionSchema: typeof evaluatorDefinitionSchema;
@@ -46433,6 +47057,7 @@ declare const exports$1_wrapBedrockRuntime: typeof wrapBedrockRuntime;
46433
47057
  declare const exports$1_wrapClaudeAgentSDK: typeof wrapClaudeAgentSDK;
46434
47058
  declare const exports$1_wrapCloudflareAIChat: typeof wrapCloudflareAIChat;
46435
47059
  declare const exports$1_wrapCloudflareAgent: typeof wrapCloudflareAgent;
47060
+ declare const exports$1_wrapCloudflareThink: typeof wrapCloudflareThink;
46436
47061
  declare const exports$1_wrapCohere: typeof wrapCohere;
46437
47062
  declare const exports$1_wrapCopilotClient: typeof wrapCopilotClient;
46438
47063
  declare const exports$1_wrapCursorSDK: typeof wrapCursorSDK;
@@ -46447,6 +47072,7 @@ declare const exports$1_wrapLangSmithRunTrees: typeof wrapLangSmithRunTrees;
46447
47072
  declare const exports$1_wrapLangSmithTraceable: typeof wrapLangSmithTraceable;
46448
47073
  declare const exports$1_wrapMastraAgent: typeof wrapMastraAgent;
46449
47074
  declare const exports$1_wrapMistral: typeof wrapMistral;
47075
+ declare const exports$1_wrapOllama: typeof wrapOllama;
46450
47076
  declare const exports$1_wrapOpenAI: typeof wrapOpenAI;
46451
47077
  declare const exports$1_wrapOpenAICodexSDK: typeof wrapOpenAICodexSDK;
46452
47078
  declare const exports$1_wrapOpenAIv4: typeof wrapOpenAIv4;
@@ -46456,8 +47082,9 @@ declare const exports$1_wrapPiCodingAgentSDK: typeof wrapPiCodingAgentSDK;
46456
47082
  declare const exports$1_wrapStrandsAgentSDK: typeof wrapStrandsAgentSDK;
46457
47083
  declare const exports$1_wrapTraced: typeof wrapTraced;
46458
47084
  declare const exports$1_wrapVitest: typeof wrapVitest;
47085
+ declare const exports$1_wrapVoyageAI: typeof wrapVoyageAI;
46459
47086
  declare namespace exports$1 {
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 };
47087
+ 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_BatchScorer as BatchScorer, exports$1_BatchTask as BatchTask, 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_DurableEvalMemoryStore as DurableEvalMemoryStore, exports$1_DurableEvalRedisStore as DurableEvalRedisStore, type exports$1_DurableEvalStore as DurableEvalStore, 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_collectAnthropicSession as collectAnthropicSession, 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_defineDurableEval as defineDurableEval, 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_wrapCloudflareThink as wrapCloudflareThink, 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_wrapOllama as wrapOllama, 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, exports$1_wrapVoyageAI as wrapVoyageAI };
46461
47088
  }
46462
47089
 
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 };
47090
+ 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, BatchScorer, BatchTask, 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, DurableEvalMemoryStore, DurableEvalRedisStore, type DurableEvalStore, 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, collectAnthropicSession, configureInstrumentation, constructLogs3OverflowRequest, createFinalValuePassThroughStream, currentExperiment, currentLogger, currentSpan, deepCopyEvent, exports$1 as default, defaultErrorScoreHandler, defineDurableEval, 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, wrapCloudflareThink, wrapCohere, wrapCopilotClient, wrapCursorSDK, wrapGenkit, wrapGoogleADK, wrapGoogleGenAI, wrapGroq, wrapHuggingFace, wrapHuggingFaceTransformers, wrapLangSmithClient, wrapLangSmithRunTrees, wrapLangSmithTraceable, wrapMastraAgent, wrapMistral, wrapOllama, wrapOpenAI, wrapOpenAICodexSDK, wrapOpenAIv4, wrapOpenRouter, wrapOpenRouterAgent, wrapPiCodingAgentSDK, wrapStrandsAgentSDK, wrapTraced, wrapVitest, wrapVoyageAI };