braintrust 3.20.0 → 3.21.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 (88) hide show
  1. package/NOTICE +20 -0
  2. package/README.md +2 -0
  3. package/dev/dist/index.d.mts +309 -199
  4. package/dev/dist/index.d.ts +309 -199
  5. package/dev/dist/index.js +2826 -983
  6. package/dev/dist/index.mjs +2286 -443
  7. package/dist/apply-auto-instrumentation.js +781 -199
  8. package/dist/apply-auto-instrumentation.mjs +588 -6
  9. package/dist/auto-instrumentations/bundler/esbuild.cjs +594 -2
  10. package/dist/auto-instrumentations/bundler/esbuild.d.mts +2 -2
  11. package/dist/auto-instrumentations/bundler/esbuild.d.ts +2 -2
  12. package/dist/auto-instrumentations/bundler/esbuild.mjs +3 -3
  13. package/dist/auto-instrumentations/bundler/next.cjs +594 -2
  14. package/dist/auto-instrumentations/bundler/next.mjs +4 -4
  15. package/dist/auto-instrumentations/bundler/rollup.cjs +594 -2
  16. package/dist/auto-instrumentations/bundler/rollup.d.mts +2 -2
  17. package/dist/auto-instrumentations/bundler/rollup.d.ts +2 -2
  18. package/dist/auto-instrumentations/bundler/rollup.mjs +3 -3
  19. package/dist/auto-instrumentations/bundler/vite.cjs +594 -2
  20. package/dist/auto-instrumentations/bundler/vite.d.mts +2 -2
  21. package/dist/auto-instrumentations/bundler/vite.d.ts +2 -2
  22. package/dist/auto-instrumentations/bundler/vite.mjs +3 -3
  23. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +593 -9
  24. package/dist/auto-instrumentations/bundler/webpack-loader.d.ts +68 -1
  25. package/dist/auto-instrumentations/bundler/webpack.cjs +594 -2
  26. package/dist/auto-instrumentations/bundler/webpack.d.mts +2 -2
  27. package/dist/auto-instrumentations/bundler/webpack.d.ts +2 -2
  28. package/dist/auto-instrumentations/bundler/webpack.mjs +4 -4
  29. package/dist/auto-instrumentations/{chunk-W4E36GIW.mjs → chunk-BRQX23KL.mjs} +16 -0
  30. package/dist/auto-instrumentations/chunk-M6DLIJ2Z.mjs +784 -0
  31. package/dist/auto-instrumentations/{chunk-K74TZGGM.mjs → chunk-T6J4C7LX.mjs} +1 -1
  32. package/dist/auto-instrumentations/{chunk-S4374IP6.mjs → chunk-TKRPRPGD.mjs} +4 -6
  33. package/dist/auto-instrumentations/chunk-VT6DDNKM.mjs +856 -0
  34. package/dist/auto-instrumentations/hook.mjs +749 -45
  35. package/dist/auto-instrumentations/index.cjs +16 -0
  36. package/dist/auto-instrumentations/index.d.mts +2 -3
  37. package/dist/auto-instrumentations/index.d.ts +2 -3
  38. package/dist/auto-instrumentations/index.mjs +1 -1
  39. package/dist/auto-instrumentations/loader/cjs-patch.cjs +578 -4
  40. package/dist/auto-instrumentations/loader/cjs-patch.d.mts +1 -1
  41. package/dist/auto-instrumentations/loader/cjs-patch.d.ts +1 -1
  42. package/dist/auto-instrumentations/loader/cjs-patch.mjs +3 -7
  43. package/dist/auto-instrumentations/loader/esm-hook.mjs +2 -6
  44. package/dist/auto-instrumentations/{plugin-D7nDswtC.d.mts → plugin-D0KHwSJv.d.mts} +1 -1
  45. package/dist/auto-instrumentations/{plugin-D7nDswtC.d.ts → plugin-G6fgxk1b.d.ts} +1 -1
  46. package/dist/auto-instrumentations/types-RNPaKi9o.d.mts +70 -0
  47. package/dist/auto-instrumentations/types-RNPaKi9o.d.ts +70 -0
  48. package/dist/browser.d.mts +1357 -847
  49. package/dist/browser.d.ts +1357 -847
  50. package/dist/browser.js +2726 -469
  51. package/dist/browser.mjs +2726 -469
  52. package/dist/{chunk-LPC4W2WX.js → chunk-BFGIH2ZJ.js} +4 -0
  53. package/dist/{chunk-POCCIJAL.js → chunk-FY7DAKA5.js} +3141 -1269
  54. package/dist/{chunk-Y7W7WP6H.mjs → chunk-KMGUTPB7.mjs} +4 -0
  55. package/dist/{chunk-F73OMF66.mjs → chunk-O2P765XK.mjs} +2391 -519
  56. package/dist/cli.js +2260 -408
  57. package/dist/edge-light.d.mts +1 -1
  58. package/dist/edge-light.d.ts +1 -1
  59. package/dist/edge-light.js +2726 -469
  60. package/dist/edge-light.mjs +2726 -469
  61. package/dist/index.d.mts +1837 -1327
  62. package/dist/index.d.ts +1837 -1327
  63. package/dist/index.js +752 -353
  64. package/dist/index.mjs +445 -46
  65. package/dist/instrumentation/index.d.mts +107 -19
  66. package/dist/instrumentation/index.d.ts +107 -19
  67. package/dist/instrumentation/index.js +2337 -509
  68. package/dist/instrumentation/index.mjs +2337 -509
  69. package/dist/vitest-evals-reporter.js +16 -16
  70. package/dist/vitest-evals-reporter.mjs +2 -2
  71. package/dist/workerd.d.mts +1 -1
  72. package/dist/workerd.d.ts +1 -1
  73. package/dist/workerd.js +2726 -469
  74. package/dist/workerd.mjs +2726 -469
  75. package/licenses/import-in-the-middle/LICENSE +201 -0
  76. package/licenses/import-in-the-middle/LICENSE-3rdparty.csv +4 -0
  77. package/licenses/import-in-the-middle/NOTICE +34 -0
  78. package/licenses/orchestrion-js/LICENSE +202 -0
  79. package/licenses/orchestrion-js/LICENSE-3rdparty.csv +8 -0
  80. package/licenses/orchestrion-js/NOTICE +3 -0
  81. package/licenses/require-in-the-middle/LICENSE +23 -0
  82. package/package.json +13 -4
  83. package/util/dist/index.d.mts +1 -0
  84. package/util/dist/index.d.ts +1 -0
  85. package/util/dist/index.js +4 -4
  86. package/util/dist/index.mjs +2 -2
  87. package/dist/auto-instrumentations/chunk-J57YF7WS.mjs +0 -208
  88. package/dist/auto-instrumentations/chunk-QFMACSOL.mjs +0 -280
@@ -90,13 +90,13 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
90
90
  function_ids: z.ZodArray<z.ZodUnknown, "many">;
91
91
  triggered_xact_id: z.ZodString;
92
92
  }, "strip", z.ZodTypeAny, {
93
- triggered_xact_id: string;
94
93
  function_ids: unknown[];
95
94
  kind: "complete_triggered_functions";
96
- }, {
97
95
  triggered_xact_id: string;
96
+ }, {
98
97
  function_ids: unknown[];
99
98
  kind: "complete_triggered_functions";
99
+ triggered_xact_id: string;
100
100
  }>]>;
101
101
  type AsyncScoringControlType = z.infer<typeof AsyncScoringControl>;
102
102
  declare const ObjectReference$1: z.ZodObject<{
@@ -109,14 +109,14 @@ declare const ObjectReference$1: z.ZodObject<{
109
109
  id: string;
110
110
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
111
111
  object_id: string;
112
- created?: string | null | undefined;
113
112
  _xact_id?: string | null | undefined;
113
+ created?: string | null | undefined;
114
114
  }, {
115
115
  id: string;
116
116
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
117
117
  object_id: string;
118
- created?: string | null | undefined;
119
118
  _xact_id?: string | null | undefined;
119
+ created?: string | null | undefined;
120
120
  }>;
121
121
  type ObjectReferenceType$1 = z.infer<typeof ObjectReference$1>;
122
122
 
@@ -173,6 +173,7 @@ type ExperimentEvent = Partial<InputField> & Partial<OtherExperimentLogFields> &
173
173
  span_parents: string[];
174
174
  span_attributes: Record<string, unknown>;
175
175
  context: Record<string, unknown>;
176
+ is_root: boolean | null;
176
177
  [AUDIT_SOURCE_FIELD]: Source;
177
178
  [AUDIT_METADATA_FIELD]?: Record<string, unknown>;
178
179
  }>;
@@ -551,13 +552,13 @@ declare const AnyModelParams: z.ZodObject<{
551
552
  verbosity?: "low" | "medium" | "high" | undefined;
552
553
  top_k?: number | undefined;
553
554
  stop_sequences?: string[] | undefined;
554
- reasoning_enabled?: boolean | undefined;
555
- reasoning_budget?: number | undefined;
556
555
  max_tokens_to_sample?: number | undefined;
557
556
  maxOutputTokens?: number | undefined;
558
557
  topP?: number | undefined;
559
558
  topK?: number | undefined;
560
559
  use_cache?: boolean | undefined;
560
+ reasoning_enabled?: boolean | undefined;
561
+ reasoning_budget?: number | undefined;
561
562
  }, {
562
563
  max_tokens: number;
563
564
  temperature?: number | undefined;
@@ -593,13 +594,13 @@ declare const AnyModelParams: z.ZodObject<{
593
594
  verbosity?: "low" | "medium" | "high" | undefined;
594
595
  top_k?: number | undefined;
595
596
  stop_sequences?: string[] | undefined;
596
- reasoning_enabled?: boolean | undefined;
597
- reasoning_budget?: number | undefined;
598
597
  max_tokens_to_sample?: number | undefined;
599
598
  maxOutputTokens?: number | undefined;
600
599
  topP?: number | undefined;
601
600
  topK?: number | undefined;
602
601
  use_cache?: boolean | undefined;
602
+ reasoning_enabled?: boolean | undefined;
603
+ reasoning_budget?: number | undefined;
603
604
  }>;
604
605
  type AnyModelParamsType = z.infer<typeof AnyModelParams>;
605
606
  declare const FunctionTypeEnum: z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>;
@@ -829,15 +830,15 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
829
830
  name: string;
830
831
  arguments: string;
831
832
  };
832
- type: "function";
833
833
  id: string;
834
+ type: "function";
834
835
  }, {
835
836
  function: {
836
837
  name: string;
837
838
  arguments: string;
838
839
  };
839
- type: "function";
840
840
  id: string;
841
+ type: "function";
841
842
  }>, "many">>;
842
843
  reasoning: z.ZodOptional<z.ZodArray<z.ZodObject<{
843
844
  id: z.ZodOptional<z.ZodString>;
@@ -869,8 +870,8 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
869
870
  name: string;
870
871
  arguments: string;
871
872
  };
872
- type: "function";
873
873
  id: string;
874
+ type: "function";
874
875
  }[] | undefined;
875
876
  reasoning?: {
876
877
  id?: string | undefined;
@@ -896,8 +897,8 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
896
897
  name: string;
897
898
  arguments: string;
898
899
  };
899
- type: "function";
900
900
  id: string;
901
+ type: "function";
901
902
  }[] | undefined;
902
903
  reasoning?: {
903
904
  id?: string | undefined;
@@ -1244,15 +1245,15 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
1244
1245
  name: string;
1245
1246
  arguments: string;
1246
1247
  };
1247
- type: "function";
1248
1248
  id: string;
1249
+ type: "function";
1249
1250
  }, {
1250
1251
  function: {
1251
1252
  name: string;
1252
1253
  arguments: string;
1253
1254
  };
1254
- type: "function";
1255
1255
  id: string;
1256
+ type: "function";
1256
1257
  }>, "many">>;
1257
1258
  reasoning: z.ZodOptional<z.ZodArray<z.ZodObject<{
1258
1259
  id: z.ZodOptional<z.ZodString>;
@@ -1284,8 +1285,8 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
1284
1285
  name: string;
1285
1286
  arguments: string;
1286
1287
  };
1287
- type: "function";
1288
1288
  id: string;
1289
+ type: "function";
1289
1290
  }[] | undefined;
1290
1291
  reasoning?: {
1291
1292
  id?: string | undefined;
@@ -1311,8 +1312,8 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
1311
1312
  name: string;
1312
1313
  arguments: string;
1313
1314
  };
1314
- type: "function";
1315
1315
  id: string;
1316
+ type: "function";
1316
1317
  }[] | undefined;
1317
1318
  reasoning?: {
1318
1319
  id?: string | undefined;
@@ -1461,12 +1462,12 @@ declare const SavedFunctionId: z.ZodUnion<[z.ZodObject<{
1461
1462
  id: z.ZodString;
1462
1463
  version: z.ZodOptional<z.ZodString>;
1463
1464
  }, "strip", z.ZodTypeAny, {
1464
- type: "function";
1465
1465
  id: string;
1466
+ type: "function";
1466
1467
  version?: string | undefined;
1467
1468
  }, {
1468
- type: "function";
1469
1469
  id: string;
1470
+ type: "function";
1470
1471
  version?: string | undefined;
1471
1472
  }>, z.ZodObject<{
1472
1473
  type: z.ZodLiteral<"global">;
@@ -1475,11 +1476,11 @@ declare const SavedFunctionId: z.ZodUnion<[z.ZodObject<{
1475
1476
  }, "strip", z.ZodTypeAny, {
1476
1477
  type: "global";
1477
1478
  name: string;
1478
- function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
1479
+ function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
1479
1480
  }, {
1480
1481
  type: "global";
1481
1482
  name: string;
1482
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
1483
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
1483
1484
  }>]>;
1484
1485
  type SavedFunctionIdType = z.infer<typeof SavedFunctionId>;
1485
1486
  declare const DatasetSnapshot: z.ZodObject<{
@@ -1490,18 +1491,18 @@ declare const DatasetSnapshot: z.ZodObject<{
1490
1491
  xact_id: z.ZodString;
1491
1492
  created: z.ZodUnion<[z.ZodString, z.ZodNull]>;
1492
1493
  }, "strip", z.ZodTypeAny, {
1493
- id: string;
1494
1494
  created: string | null;
1495
+ id: string;
1496
+ dataset_id: string;
1495
1497
  name: string;
1496
1498
  description: string | null;
1497
- dataset_id: string;
1498
1499
  xact_id: string;
1499
1500
  }, {
1500
- id: string;
1501
1501
  created: string | null;
1502
+ id: string;
1503
+ dataset_id: string;
1502
1504
  name: string;
1503
1505
  description: string | null;
1504
- dataset_id: string;
1505
1506
  xact_id: string;
1506
1507
  }>;
1507
1508
  type DatasetSnapshotType = z.infer<typeof DatasetSnapshot>;
@@ -1517,9 +1518,9 @@ declare const RepoInfo: z.ZodUnion<[z.ZodObject<{
1517
1518
  git_diff: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1518
1519
  }, "strip", z.ZodTypeAny, {
1519
1520
  dirty?: boolean | null | undefined;
1520
- tag?: string | null | undefined;
1521
1521
  commit?: string | null | undefined;
1522
1522
  branch?: string | null | undefined;
1523
+ tag?: string | null | undefined;
1523
1524
  author_name?: string | null | undefined;
1524
1525
  author_email?: string | null | undefined;
1525
1526
  commit_message?: string | null | undefined;
@@ -1527,9 +1528,9 @@ declare const RepoInfo: z.ZodUnion<[z.ZodObject<{
1527
1528
  git_diff?: string | null | undefined;
1528
1529
  }, {
1529
1530
  dirty?: boolean | null | undefined;
1530
- tag?: string | null | undefined;
1531
1531
  commit?: string | null | undefined;
1532
1532
  branch?: string | null | undefined;
1533
+ tag?: string | null | undefined;
1533
1534
  author_name?: string | null | undefined;
1534
1535
  author_email?: string | null | undefined;
1535
1536
  commit_message?: string | null | undefined;
@@ -1764,15 +1765,15 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
1764
1765
  name: string;
1765
1766
  arguments: string;
1766
1767
  };
1767
- type: "function";
1768
1768
  id: string;
1769
+ type: "function";
1769
1770
  }, {
1770
1771
  function: {
1771
1772
  name: string;
1772
1773
  arguments: string;
1773
1774
  };
1774
- type: "function";
1775
1775
  id: string;
1776
+ type: "function";
1776
1777
  }>, "many">>;
1777
1778
  reasoning: z.ZodOptional<z.ZodArray<z.ZodObject<{
1778
1779
  id: z.ZodOptional<z.ZodString>;
@@ -1804,8 +1805,8 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
1804
1805
  name: string;
1805
1806
  arguments: string;
1806
1807
  };
1807
- type: "function";
1808
1808
  id: string;
1809
+ type: "function";
1809
1810
  }[] | undefined;
1810
1811
  reasoning?: {
1811
1812
  id?: string | undefined;
@@ -1831,8 +1832,8 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
1831
1832
  name: string;
1832
1833
  arguments: string;
1833
1834
  };
1834
- type: "function";
1835
1835
  id: string;
1836
+ type: "function";
1836
1837
  }[] | undefined;
1837
1838
  reasoning?: {
1838
1839
  id?: string | undefined;
@@ -2008,8 +2009,8 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
2008
2009
  name: string;
2009
2010
  arguments: string;
2010
2011
  };
2011
- type: "function";
2012
2012
  id: string;
2013
+ type: "function";
2013
2014
  }[] | undefined;
2014
2015
  reasoning?: {
2015
2016
  id?: string | undefined;
@@ -2099,8 +2100,8 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
2099
2100
  name: string;
2100
2101
  arguments: string;
2101
2102
  };
2102
- type: "function";
2103
2103
  id: string;
2104
+ type: "function";
2104
2105
  }[] | undefined;
2105
2106
  reasoning?: {
2106
2107
  id?: string | undefined;
@@ -2166,11 +2167,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2166
2167
  runtime: z.ZodEnum<["node", "python", "browser", "quickjs"]>;
2167
2168
  version: z.ZodString;
2168
2169
  }, "strip", z.ZodTypeAny, {
2169
- version: string;
2170
2170
  runtime: "node" | "python" | "browser" | "quickjs";
2171
- }, {
2172
2171
  version: string;
2172
+ }, {
2173
2173
  runtime: "node" | "python" | "browser" | "quickjs";
2174
+ version: string;
2174
2175
  }>;
2175
2176
  location: z.ZodUnion<[z.ZodObject<{
2176
2177
  type: z.ZodLiteral<"experiment">;
@@ -2284,8 +2285,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2284
2285
  preview: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
2285
2286
  }, "strip", z.ZodTypeAny, {
2286
2287
  runtime_context: {
2287
- version: string;
2288
2288
  runtime: "node" | "python" | "browser" | "quickjs";
2289
+ version: string;
2289
2290
  };
2290
2291
  location: {
2291
2292
  type: "experiment";
@@ -2319,8 +2320,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2319
2320
  preview?: string | null | undefined;
2320
2321
  }, {
2321
2322
  runtime_context: {
2322
- version: string;
2323
2323
  runtime: "node" | "python" | "browser" | "quickjs";
2324
+ version: string;
2324
2325
  };
2325
2326
  location: {
2326
2327
  type: "experiment";
@@ -2358,11 +2359,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2358
2359
  runtime: z.ZodEnum<["node", "python", "browser", "quickjs"]>;
2359
2360
  version: z.ZodString;
2360
2361
  }, "strip", z.ZodTypeAny, {
2361
- version: string;
2362
2362
  runtime: "node" | "python" | "browser" | "quickjs";
2363
- }, {
2364
2363
  version: string;
2364
+ }, {
2365
2365
  runtime: "node" | "python" | "browser" | "quickjs";
2366
+ version: string;
2366
2367
  }>;
2367
2368
  code: z.ZodString;
2368
2369
  code_hash: z.ZodOptional<z.ZodString>;
@@ -2370,16 +2371,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2370
2371
  code: string;
2371
2372
  type: "inline";
2372
2373
  runtime_context: {
2373
- version: string;
2374
2374
  runtime: "node" | "python" | "browser" | "quickjs";
2375
+ version: string;
2375
2376
  };
2376
2377
  code_hash?: string | undefined;
2377
2378
  }, {
2378
2379
  code: string;
2379
2380
  type: "inline";
2380
2381
  runtime_context: {
2381
- version: string;
2382
2382
  runtime: "node" | "python" | "browser" | "quickjs";
2383
+ version: string;
2383
2384
  };
2384
2385
  code_hash?: string | undefined;
2385
2386
  }>]>;
@@ -2389,8 +2390,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2389
2390
  type: "bundle";
2390
2391
  } & {
2391
2392
  runtime_context: {
2392
- version: string;
2393
2393
  runtime: "node" | "python" | "browser" | "quickjs";
2394
+ version: string;
2394
2395
  };
2395
2396
  location: {
2396
2397
  type: "experiment";
@@ -2426,8 +2427,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2426
2427
  code: string;
2427
2428
  type: "inline";
2428
2429
  runtime_context: {
2429
- version: string;
2430
2430
  runtime: "node" | "python" | "browser" | "quickjs";
2431
+ version: string;
2431
2432
  };
2432
2433
  code_hash?: string | undefined;
2433
2434
  };
@@ -2437,8 +2438,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2437
2438
  type: "bundle";
2438
2439
  } & {
2439
2440
  runtime_context: {
2440
- version: string;
2441
2441
  runtime: "node" | "python" | "browser" | "quickjs";
2442
+ version: string;
2442
2443
  };
2443
2444
  location: {
2444
2445
  type: "experiment";
@@ -2474,8 +2475,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2474
2475
  code: string;
2475
2476
  type: "inline";
2476
2477
  runtime_context: {
2477
- version: string;
2478
2478
  runtime: "node" | "python" | "browser" | "quickjs";
2479
+ version: string;
2479
2480
  };
2480
2481
  code_hash?: string | undefined;
2481
2482
  };
@@ -2926,15 +2927,15 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2926
2927
  name: string;
2927
2928
  arguments: string;
2928
2929
  };
2929
- type: "function";
2930
2930
  id: string;
2931
+ type: "function";
2931
2932
  }, {
2932
2933
  function: {
2933
2934
  name: string;
2934
2935
  arguments: string;
2935
2936
  };
2936
- type: "function";
2937
2937
  id: string;
2938
+ type: "function";
2938
2939
  }>, "many">>;
2939
2940
  reasoning: z.ZodOptional<z.ZodArray<z.ZodObject<{
2940
2941
  id: z.ZodOptional<z.ZodString>;
@@ -2966,8 +2967,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2966
2967
  name: string;
2967
2968
  arguments: string;
2968
2969
  };
2969
- type: "function";
2970
2970
  id: string;
2971
+ type: "function";
2971
2972
  }[] | undefined;
2972
2973
  reasoning?: {
2973
2974
  id?: string | undefined;
@@ -2993,8 +2994,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2993
2994
  name: string;
2994
2995
  arguments: string;
2995
2996
  };
2996
- type: "function";
2997
2997
  id: string;
2998
+ type: "function";
2998
2999
  }[] | undefined;
2999
3000
  reasoning?: {
3000
3001
  id?: string | undefined;
@@ -3170,8 +3171,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3170
3171
  name: string;
3171
3172
  arguments: string;
3172
3173
  };
3173
- type: "function";
3174
3174
  id: string;
3175
+ type: "function";
3175
3176
  }[] | undefined;
3176
3177
  reasoning?: {
3177
3178
  id?: string | undefined;
@@ -3261,8 +3262,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3261
3262
  name: string;
3262
3263
  arguments: string;
3263
3264
  };
3264
- type: "function";
3265
3265
  id: string;
3266
+ type: "function";
3266
3267
  }[] | undefined;
3267
3268
  reasoning?: {
3268
3269
  id?: string | undefined;
@@ -3364,8 +3365,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3364
3365
  name: string;
3365
3366
  arguments: string;
3366
3367
  };
3367
- type: "function";
3368
3368
  id: string;
3369
+ type: "function";
3369
3370
  }[] | undefined;
3370
3371
  reasoning?: {
3371
3372
  id?: string | undefined;
@@ -3466,8 +3467,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3466
3467
  name: string;
3467
3468
  arguments: string;
3468
3469
  };
3469
- type: "function";
3470
3470
  id: string;
3471
+ type: "function";
3471
3472
  }[] | undefined;
3472
3473
  reasoning?: {
3473
3474
  id?: string | undefined;
@@ -3540,21 +3541,21 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3540
3541
  node: string;
3541
3542
  variable: string;
3542
3543
  };
3543
- purpose: "data" | "messages" | "control";
3544
3544
  target: {
3545
3545
  node: string;
3546
3546
  variable: string;
3547
3547
  };
3548
+ purpose: "data" | "messages" | "control";
3548
3549
  }, {
3549
3550
  source: {
3550
3551
  node: string;
3551
3552
  variable: string;
3552
3553
  };
3553
- purpose: "data" | "messages" | "control";
3554
3554
  target: {
3555
3555
  node: string;
3556
3556
  variable: string;
3557
3557
  };
3558
+ purpose: "data" | "messages" | "control";
3558
3559
  }>>;
3559
3560
  }, "strip", z.ZodTypeAny, {
3560
3561
  type: "graph";
@@ -3669,8 +3670,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3669
3670
  name: string;
3670
3671
  arguments: string;
3671
3672
  };
3672
- type: "function";
3673
3673
  id: string;
3674
+ type: "function";
3674
3675
  }[] | undefined;
3675
3676
  reasoning?: {
3676
3677
  id?: string | undefined;
@@ -3721,11 +3722,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3721
3722
  node: string;
3722
3723
  variable: string;
3723
3724
  };
3724
- purpose: "data" | "messages" | "control";
3725
3725
  target: {
3726
3726
  node: string;
3727
3727
  variable: string;
3728
3728
  };
3729
+ purpose: "data" | "messages" | "control";
3729
3730
  }>;
3730
3731
  }, {
3731
3732
  type: "graph";
@@ -3840,8 +3841,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3840
3841
  name: string;
3841
3842
  arguments: string;
3842
3843
  };
3843
- type: "function";
3844
3844
  id: string;
3845
+ type: "function";
3845
3846
  }[] | undefined;
3846
3847
  reasoning?: {
3847
3848
  id?: string | undefined;
@@ -3892,11 +3893,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3892
3893
  node: string;
3893
3894
  variable: string;
3894
3895
  };
3895
- purpose: "data" | "messages" | "control";
3896
3896
  target: {
3897
3897
  node: string;
3898
3898
  variable: string;
3899
3899
  };
3900
+ purpose: "data" | "messages" | "control";
3900
3901
  }>;
3901
3902
  }>, z.ZodObject<{
3902
3903
  type: z.ZodLiteral<"remote_eval">;
@@ -3928,12 +3929,12 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3928
3929
  }, "strip", z.ZodTypeAny, {
3929
3930
  type: "global";
3930
3931
  name: string;
3931
- function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
3932
+ function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
3932
3933
  config?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
3933
3934
  }, {
3934
3935
  type: "global";
3935
3936
  name: string;
3936
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
3937
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
3937
3938
  config?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
3938
3939
  }>, z.ZodObject<{
3939
3940
  type: z.ZodLiteral<"facet">;
@@ -3942,12 +3943,12 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3942
3943
  id: z.ZodString;
3943
3944
  version: z.ZodOptional<z.ZodString>;
3944
3945
  }, "strip", z.ZodTypeAny, {
3945
- type: "function";
3946
3946
  id: string;
3947
+ type: "function";
3947
3948
  version?: string | undefined;
3948
3949
  }, {
3949
- type: "function";
3950
3950
  id: string;
3951
+ type: "function";
3951
3952
  version?: string | undefined;
3952
3953
  }>, z.ZodObject<{
3953
3954
  type: z.ZodLiteral<"global">;
@@ -3956,11 +3957,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3956
3957
  }, "strip", z.ZodTypeAny, {
3957
3958
  type: "global";
3958
3959
  name: string;
3959
- function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
3960
+ function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
3960
3961
  }, {
3961
3962
  type: "global";
3962
3963
  name: string;
3963
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
3964
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
3964
3965
  }>, z.ZodNull]>, z.ZodUnknown>>;
3965
3966
  prompt: z.ZodString;
3966
3967
  model: z.ZodOptional<z.ZodString>;
@@ -3969,32 +3970,32 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3969
3970
  }, "strip", z.ZodTypeAny, {
3970
3971
  type: "facet";
3971
3972
  prompt: string;
3973
+ model?: string | undefined;
3972
3974
  preprocessor?: {
3973
- type: "function";
3974
3975
  id: string;
3976
+ type: "function";
3975
3977
  version?: string | undefined;
3976
3978
  } | {
3977
3979
  type: "global";
3978
3980
  name: string;
3979
- function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
3981
+ function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
3980
3982
  } | null | undefined;
3981
3983
  embedding_model?: string | undefined;
3982
- model?: string | undefined;
3983
3984
  no_match_pattern?: string | undefined;
3984
3985
  }, {
3985
3986
  type: "facet";
3986
3987
  prompt: string;
3988
+ model?: string | undefined;
3987
3989
  preprocessor?: {
3988
- type: "function";
3989
3990
  id: string;
3991
+ type: "function";
3990
3992
  version?: string | undefined;
3991
3993
  } | {
3992
3994
  type: "global";
3993
3995
  name: string;
3994
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
3996
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
3995
3997
  } | null | undefined;
3996
3998
  embedding_model?: string | undefined;
3997
- model?: string | undefined;
3998
3999
  no_match_pattern?: string | undefined;
3999
4000
  }>, z.ZodObject<{
4000
4001
  type: z.ZodLiteral<"batched_facet">;
@@ -4003,12 +4004,12 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4003
4004
  id: z.ZodString;
4004
4005
  version: z.ZodOptional<z.ZodString>;
4005
4006
  }, "strip", z.ZodTypeAny, {
4006
- type: "function";
4007
4007
  id: string;
4008
+ type: "function";
4008
4009
  version?: string | undefined;
4009
4010
  }, {
4010
- type: "function";
4011
4011
  id: string;
4012
+ type: "function";
4012
4013
  version?: string | undefined;
4013
4014
  }>, z.ZodObject<{
4014
4015
  type: z.ZodLiteral<"global">;
@@ -4017,11 +4018,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4017
4018
  }, "strip", z.ZodTypeAny, {
4018
4019
  type: "global";
4019
4020
  name: string;
4020
- function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
4021
+ function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
4021
4022
  }, {
4022
4023
  type: "global";
4023
4024
  name: string;
4024
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4025
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
4025
4026
  }>, z.ZodNull]>, z.ZodUnknown>>;
4026
4027
  facets: z.ZodArray<z.ZodObject<{
4027
4028
  name: z.ZodString;
@@ -4032,14 +4033,14 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4032
4033
  }, "strip", z.ZodTypeAny, {
4033
4034
  prompt: string;
4034
4035
  name: string;
4035
- embedding_model?: string | undefined;
4036
4036
  model?: string | undefined;
4037
+ embedding_model?: string | undefined;
4037
4038
  no_match_pattern?: string | undefined;
4038
4039
  }, {
4039
4040
  prompt: string;
4040
4041
  name: string;
4041
- embedding_model?: string | undefined;
4042
4042
  model?: string | undefined;
4043
+ embedding_model?: string | undefined;
4043
4044
  no_match_pattern?: string | undefined;
4044
4045
  }>, "many">;
4045
4046
  topic_maps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
@@ -4082,10 +4083,13 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4082
4083
  }>>;
4083
4084
  disable_reconciliation: z.ZodOptional<z.ZodBoolean>;
4084
4085
  distance_threshold: z.ZodOptional<z.ZodNumber>;
4086
+ btql_filter: z.ZodOptional<z.ZodString>;
4087
+ automation_btql_filter: z.ZodOptional<z.ZodString>;
4085
4088
  }, "strip", z.ZodTypeAny, {
4086
4089
  type: "topic_map";
4087
4090
  source_facet: string;
4088
4091
  embedding_model: string;
4092
+ btql_filter?: string | undefined;
4089
4093
  bundle_key?: string | undefined;
4090
4094
  report_key?: string | undefined;
4091
4095
  topic_names?: Record<string, string> | undefined;
@@ -4101,10 +4105,12 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4101
4105
  } | undefined;
4102
4106
  disable_reconciliation?: boolean | undefined;
4103
4107
  distance_threshold?: number | undefined;
4108
+ automation_btql_filter?: string | undefined;
4104
4109
  }, {
4105
4110
  type: "topic_map";
4106
4111
  source_facet: string;
4107
4112
  embedding_model: string;
4113
+ btql_filter?: string | undefined;
4108
4114
  bundle_key?: string | undefined;
4109
4115
  report_key?: string | undefined;
4110
4116
  topic_names?: Record<string, string> | undefined;
@@ -4120,6 +4126,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4120
4126
  } | undefined;
4121
4127
  disable_reconciliation?: boolean | undefined;
4122
4128
  distance_threshold?: number | undefined;
4129
+ automation_btql_filter?: string | undefined;
4123
4130
  }>;
4124
4131
  }, "strip", z.ZodTypeAny, {
4125
4132
  function_name: string;
@@ -4127,6 +4134,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4127
4134
  type: "topic_map";
4128
4135
  source_facet: string;
4129
4136
  embedding_model: string;
4137
+ btql_filter?: string | undefined;
4130
4138
  bundle_key?: string | undefined;
4131
4139
  report_key?: string | undefined;
4132
4140
  topic_names?: Record<string, string> | undefined;
@@ -4142,6 +4150,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4142
4150
  } | undefined;
4143
4151
  disable_reconciliation?: boolean | undefined;
4144
4152
  distance_threshold?: number | undefined;
4153
+ automation_btql_filter?: string | undefined;
4145
4154
  };
4146
4155
  topic_map_id?: string | undefined;
4147
4156
  }, {
@@ -4150,6 +4159,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4150
4159
  type: "topic_map";
4151
4160
  source_facet: string;
4152
4161
  embedding_model: string;
4162
+ btql_filter?: string | undefined;
4153
4163
  bundle_key?: string | undefined;
4154
4164
  report_key?: string | undefined;
4155
4165
  topic_names?: Record<string, string> | undefined;
@@ -4165,6 +4175,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4165
4175
  } | undefined;
4166
4176
  disable_reconciliation?: boolean | undefined;
4167
4177
  distance_threshold?: number | undefined;
4178
+ automation_btql_filter?: string | undefined;
4168
4179
  };
4169
4180
  topic_map_id?: string | undefined;
4170
4181
  }>, "many">>>;
@@ -4173,18 +4184,18 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4173
4184
  facets: {
4174
4185
  prompt: string;
4175
4186
  name: string;
4176
- embedding_model?: string | undefined;
4177
4187
  model?: string | undefined;
4188
+ embedding_model?: string | undefined;
4178
4189
  no_match_pattern?: string | undefined;
4179
4190
  }[];
4180
4191
  preprocessor?: {
4181
- type: "function";
4182
4192
  id: string;
4193
+ type: "function";
4183
4194
  version?: string | undefined;
4184
4195
  } | {
4185
4196
  type: "global";
4186
4197
  name: string;
4187
- function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
4198
+ function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
4188
4199
  } | null | undefined;
4189
4200
  topic_maps?: Record<string, {
4190
4201
  function_name: string;
@@ -4192,6 +4203,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4192
4203
  type: "topic_map";
4193
4204
  source_facet: string;
4194
4205
  embedding_model: string;
4206
+ btql_filter?: string | undefined;
4195
4207
  bundle_key?: string | undefined;
4196
4208
  report_key?: string | undefined;
4197
4209
  topic_names?: Record<string, string> | undefined;
@@ -4207,6 +4219,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4207
4219
  } | undefined;
4208
4220
  disable_reconciliation?: boolean | undefined;
4209
4221
  distance_threshold?: number | undefined;
4222
+ automation_btql_filter?: string | undefined;
4210
4223
  };
4211
4224
  topic_map_id?: string | undefined;
4212
4225
  }[]> | undefined;
@@ -4215,18 +4228,18 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4215
4228
  facets: {
4216
4229
  prompt: string;
4217
4230
  name: string;
4218
- embedding_model?: string | undefined;
4219
4231
  model?: string | undefined;
4232
+ embedding_model?: string | undefined;
4220
4233
  no_match_pattern?: string | undefined;
4221
4234
  }[];
4222
4235
  preprocessor?: {
4223
- type: "function";
4224
4236
  id: string;
4237
+ type: "function";
4225
4238
  version?: string | undefined;
4226
4239
  } | {
4227
4240
  type: "global";
4228
4241
  name: string;
4229
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4242
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
4230
4243
  } | null | undefined;
4231
4244
  topic_maps?: Record<string, {
4232
4245
  function_name: string;
@@ -4234,6 +4247,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4234
4247
  type: "topic_map";
4235
4248
  source_facet: string;
4236
4249
  embedding_model: string;
4250
+ btql_filter?: string | undefined;
4237
4251
  bundle_key?: string | undefined;
4238
4252
  report_key?: string | undefined;
4239
4253
  topic_names?: Record<string, string> | undefined;
@@ -4249,6 +4263,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4249
4263
  } | undefined;
4250
4264
  disable_reconciliation?: boolean | undefined;
4251
4265
  distance_threshold?: number | undefined;
4266
+ automation_btql_filter?: string | undefined;
4252
4267
  };
4253
4268
  topic_map_id?: string | undefined;
4254
4269
  }[]> | undefined;
@@ -4330,10 +4345,13 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4330
4345
  }>>;
4331
4346
  disable_reconciliation: z.ZodOptional<z.ZodBoolean>;
4332
4347
  distance_threshold: z.ZodOptional<z.ZodNumber>;
4348
+ btql_filter: z.ZodOptional<z.ZodString>;
4349
+ automation_btql_filter: z.ZodOptional<z.ZodString>;
4333
4350
  }, "strip", z.ZodTypeAny, {
4334
4351
  type: "topic_map";
4335
4352
  source_facet: string;
4336
4353
  embedding_model: string;
4354
+ btql_filter?: string | undefined;
4337
4355
  bundle_key?: string | undefined;
4338
4356
  report_key?: string | undefined;
4339
4357
  topic_names?: Record<string, string> | undefined;
@@ -4349,10 +4367,12 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4349
4367
  } | undefined;
4350
4368
  disable_reconciliation?: boolean | undefined;
4351
4369
  distance_threshold?: number | undefined;
4370
+ automation_btql_filter?: string | undefined;
4352
4371
  }, {
4353
4372
  type: "topic_map";
4354
4373
  source_facet: string;
4355
4374
  embedding_model: string;
4375
+ btql_filter?: string | undefined;
4356
4376
  bundle_key?: string | undefined;
4357
4377
  report_key?: string | undefined;
4358
4378
  topic_names?: Record<string, string> | undefined;
@@ -4368,6 +4388,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4368
4388
  } | undefined;
4369
4389
  disable_reconciliation?: boolean | undefined;
4370
4390
  distance_threshold?: number | undefined;
4391
+ automation_btql_filter?: string | undefined;
4371
4392
  }>, z.ZodUnknown>]>;
4372
4393
  declare const PromptData: z.ZodObject<{
4373
4394
  prompt: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -4597,15 +4618,15 @@ declare const PromptData: z.ZodObject<{
4597
4618
  name: string;
4598
4619
  arguments: string;
4599
4620
  };
4600
- type: "function";
4601
4621
  id: string;
4622
+ type: "function";
4602
4623
  }, {
4603
4624
  function: {
4604
4625
  name: string;
4605
4626
  arguments: string;
4606
4627
  };
4607
- type: "function";
4608
4628
  id: string;
4629
+ type: "function";
4609
4630
  }>, "many">>;
4610
4631
  reasoning: z.ZodOptional<z.ZodArray<z.ZodObject<{
4611
4632
  id: z.ZodOptional<z.ZodString>;
@@ -4637,8 +4658,8 @@ declare const PromptData: z.ZodObject<{
4637
4658
  name: string;
4638
4659
  arguments: string;
4639
4660
  };
4640
- type: "function";
4641
4661
  id: string;
4662
+ type: "function";
4642
4663
  }[] | undefined;
4643
4664
  reasoning?: {
4644
4665
  id?: string | undefined;
@@ -4664,8 +4685,8 @@ declare const PromptData: z.ZodObject<{
4664
4685
  name: string;
4665
4686
  arguments: string;
4666
4687
  };
4667
- type: "function";
4668
4688
  id: string;
4689
+ type: "function";
4669
4690
  }[] | undefined;
4670
4691
  reasoning?: {
4671
4692
  id?: string | undefined;
@@ -4841,8 +4862,8 @@ declare const PromptData: z.ZodObject<{
4841
4862
  name: string;
4842
4863
  arguments: string;
4843
4864
  };
4844
- type: "function";
4845
4865
  id: string;
4866
+ type: "function";
4846
4867
  }[] | undefined;
4847
4868
  reasoning?: {
4848
4869
  id?: string | undefined;
@@ -4932,8 +4953,8 @@ declare const PromptData: z.ZodObject<{
4932
4953
  name: string;
4933
4954
  arguments: string;
4934
4955
  };
4935
- type: "function";
4936
4956
  id: string;
4957
+ type: "function";
4937
4958
  }[] | undefined;
4938
4959
  reasoning?: {
4939
4960
  id?: string | undefined;
@@ -5578,30 +5599,33 @@ declare const PromptData: z.ZodObject<{
5578
5599
  choice_scores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
5579
5600
  choice: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5580
5601
  allow_no_match: z.ZodOptional<z.ZodBoolean>;
5602
+ allow_skip: z.ZodOptional<z.ZodBoolean>;
5581
5603
  }, "strip", z.ZodTypeAny, {
5582
5604
  type: "llm_classifier";
5583
5605
  use_cot: boolean;
5584
5606
  choice_scores?: Record<string, number> | undefined;
5585
5607
  choice?: string[] | undefined;
5586
5608
  allow_no_match?: boolean | undefined;
5609
+ allow_skip?: boolean | undefined;
5587
5610
  }, {
5588
5611
  type: "llm_classifier";
5589
5612
  use_cot: boolean;
5590
5613
  choice_scores?: Record<string, number> | undefined;
5591
5614
  choice?: string[] | undefined;
5592
5615
  allow_no_match?: boolean | undefined;
5616
+ allow_skip?: boolean | undefined;
5593
5617
  }>, z.ZodNull]>>;
5594
5618
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
5595
5619
  type: z.ZodLiteral<"function">;
5596
5620
  id: z.ZodString;
5597
5621
  version: z.ZodOptional<z.ZodString>;
5598
5622
  }, "strip", z.ZodTypeAny, {
5599
- type: "function";
5600
5623
  id: string;
5624
+ type: "function";
5601
5625
  version?: string | undefined;
5602
5626
  }, {
5603
- type: "function";
5604
5627
  id: string;
5628
+ type: "function";
5605
5629
  version?: string | undefined;
5606
5630
  }>, z.ZodObject<{
5607
5631
  type: z.ZodLiteral<"global">;
@@ -5610,11 +5634,11 @@ declare const PromptData: z.ZodObject<{
5610
5634
  }, "strip", z.ZodTypeAny, {
5611
5635
  type: "global";
5612
5636
  name: string;
5613
- function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
5637
+ function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
5614
5638
  }, {
5615
5639
  type: "global";
5616
5640
  name: string;
5617
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
5641
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
5618
5642
  }>]>, "many">, z.ZodNull]>>;
5619
5643
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
5620
5644
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -5623,13 +5647,13 @@ declare const PromptData: z.ZodObject<{
5623
5647
  is_disabled: z.ZodOptional<z.ZodBoolean>;
5624
5648
  enabled_tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
5625
5649
  }, "strip", z.ZodTypeAny, {
5626
- type: "id";
5627
5650
  id: string;
5651
+ type: "id";
5628
5652
  is_disabled?: boolean | undefined;
5629
5653
  enabled_tools?: string[] | null | undefined;
5630
5654
  }, {
5631
- type: "id";
5632
5655
  id: string;
5656
+ type: "id";
5633
5657
  is_disabled?: boolean | undefined;
5634
5658
  enabled_tools?: string[] | null | undefined;
5635
5659
  }>, z.ZodObject<{
@@ -5837,8 +5861,8 @@ declare const PromptData: z.ZodObject<{
5837
5861
  name: string;
5838
5862
  arguments: string;
5839
5863
  };
5840
- type: "function";
5841
5864
  id: string;
5865
+ type: "function";
5842
5866
  }[] | undefined;
5843
5867
  reasoning?: {
5844
5868
  id?: string | undefined;
@@ -5889,20 +5913,21 @@ declare const PromptData: z.ZodObject<{
5889
5913
  choice_scores?: Record<string, number> | undefined;
5890
5914
  choice?: string[] | undefined;
5891
5915
  allow_no_match?: boolean | undefined;
5916
+ allow_skip?: boolean | undefined;
5892
5917
  } | null | undefined;
5893
5918
  tool_functions?: ({
5894
- type: "function";
5895
5919
  id: string;
5920
+ type: "function";
5896
5921
  version?: string | undefined;
5897
5922
  } | {
5898
5923
  type: "global";
5899
5924
  name: string;
5900
- function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
5925
+ function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
5901
5926
  })[] | null | undefined;
5902
5927
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
5903
5928
  mcp?: Record<string, {
5904
- type: "id";
5905
5929
  id: string;
5930
+ type: "id";
5906
5931
  is_disabled?: boolean | undefined;
5907
5932
  enabled_tools?: string[] | null | undefined;
5908
5933
  } | {
@@ -6087,8 +6112,8 @@ declare const PromptData: z.ZodObject<{
6087
6112
  name: string;
6088
6113
  arguments: string;
6089
6114
  };
6090
- type: "function";
6091
6115
  id: string;
6116
+ type: "function";
6092
6117
  }[] | undefined;
6093
6118
  reasoning?: {
6094
6119
  id?: string | undefined;
@@ -6139,20 +6164,21 @@ declare const PromptData: z.ZodObject<{
6139
6164
  choice_scores?: Record<string, number> | undefined;
6140
6165
  choice?: string[] | undefined;
6141
6166
  allow_no_match?: boolean | undefined;
6167
+ allow_skip?: boolean | undefined;
6142
6168
  } | null | undefined;
6143
6169
  tool_functions?: ({
6144
- type: "function";
6145
6170
  id: string;
6171
+ type: "function";
6146
6172
  version?: string | undefined;
6147
6173
  } | {
6148
6174
  type: "global";
6149
6175
  name: string;
6150
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
6176
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
6151
6177
  })[] | null | undefined;
6152
6178
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
6153
6179
  mcp?: Record<string, {
6154
- type: "id";
6155
6180
  id: string;
6181
+ type: "id";
6156
6182
  is_disabled?: boolean | undefined;
6157
6183
  enabled_tools?: string[] | null | undefined;
6158
6184
  } | {
@@ -6168,10 +6194,10 @@ declare const GitMetadataSettings: z.ZodObject<{
6168
6194
  fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
6169
6195
  }, "strip", z.ZodTypeAny, {
6170
6196
  collect: "some" | "none" | "all";
6171
- fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
6197
+ fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
6172
6198
  }, {
6173
6199
  collect: "some" | "none" | "all";
6174
- fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
6200
+ fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
6175
6201
  }>;
6176
6202
  type GitMetadataSettingsType = z.infer<typeof GitMetadataSettings>;
6177
6203
  declare const IfExists: z.ZodEnum<["error", "ignore", "replace"]>;
@@ -6186,14 +6212,14 @@ declare const ObjectReference: z.ZodObject<{
6186
6212
  id: string;
6187
6213
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
6188
6214
  object_id: string;
6189
- created?: string | null | undefined;
6190
6215
  _xact_id?: string | null | undefined;
6216
+ created?: string | null | undefined;
6191
6217
  }, {
6192
6218
  id: string;
6193
6219
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
6194
6220
  object_id: string;
6195
- created?: string | null | undefined;
6196
6221
  _xact_id?: string | null | undefined;
6222
+ created?: string | null | undefined;
6197
6223
  }>;
6198
6224
  type ObjectReferenceType = z.infer<typeof ObjectReference>;
6199
6225
  declare const Prompt$1: z.ZodObject<{
@@ -6434,15 +6460,15 @@ declare const Prompt$1: z.ZodObject<{
6434
6460
  name: string;
6435
6461
  arguments: string;
6436
6462
  };
6437
- type: "function";
6438
6463
  id: string;
6464
+ type: "function";
6439
6465
  }, {
6440
6466
  function: {
6441
6467
  name: string;
6442
6468
  arguments: string;
6443
6469
  };
6444
- type: "function";
6445
6470
  id: string;
6471
+ type: "function";
6446
6472
  }>, "many">>;
6447
6473
  reasoning: z.ZodOptional<z.ZodArray<z.ZodObject<{
6448
6474
  id: z.ZodOptional<z.ZodString>;
@@ -6474,8 +6500,8 @@ declare const Prompt$1: z.ZodObject<{
6474
6500
  name: string;
6475
6501
  arguments: string;
6476
6502
  };
6477
- type: "function";
6478
6503
  id: string;
6504
+ type: "function";
6479
6505
  }[] | undefined;
6480
6506
  reasoning?: {
6481
6507
  id?: string | undefined;
@@ -6501,8 +6527,8 @@ declare const Prompt$1: z.ZodObject<{
6501
6527
  name: string;
6502
6528
  arguments: string;
6503
6529
  };
6504
- type: "function";
6505
6530
  id: string;
6531
+ type: "function";
6506
6532
  }[] | undefined;
6507
6533
  reasoning?: {
6508
6534
  id?: string | undefined;
@@ -6678,8 +6704,8 @@ declare const Prompt$1: z.ZodObject<{
6678
6704
  name: string;
6679
6705
  arguments: string;
6680
6706
  };
6681
- type: "function";
6682
6707
  id: string;
6708
+ type: "function";
6683
6709
  }[] | undefined;
6684
6710
  reasoning?: {
6685
6711
  id?: string | undefined;
@@ -6769,8 +6795,8 @@ declare const Prompt$1: z.ZodObject<{
6769
6795
  name: string;
6770
6796
  arguments: string;
6771
6797
  };
6772
- type: "function";
6773
6798
  id: string;
6799
+ type: "function";
6774
6800
  }[] | undefined;
6775
6801
  reasoning?: {
6776
6802
  id?: string | undefined;
@@ -7415,30 +7441,33 @@ declare const Prompt$1: z.ZodObject<{
7415
7441
  choice_scores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7416
7442
  choice: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7417
7443
  allow_no_match: z.ZodOptional<z.ZodBoolean>;
7444
+ allow_skip: z.ZodOptional<z.ZodBoolean>;
7418
7445
  }, "strip", z.ZodTypeAny, {
7419
7446
  type: "llm_classifier";
7420
7447
  use_cot: boolean;
7421
7448
  choice_scores?: Record<string, number> | undefined;
7422
7449
  choice?: string[] | undefined;
7423
7450
  allow_no_match?: boolean | undefined;
7451
+ allow_skip?: boolean | undefined;
7424
7452
  }, {
7425
7453
  type: "llm_classifier";
7426
7454
  use_cot: boolean;
7427
7455
  choice_scores?: Record<string, number> | undefined;
7428
7456
  choice?: string[] | undefined;
7429
7457
  allow_no_match?: boolean | undefined;
7458
+ allow_skip?: boolean | undefined;
7430
7459
  }>, z.ZodNull]>>;
7431
7460
  tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
7432
7461
  type: z.ZodLiteral<"function">;
7433
7462
  id: z.ZodString;
7434
7463
  version: z.ZodOptional<z.ZodString>;
7435
7464
  }, "strip", z.ZodTypeAny, {
7436
- type: "function";
7437
7465
  id: string;
7466
+ type: "function";
7438
7467
  version?: string | undefined;
7439
7468
  }, {
7440
- type: "function";
7441
7469
  id: string;
7470
+ type: "function";
7442
7471
  version?: string | undefined;
7443
7472
  }>, z.ZodObject<{
7444
7473
  type: z.ZodLiteral<"global">;
@@ -7447,11 +7476,11 @@ declare const Prompt$1: z.ZodObject<{
7447
7476
  }, "strip", z.ZodTypeAny, {
7448
7477
  type: "global";
7449
7478
  name: string;
7450
- function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
7479
+ function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
7451
7480
  }, {
7452
7481
  type: "global";
7453
7482
  name: string;
7454
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
7483
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
7455
7484
  }>]>, "many">, z.ZodNull]>>;
7456
7485
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
7457
7486
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -7460,13 +7489,13 @@ declare const Prompt$1: z.ZodObject<{
7460
7489
  is_disabled: z.ZodOptional<z.ZodBoolean>;
7461
7490
  enabled_tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
7462
7491
  }, "strip", z.ZodTypeAny, {
7463
- type: "id";
7464
7492
  id: string;
7493
+ type: "id";
7465
7494
  is_disabled?: boolean | undefined;
7466
7495
  enabled_tools?: string[] | null | undefined;
7467
7496
  }, {
7468
- type: "id";
7469
7497
  id: string;
7498
+ type: "id";
7470
7499
  is_disabled?: boolean | undefined;
7471
7500
  enabled_tools?: string[] | null | undefined;
7472
7501
  }>, z.ZodObject<{
@@ -7674,8 +7703,8 @@ declare const Prompt$1: z.ZodObject<{
7674
7703
  name: string;
7675
7704
  arguments: string;
7676
7705
  };
7677
- type: "function";
7678
7706
  id: string;
7707
+ type: "function";
7679
7708
  }[] | undefined;
7680
7709
  reasoning?: {
7681
7710
  id?: string | undefined;
@@ -7726,20 +7755,21 @@ declare const Prompt$1: z.ZodObject<{
7726
7755
  choice_scores?: Record<string, number> | undefined;
7727
7756
  choice?: string[] | undefined;
7728
7757
  allow_no_match?: boolean | undefined;
7758
+ allow_skip?: boolean | undefined;
7729
7759
  } | null | undefined;
7730
7760
  tool_functions?: ({
7731
- type: "function";
7732
7761
  id: string;
7762
+ type: "function";
7733
7763
  version?: string | undefined;
7734
7764
  } | {
7735
7765
  type: "global";
7736
7766
  name: string;
7737
- function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
7767
+ function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
7738
7768
  })[] | null | undefined;
7739
7769
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
7740
7770
  mcp?: Record<string, {
7741
- type: "id";
7742
7771
  id: string;
7772
+ type: "id";
7743
7773
  is_disabled?: boolean | undefined;
7744
7774
  enabled_tools?: string[] | null | undefined;
7745
7775
  } | {
@@ -7924,8 +7954,8 @@ declare const Prompt$1: z.ZodObject<{
7924
7954
  name: string;
7925
7955
  arguments: string;
7926
7956
  };
7927
- type: "function";
7928
7957
  id: string;
7958
+ type: "function";
7929
7959
  }[] | undefined;
7930
7960
  reasoning?: {
7931
7961
  id?: string | undefined;
@@ -7976,20 +8006,21 @@ declare const Prompt$1: z.ZodObject<{
7976
8006
  choice_scores?: Record<string, number> | undefined;
7977
8007
  choice?: string[] | undefined;
7978
8008
  allow_no_match?: boolean | undefined;
8009
+ allow_skip?: boolean | undefined;
7979
8010
  } | null | undefined;
7980
8011
  tool_functions?: ({
7981
- type: "function";
7982
8012
  id: string;
8013
+ type: "function";
7983
8014
  version?: string | undefined;
7984
8015
  } | {
7985
8016
  type: "global";
7986
8017
  name: string;
7987
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8018
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
7988
8019
  })[] | null | undefined;
7989
8020
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
7990
8021
  mcp?: Record<string, {
7991
- type: "id";
7992
8022
  id: string;
8023
+ type: "id";
7993
8024
  is_disabled?: boolean | undefined;
7994
8025
  enabled_tools?: string[] | null | undefined;
7995
8026
  } | {
@@ -8003,17 +8034,16 @@ declare const Prompt$1: z.ZodObject<{
8003
8034
  metadata: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodNull]>>;
8004
8035
  function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>, z.ZodNull]>>;
8005
8036
  }, "strip", z.ZodTypeAny, {
8037
+ _xact_id: string;
8006
8038
  id: string;
8039
+ project_id: string;
8040
+ log_id: "p";
8007
8041
  org_id: string;
8008
8042
  name: string;
8009
- project_id: string;
8010
- _xact_id: string;
8011
8043
  slug: string;
8012
- log_id: "p";
8013
8044
  created?: string | null | undefined;
8014
8045
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
8015
8046
  description?: string | null | undefined;
8016
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
8017
8047
  tags?: string[] | null | undefined;
8018
8048
  prompt_data?: {
8019
8049
  options?: {
@@ -8191,8 +8221,8 @@ declare const Prompt$1: z.ZodObject<{
8191
8221
  name: string;
8192
8222
  arguments: string;
8193
8223
  };
8194
- type: "function";
8195
8224
  id: string;
8225
+ type: "function";
8196
8226
  }[] | undefined;
8197
8227
  reasoning?: {
8198
8228
  id?: string | undefined;
@@ -8243,20 +8273,21 @@ declare const Prompt$1: z.ZodObject<{
8243
8273
  choice_scores?: Record<string, number> | undefined;
8244
8274
  choice?: string[] | undefined;
8245
8275
  allow_no_match?: boolean | undefined;
8276
+ allow_skip?: boolean | undefined;
8246
8277
  } | null | undefined;
8247
8278
  tool_functions?: ({
8248
- type: "function";
8249
8279
  id: string;
8280
+ type: "function";
8250
8281
  version?: string | undefined;
8251
8282
  } | {
8252
8283
  type: "global";
8253
8284
  name: string;
8254
- function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
8285
+ function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
8255
8286
  })[] | null | undefined;
8256
8287
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
8257
8288
  mcp?: Record<string, {
8258
- type: "id";
8259
8289
  id: string;
8290
+ type: "id";
8260
8291
  is_disabled?: boolean | undefined;
8261
8292
  enabled_tools?: string[] | null | undefined;
8262
8293
  } | {
@@ -8266,18 +8297,18 @@ declare const Prompt$1: z.ZodObject<{
8266
8297
  enabled_tools?: string[] | null | undefined;
8267
8298
  }> | null | undefined;
8268
8299
  } | null | undefined;
8300
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
8269
8301
  }, {
8302
+ _xact_id: string;
8270
8303
  id: string;
8304
+ project_id: string;
8305
+ log_id: "p";
8271
8306
  org_id: string;
8272
8307
  name: string;
8273
- project_id: string;
8274
- _xact_id: string;
8275
8308
  slug: string;
8276
- log_id: "p";
8277
8309
  created?: string | null | undefined;
8278
8310
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
8279
8311
  description?: string | null | undefined;
8280
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
8281
8312
  tags?: string[] | null | undefined;
8282
8313
  prompt_data?: {
8283
8314
  options?: {
@@ -8455,8 +8486,8 @@ declare const Prompt$1: z.ZodObject<{
8455
8486
  name: string;
8456
8487
  arguments: string;
8457
8488
  };
8458
- type: "function";
8459
8489
  id: string;
8490
+ type: "function";
8460
8491
  }[] | undefined;
8461
8492
  reasoning?: {
8462
8493
  id?: string | undefined;
@@ -8507,20 +8538,21 @@ declare const Prompt$1: z.ZodObject<{
8507
8538
  choice_scores?: Record<string, number> | undefined;
8508
8539
  choice?: string[] | undefined;
8509
8540
  allow_no_match?: boolean | undefined;
8541
+ allow_skip?: boolean | undefined;
8510
8542
  } | null | undefined;
8511
8543
  tool_functions?: ({
8512
- type: "function";
8513
8544
  id: string;
8545
+ type: "function";
8514
8546
  version?: string | undefined;
8515
8547
  } | {
8516
8548
  type: "global";
8517
8549
  name: string;
8518
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8550
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
8519
8551
  })[] | null | undefined;
8520
8552
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
8521
8553
  mcp?: Record<string, {
8522
- type: "id";
8523
8554
  id: string;
8555
+ type: "id";
8524
8556
  is_disabled?: boolean | undefined;
8525
8557
  enabled_tools?: string[] | null | undefined;
8526
8558
  } | {
@@ -8530,6 +8562,7 @@ declare const Prompt$1: z.ZodObject<{
8530
8562
  enabled_tools?: string[] | null | undefined;
8531
8563
  }> | null | undefined;
8532
8564
  } | null | undefined;
8565
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
8533
8566
  }>;
8534
8567
  type PromptType = z.infer<typeof Prompt$1>;
8535
8568
  declare const PromptSessionEvent: z.ZodObject<{
@@ -8547,31 +8580,31 @@ declare const PromptSessionEvent: z.ZodObject<{
8547
8580
  completion: z.ZodOptional<z.ZodUnknown>;
8548
8581
  tags: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
8549
8582
  }, "strip", z.ZodTypeAny, {
8550
- id: string;
8551
- created: string;
8552
- project_id: string;
8553
8583
  _xact_id: string;
8584
+ created: string;
8585
+ id: string;
8554
8586
  prompt_session_id: string;
8555
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
8556
- tags?: string[] | null | undefined;
8587
+ project_id: string;
8588
+ function_data?: unknown;
8557
8589
  _pagination_key?: string | null | undefined;
8590
+ tags?: string[] | null | undefined;
8558
8591
  completion?: unknown;
8559
8592
  prompt_data?: unknown;
8560
- function_data?: unknown;
8593
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
8561
8594
  prompt_session_data?: unknown;
8562
8595
  object_data?: unknown;
8563
8596
  }, {
8564
- id: string;
8565
- created: string;
8566
- project_id: string;
8567
8597
  _xact_id: string;
8598
+ created: string;
8599
+ id: string;
8568
8600
  prompt_session_id: string;
8569
- function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
8570
- tags?: string[] | null | undefined;
8601
+ project_id: string;
8602
+ function_data?: unknown;
8571
8603
  _pagination_key?: string | null | undefined;
8604
+ tags?: string[] | null | undefined;
8572
8605
  completion?: unknown;
8573
8606
  prompt_data?: unknown;
8574
- function_data?: unknown;
8607
+ function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
8575
8608
  prompt_session_data?: unknown;
8576
8609
  object_data?: unknown;
8577
8610
  }>;
@@ -8589,14 +8622,14 @@ declare const SSEProgressEventData: z.ZodObject<{
8589
8622
  id: string;
8590
8623
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
8591
8624
  object_id: string;
8592
- created?: string | null | undefined;
8593
8625
  _xact_id?: string | null | undefined;
8626
+ created?: string | null | undefined;
8594
8627
  }, {
8595
8628
  id: string;
8596
8629
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
8597
8630
  object_id: string;
8598
- created?: string | null | undefined;
8599
8631
  _xact_id?: string | null | undefined;
8632
+ created?: string | null | undefined;
8600
8633
  }>, z.ZodNull]>, z.ZodUnknown>>;
8601
8634
  format: z.ZodEnum<["llm", "code", "global", "graph", "topic_map"]>;
8602
8635
  output_type: z.ZodEnum<["completion", "score", "facet", "classification", "any"]>;
@@ -8605,33 +8638,33 @@ declare const SSEProgressEventData: z.ZodObject<{
8605
8638
  data: z.ZodString;
8606
8639
  }, "strip", z.ZodTypeAny, {
8607
8640
  id: string;
8608
- object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
8641
+ object_type: "prompt" | "tool" | "parameters" | "task" | "scorer" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | "workflow";
8609
8642
  name: string;
8610
8643
  data: string;
8611
8644
  event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
8612
- format: "code" | "llm" | "global" | "topic_map" | "graph";
8613
- output_type: "facet" | "score" | "completion" | "classification" | "any";
8645
+ format: "code" | "llm" | "global" | "graph" | "topic_map";
8646
+ output_type: "score" | "completion" | "any" | "facet" | "classification";
8614
8647
  origin?: {
8615
8648
  id: string;
8616
8649
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
8617
8650
  object_id: string;
8618
- created?: string | null | undefined;
8619
8651
  _xact_id?: string | null | undefined;
8652
+ created?: string | null | undefined;
8620
8653
  } | null | undefined;
8621
8654
  }, {
8622
8655
  id: string;
8623
- object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
8656
+ object_type: "prompt" | "tool" | "parameters" | "task" | "scorer" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | "workflow";
8624
8657
  name: string;
8625
8658
  data: string;
8626
8659
  event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
8627
- format: "code" | "llm" | "global" | "topic_map" | "graph";
8628
- output_type: "facet" | "score" | "completion" | "classification" | "any";
8660
+ format: "code" | "llm" | "global" | "graph" | "topic_map";
8661
+ output_type: "score" | "completion" | "any" | "facet" | "classification";
8629
8662
  origin?: {
8630
8663
  id: string;
8631
8664
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
8632
8665
  object_id: string;
8633
- created?: string | null | undefined;
8634
8666
  _xact_id?: string | null | undefined;
8667
+ created?: string | null | undefined;
8635
8668
  } | null | undefined;
8636
8669
  }>;
8637
8670
  type SSEProgressEventDataType = z.infer<typeof SSEProgressEventData>;
@@ -8682,12 +8715,6 @@ interface BaseFnOpts {
8682
8715
  metadata?: Record<string, unknown>;
8683
8716
  }
8684
8717
 
8685
- interface IsoAsyncLocalStorage<T> {
8686
- enterWith(store: T): void;
8687
- run<R>(store: T | undefined, callback: () => R): R;
8688
- getStore(): T | undefined;
8689
- }
8690
-
8691
8718
  type DebugLogLevel = "error" | "warn" | "info" | "debug";
8692
8719
  type DebugLogLevelOption = DebugLogLevel | false | undefined;
8693
8720
 
@@ -8709,6 +8736,31 @@ declare abstract class IDGenerator {
8709
8736
  abstract shareRootSpanId(): boolean;
8710
8737
  }
8711
8738
 
8739
+ type TraceContextHeaderValue = string | number | readonly string[] | null | undefined;
8740
+ /**
8741
+ * Minimal structural interface for outbound HTTP header carriers.
8742
+ *
8743
+ * Supports plain objects, Web/Fetch-compatible `Headers`, Node/Fastify-style
8744
+ * response carriers, and mutable `HeadersInit` tuple arrays.
8745
+ */
8746
+ type TraceContextCarrier = {
8747
+ [name: string]: TraceContextHeaderValue;
8748
+ } | {
8749
+ get(name: string): TraceContextHeaderValue;
8750
+ set(name: string, value: string): void;
8751
+ delete?(name: string): void;
8752
+ } | {
8753
+ getHeader(name: string): TraceContextHeaderValue;
8754
+ setHeader(name: string, value: string): void;
8755
+ removeHeader?(name: string): void;
8756
+ } | {
8757
+ get?(name: string): TraceContextHeaderValue;
8758
+ getHeader?(name: string): TraceContextHeaderValue;
8759
+ header(name: string, value: string): void;
8760
+ delete?(name: string): void;
8761
+ removeHeader?(name: string): void;
8762
+ } | [string, string][];
8763
+
8712
8764
  declare class LazyValue<T> {
8713
8765
  private callable;
8714
8766
  private resolvedValue;
@@ -8724,6 +8776,12 @@ declare class LazyValue<T> {
8724
8776
 
8725
8777
  type TemplateFormat = "mustache" | "nunjucks" | "none";
8726
8778
 
8779
+ interface IsoAsyncLocalStorage<T> {
8780
+ enterWith(store: T): void;
8781
+ run<R>(store: T | undefined, callback: () => R): R;
8782
+ getStore(): T | undefined;
8783
+ }
8784
+
8727
8785
  /**
8728
8786
  * Options for configuring an LRUCache instance.
8729
8787
  */
@@ -9270,15 +9328,15 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
9270
9328
  name: string;
9271
9329
  arguments: string;
9272
9330
  };
9273
- type: "function";
9274
9331
  id: string;
9332
+ type: "function";
9275
9333
  }, {
9276
9334
  function: {
9277
9335
  name: string;
9278
9336
  arguments: string;
9279
9337
  };
9280
- type: "function";
9281
9338
  id: string;
9339
+ type: "function";
9282
9340
  }>, "many">>;
9283
9341
  reasoning: z.ZodOptional<z.ZodArray<z.ZodObject<{
9284
9342
  id: z.ZodOptional<z.ZodString>;
@@ -9310,8 +9368,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
9310
9368
  name: string;
9311
9369
  arguments: string;
9312
9370
  };
9313
- type: "function";
9314
9371
  id: string;
9372
+ type: "function";
9315
9373
  }[] | undefined;
9316
9374
  reasoning?: {
9317
9375
  id?: string | undefined;
@@ -9337,8 +9395,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
9337
9395
  name: string;
9338
9396
  arguments: string;
9339
9397
  };
9340
- type: "function";
9341
9398
  id: string;
9399
+ type: "function";
9342
9400
  }[] | undefined;
9343
9401
  reasoning?: {
9344
9402
  id?: string | undefined;
@@ -9512,8 +9570,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
9512
9570
  name: string;
9513
9571
  arguments: string;
9514
9572
  };
9515
- type: "function";
9516
9573
  id: string;
9574
+ type: "function";
9517
9575
  }[] | undefined;
9518
9576
  reasoning?: {
9519
9577
  id?: string | undefined;
@@ -9601,8 +9659,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
9601
9659
  name: string;
9602
9660
  arguments: string;
9603
9661
  };
9604
- type: "function";
9605
9662
  id: string;
9663
+ type: "function";
9606
9664
  }[] | undefined;
9607
9665
  reasoning?: {
9608
9666
  id?: string | undefined;
@@ -10348,8 +10406,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
10348
10406
  name: string;
10349
10407
  arguments: string;
10350
10408
  };
10351
- type: "function";
10352
10409
  id: string;
10410
+ type: "function";
10353
10411
  }[] | undefined;
10354
10412
  reasoning?: {
10355
10413
  id?: string | undefined;
@@ -10574,8 +10632,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
10574
10632
  name: string;
10575
10633
  arguments: string;
10576
10634
  };
10577
- type: "function";
10578
10635
  id: string;
10636
+ type: "function";
10579
10637
  }[] | undefined;
10580
10638
  reasoning?: {
10581
10639
  id?: string | undefined;
@@ -10765,6 +10823,8 @@ type InferParameters<T extends EvalParameters> = {
10765
10823
  [K in keyof T]: InferParameterValue<T[K]>;
10766
10824
  };
10767
10825
 
10826
+ /// <reference lib="dom" />
10827
+
10768
10828
  declare const RESET_CONTEXT_MANAGER_STATE: unique symbol;
10769
10829
  declare const datasetRestorePreviewResultSchema: z.ZodObject<{
10770
10830
  rows_to_restore: z.ZodNumber;
@@ -10814,31 +10874,31 @@ declare const parametersRowSchema: z.ZodObject<{
10814
10874
  }>;
10815
10875
  metadata: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodNull]>>;
10816
10876
  }, "strip", z.ZodTypeAny, {
10877
+ _xact_id: string;
10817
10878
  id: string;
10818
- name: string;
10819
- function_type: "parameters";
10820
10879
  project_id: string;
10821
- _xact_id: string;
10822
- slug: string;
10823
10880
  function_data: {
10824
10881
  type: "parameters";
10825
10882
  __schema: Record<string, unknown>;
10826
10883
  data?: Record<string, unknown> | undefined;
10827
10884
  };
10885
+ name: string;
10886
+ slug: string;
10887
+ function_type: "parameters";
10828
10888
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
10829
10889
  description?: string | null | undefined;
10830
10890
  }, {
10891
+ _xact_id: string;
10831
10892
  id: string;
10832
- name: string;
10833
- function_type: "parameters";
10834
10893
  project_id: string;
10835
- _xact_id: string;
10836
- slug: string;
10837
10894
  function_data: {
10838
10895
  type: "parameters";
10839
10896
  __schema: Record<string, unknown>;
10840
10897
  data?: Record<string, unknown> | undefined;
10841
10898
  };
10899
+ name: string;
10900
+ slug: string;
10901
+ function_type: "parameters";
10842
10902
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
10843
10903
  description?: string | null | undefined;
10844
10904
  }>;
@@ -10857,7 +10917,12 @@ type StartSpanArgs = {
10857
10917
  type?: SpanType;
10858
10918
  spanAttributes?: Record<any, any>;
10859
10919
  startTime?: number;
10860
- parent?: string;
10920
+ /**
10921
+ * The parent to start this span under. May be an exported span slug string
10922
+ * (from `span.export()`) or an opaque W3C trace-context (from
10923
+ * {@link extractTraceContextFromHeaders}).
10924
+ */
10925
+ parent?: string | PropagationContext;
10861
10926
  event?: StartSpanEventArgs;
10862
10927
  propagatedEvent?: StartSpanEventArgs;
10863
10928
  spanId?: string;
@@ -10959,6 +11024,24 @@ interface Span extends Exportable {
10959
11024
  * @returns Serialized representation of this span's identifiers.
10960
11025
  */
10961
11026
  export(): Promise<string>;
11027
+ /**
11028
+ * Inject W3C trace-context headers (`traceparent` and `baggage`) for this span
11029
+ * into a carrier, for distributed tracing across service boundaries.
11030
+ *
11031
+ * Adds `traceparent` (trace identity) and, when this span's Braintrust parent
11032
+ * is known, a `baggage` entry `braintrust.parent=<parent>` (merged with any
11033
+ * pre-existing baggage). Propagation is best-effort and never throws; if the
11034
+ * span's ids are not W3C-shaped hex (e.g. legacy UUID mode), `traceparent` is
11035
+ * omitted.
11036
+ *
11037
+ * @param carrier Optional existing carrier (e.g. outbound HTTP headers) to
11038
+ * mutate and return. Supports plain objects, Web `Headers`, Node-style
11039
+ * `setHeader` carriers, framework `header` carriers, and mutable
11040
+ * `HeadersInit` tuple arrays. A new object is created if not provided.
11041
+ * @returns The carrier with propagation headers injected.
11042
+ */
11043
+ inject(): Record<string, string>;
11044
+ inject<T extends TraceContextCarrier>(carrier: T): T;
10962
11045
  /**
10963
11046
  * Format a permalink to the Braintrust application for viewing this span.
10964
11047
  *
@@ -11037,6 +11120,8 @@ declare class NoopSpan implements Span {
11037
11120
  startSpan(_1?: StartSpanArgs): this;
11038
11121
  end(args?: EndSpanArgs): number;
11039
11122
  export(): Promise<string>;
11123
+ inject(): Record<string, string>;
11124
+ inject<T extends TraceContextCarrier>(carrier: T): T;
11040
11125
  permalink(): Promise<string>;
11041
11126
  link(): string;
11042
11127
  flush(): Promise<void>;
@@ -11065,10 +11150,10 @@ declare const loginSchema: z.ZodObject<{
11065
11150
  fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
11066
11151
  }, "strip", z.ZodTypeAny, {
11067
11152
  collect: "some" | "none" | "all";
11068
- fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
11153
+ fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
11069
11154
  }, {
11070
11155
  collect: "some" | "none" | "all";
11071
- fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
11156
+ fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
11072
11157
  }>>>;
11073
11158
  debugLogLevel: z.ZodOptional<z.ZodEnum<["error", "warn", "info", "debug"]>>;
11074
11159
  debugLogLevelDisabled: z.ZodOptional<z.ZodBoolean>;
@@ -11082,7 +11167,7 @@ declare const loginSchema: z.ZodObject<{
11082
11167
  orgId?: string | null | undefined;
11083
11168
  gitMetadataSettings?: {
11084
11169
  collect: "some" | "none" | "all";
11085
- fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
11170
+ fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
11086
11171
  } | null | undefined;
11087
11172
  debugLogLevel?: "error" | "warn" | "info" | "debug" | undefined;
11088
11173
  debugLogLevelDisabled?: boolean | undefined;
@@ -11096,7 +11181,7 @@ declare const loginSchema: z.ZodObject<{
11096
11181
  orgId?: string | null | undefined;
11097
11182
  gitMetadataSettings?: {
11098
11183
  collect: "some" | "none" | "all";
11099
- fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
11184
+ fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
11100
11185
  } | null | undefined;
11101
11186
  debugLogLevel?: "error" | "warn" | "info" | "debug" | undefined;
11102
11187
  debugLogLevelDisabled?: boolean | undefined;
@@ -11107,7 +11192,7 @@ declare class BraintrustState {
11107
11192
  id: string;
11108
11193
  currentExperiment: Experiment | undefined;
11109
11194
  currentLogger: Logger<false> | undefined;
11110
- currentParent: IsoAsyncLocalStorage<string>;
11195
+ currentParent: IsoAsyncLocalStorage<string | PropagationContext>;
11111
11196
  currentSpan: IsoAsyncLocalStorage<Span>;
11112
11197
  private _bgLogger;
11113
11198
  private _overrideBgLogger;
@@ -11225,6 +11310,15 @@ type DatasetPipelineDeferredJSONAttachmentHook = (data: unknown, options?: {
11225
11310
  declare global {
11226
11311
  var __BT_DATASET_PIPELINE_DEFER_JSON_ATTACHMENT__: DatasetPipelineDeferredJSONAttachmentHook | undefined;
11227
11312
  }
11313
+ /**
11314
+ * An opaque W3C trace-context, as returned by
11315
+ * {@link extractTraceContextFromHeaders}.
11316
+ *
11317
+ * Carries the relevant W3C headers (`traceparent`, `baggage`, `tracestate`).
11318
+ * Callers MUST treat it as opaque and pass it straight to
11319
+ * `startSpan({ parent })`.
11320
+ */
11321
+ type PropagationContext = Record<string, string>;
11228
11322
  interface ParentSpanIds {
11229
11323
  spanId: string;
11230
11324
  rootSpanId: string;
@@ -11316,6 +11410,12 @@ declare class Logger<IsAsyncFlush extends boolean> implements Exportable {
11316
11410
  * Resolution order: state -> linkArgs -> env var
11317
11411
  */
11318
11412
  _getLinkBaseUrl(): string | null;
11413
+ /**
11414
+ * Return this logger's Braintrust parent string (`project_id:<id>` or
11415
+ * `project_name:<name>`) for the `braintrust.parent` baggage entry, or
11416
+ * undefined when it cannot be determined synchronously.
11417
+ */
11418
+ _getOtelParent(): string | undefined;
11319
11419
  }
11320
11420
  interface BackgroundLoggerOpts {
11321
11421
  noExitFlush?: boolean;
@@ -11385,6 +11485,9 @@ type DatasetPinState = {
11385
11485
  pinnedEnvironment?: string;
11386
11486
  pinnedSnapshotName?: string;
11387
11487
  };
11488
+ declare global {
11489
+ var __bt_eval_internal_btql: Record<string, unknown> | undefined;
11490
+ }
11388
11491
  type AsyncFlushArg<IsAsyncFlush> = {
11389
11492
  asyncFlush?: IsAsyncFlush;
11390
11493
  };
@@ -11468,8 +11571,9 @@ declare class ObjectFetcher<RecordType> implements AsyncIterable<WithTransaction
11468
11571
  private pinnedVersion;
11469
11572
  private mutateRecord?;
11470
11573
  private _internal_btql?;
11574
+ private _internalBrainstoreRealtime;
11471
11575
  private _fetchedData;
11472
- constructor(objectType: "dataset" | "experiment" | "project_logs" | "playground_logs", pinnedVersion: string | undefined, mutateRecord?: ((r: any) => WithTransactionId<RecordType>) | undefined, _internal_btql?: Record<string, unknown> | undefined);
11576
+ constructor(objectType: "dataset" | "experiment" | "project_logs" | "playground_logs", pinnedVersion: string | undefined, mutateRecord?: ((r: any) => WithTransactionId<RecordType>) | undefined, _internal_btql?: Record<string, unknown> | undefined, _internalBrainstoreRealtime?: boolean);
11473
11577
  get id(): Promise<string>;
11474
11578
  protected getState(): Promise<BraintrustState>;
11475
11579
  protected getPinnedVersion(): string | undefined;
@@ -11622,6 +11726,12 @@ declare class Experiment extends ObjectFetcher<ExperimentEvent> implements Expor
11622
11726
  * See {@link Span.startSpan} for more details.
11623
11727
  */
11624
11728
  export(): Promise<string>;
11729
+ /**
11730
+ * Return this experiment's Braintrust parent string (`experiment_id:<id>`) for
11731
+ * the `braintrust.parent` baggage entry, or undefined when it cannot be
11732
+ * determined synchronously.
11733
+ */
11734
+ _getOtelParent(): string | undefined;
11625
11735
  /**
11626
11736
  * Flush any pending rows to the server.
11627
11737
  */
@@ -12226,15 +12336,15 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
12226
12336
  name: string;
12227
12337
  arguments: string;
12228
12338
  };
12229
- type: "function";
12230
12339
  id: string;
12340
+ type: "function";
12231
12341
  }, {
12232
12342
  function: {
12233
12343
  name: string;
12234
12344
  arguments: string;
12235
12345
  };
12236
- type: "function";
12237
12346
  id: string;
12347
+ type: "function";
12238
12348
  }>, "many">>;
12239
12349
  reasoning: z.ZodOptional<z.ZodArray<z.ZodObject<{
12240
12350
  id: z.ZodOptional<z.ZodString>;
@@ -12266,8 +12376,8 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
12266
12376
  name: string;
12267
12377
  arguments: string;
12268
12378
  };
12269
- type: "function";
12270
12379
  id: string;
12380
+ type: "function";
12271
12381
  }[] | undefined;
12272
12382
  reasoning?: {
12273
12383
  id?: string | undefined;
@@ -12293,8 +12403,8 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
12293
12403
  name: string;
12294
12404
  arguments: string;
12295
12405
  };
12296
- type: "function";
12297
12406
  id: string;
12407
+ type: "function";
12298
12408
  }[] | undefined;
12299
12409
  reasoning?: {
12300
12410
  id?: string | undefined;
@@ -12468,8 +12578,8 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
12468
12578
  name: string;
12469
12579
  arguments: string;
12470
12580
  };
12471
- type: "function";
12472
12581
  id: string;
12582
+ type: "function";
12473
12583
  }[] | undefined;
12474
12584
  reasoning?: {
12475
12585
  id?: string | undefined;
@@ -12557,8 +12667,8 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
12557
12667
  name: string;
12558
12668
  arguments: string;
12559
12669
  };
12560
- type: "function";
12561
12670
  id: string;
12671
+ type: "function";
12562
12672
  }[] | undefined;
12563
12673
  reasoning?: {
12564
12674
  id?: string | undefined;