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.
- package/dev/dist/index.d.mts +519 -186
- package/dev/dist/index.d.ts +519 -186
- package/dev/dist/index.js +3727 -1526
- package/dev/dist/index.mjs +2815 -614
- package/dist/apply-auto-instrumentation.js +372 -261
- package/dist/apply-auto-instrumentation.mjs +171 -60
- package/dist/auto-instrumentations/bundler/esbuild.cjs +458 -61
- package/dist/auto-instrumentations/bundler/esbuild.mjs +5 -4
- package/dist/auto-instrumentations/bundler/next.cjs +460 -63
- package/dist/auto-instrumentations/bundler/next.mjs +6 -5
- package/dist/auto-instrumentations/bundler/rollup.cjs +458 -61
- package/dist/auto-instrumentations/bundler/rollup.mjs +5 -4
- package/dist/auto-instrumentations/bundler/vite.cjs +487 -62
- package/dist/auto-instrumentations/bundler/vite.mjs +34 -5
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +444 -61
- package/dist/auto-instrumentations/bundler/webpack.cjs +458 -61
- package/dist/auto-instrumentations/bundler/webpack.mjs +6 -5
- package/dist/auto-instrumentations/{chunk-6E22MYSW.mjs → chunk-26PKVUKB.mjs} +109 -5
- package/dist/auto-instrumentations/{chunk-AKKPLXTP.mjs → chunk-2AMDGD65.mjs} +160 -57
- package/dist/auto-instrumentations/{chunk-V5LEODRX.mjs → chunk-HD35AM3M.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-XYN63IG5.mjs → chunk-I55G56ZL.mjs} +21 -58
- package/dist/auto-instrumentations/{chunk-NRE4QUQR.mjs → chunk-JPUFNW7X.mjs} +140 -0
- package/dist/auto-instrumentations/{chunk-XZHHE4Y3.mjs → chunk-NP7V4XB2.mjs} +157 -3
- package/dist/auto-instrumentations/hook.mjs +396 -32
- package/dist/auto-instrumentations/index.cjs +298 -2
- package/dist/auto-instrumentations/index.d.mts +5 -1
- package/dist/auto-instrumentations/index.d.ts +5 -1
- package/dist/auto-instrumentations/index.mjs +6 -2
- package/dist/auto-instrumentations/loader/cjs-patch.cjs +105 -57
- package/dist/auto-instrumentations/loader/cjs-patch.mjs +2 -2
- package/dist/auto-instrumentations/loader/esm-hook.mjs +1 -1
- package/dist/browser.d.mts +683 -56
- package/dist/browser.d.ts +683 -56
- package/dist/browser.js +4242 -655
- package/dist/browser.mjs +4242 -655
- package/dist/{chunk-VYNNEKSA.js → chunk-BBE7SNRV.js} +248 -10
- package/dist/{chunk-VRZZQPAA.js → chunk-OBBWQW6K.js} +3351 -1392
- package/dist/{chunk-XIZOM2HO.mjs → chunk-UPFNQCGB.mjs} +2419 -460
- package/dist/{chunk-PN7EWK66.mjs → chunk-ZHUHZWFY.mjs} +241 -3
- package/dist/cli.js +2867 -668
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +4242 -655
- package/dist/edge-light.mjs +4242 -655
- package/dist/index.d.mts +1267 -640
- package/dist/index.d.ts +1267 -640
- package/dist/index.js +2107 -630
- package/dist/index.mjs +1649 -172
- package/dist/instrumentation/index.d.mts +198 -6
- package/dist/instrumentation/index.d.ts +198 -6
- package/dist/instrumentation/index.js +2661 -581
- package/dist/instrumentation/index.mjs +2661 -581
- package/dist/vitest-evals-reporter.js +45 -43
- package/dist/vitest-evals-reporter.mjs +5 -3
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +4242 -655
- package/dist/workerd.mjs +4242 -655
- package/package.json +2 -3
- package/util/dist/index.d.mts +1545 -100
- package/util/dist/index.d.ts +1545 -100
package/dist/browser.d.mts
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,14 +343,62 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
219
343
|
}, {
|
|
220
344
|
kind: "state_enabled_force_rescore";
|
|
221
345
|
}>, z.ZodObject<{
|
|
222
|
-
kind: z.ZodLiteral<"
|
|
223
|
-
|
|
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: "
|
|
226
|
-
|
|
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: "
|
|
229
|
-
|
|
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">;
|
|
@@ -239,6 +411,15 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
239
411
|
kind: "complete_triggered_functions";
|
|
240
412
|
triggered_xact_id: string;
|
|
241
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<{
|
|
@@ -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
|
+
type: "function";
|
|
1039
|
+
id: string;
|
|
1040
|
+
version?: string | undefined;
|
|
1041
|
+
}, {
|
|
1042
|
+
type: "function";
|
|
1043
|
+
id: string;
|
|
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
|
-
type: "function";
|
|
1982
|
-
id: string;
|
|
1983
|
-
version?: string | undefined;
|
|
1984
|
-
}, {
|
|
1985
|
-
type: "function";
|
|
1986
|
-
id: string;
|
|
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: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
|
|
1996
|
-
}, {
|
|
1997
|
-
type: "global";
|
|
1998
|
-
name: string;
|
|
1999
|
-
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "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;
|
|
@@ -7884,7 +8065,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
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.
|
|
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>;
|
|
@@ -7908,7 +8089,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
7908
8089
|
type: "global";
|
|
7909
8090
|
name: string;
|
|
7910
8091
|
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
7911
|
-
}>, z.
|
|
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>;
|
|
@@ -7924,6 +8114,9 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
7924
8114
|
type: "global";
|
|
7925
8115
|
name: string;
|
|
7926
8116
|
function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
|
|
8117
|
+
} | {
|
|
8118
|
+
code: string;
|
|
8119
|
+
type: "inline";
|
|
7927
8120
|
} | null | undefined;
|
|
7928
8121
|
embedding_model?: string | undefined;
|
|
7929
8122
|
model?: string | undefined;
|
|
@@ -7939,13 +8132,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
7939
8132
|
type: "global";
|
|
7940
8133
|
name: string;
|
|
7941
8134
|
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
8135
|
+
} | {
|
|
8136
|
+
code: string;
|
|
8137
|
+
type: "inline";
|
|
7942
8138
|
} | null | undefined;
|
|
7943
8139
|
embedding_model?: string | undefined;
|
|
7944
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.
|
|
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>;
|
|
@@ -7969,7 +8165,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
7969
8165
|
type: "global";
|
|
7970
8166
|
name: string;
|
|
7971
8167
|
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
7972
|
-
}>, z.
|
|
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;
|
|
@@ -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
|
+
type: "function";
|
|
8209
|
+
id: string;
|
|
8210
|
+
version?: string | undefined;
|
|
8211
|
+
}, {
|
|
8212
|
+
type: "function";
|
|
8213
|
+
id: string;
|
|
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,11 +8266,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8036
8266
|
type: "topic_map";
|
|
8037
8267
|
source_facet: string;
|
|
8038
8268
|
embedding_model: string;
|
|
8269
|
+
source_facet_function?: {
|
|
8270
|
+
type: "function";
|
|
8271
|
+
id: string;
|
|
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;
|
|
8039
8278
|
bundle_key?: string | undefined;
|
|
8040
8279
|
report_key?: string | undefined;
|
|
8041
8280
|
topic_names?: Record<string, string> | undefined;
|
|
8042
8281
|
generation_settings?: {
|
|
8043
|
-
algorithm: "hdbscan" | "kmeans";
|
|
8282
|
+
algorithm: "hdbscan" | "kmeans" | "community";
|
|
8044
8283
|
dimension_reduction: "none" | "umap" | "pca";
|
|
8045
8284
|
sample_size?: number | undefined;
|
|
8046
8285
|
n_clusters?: number | undefined;
|
|
@@ -8058,11 +8297,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8058
8297
|
type: "topic_map";
|
|
8059
8298
|
source_facet: string;
|
|
8060
8299
|
embedding_model: string;
|
|
8300
|
+
source_facet_function?: {
|
|
8301
|
+
type: "function";
|
|
8302
|
+
id: string;
|
|
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;
|
|
8061
8309
|
bundle_key?: string | undefined;
|
|
8062
8310
|
report_key?: string | undefined;
|
|
8063
8311
|
topic_names?: Record<string, string> | undefined;
|
|
8064
8312
|
generation_settings?: {
|
|
8065
|
-
algorithm: "hdbscan" | "kmeans";
|
|
8313
|
+
algorithm: "hdbscan" | "kmeans" | "community";
|
|
8066
8314
|
dimension_reduction: "none" | "umap" | "pca";
|
|
8067
8315
|
sample_size?: number | undefined;
|
|
8068
8316
|
n_clusters?: number | undefined;
|
|
@@ -8083,11 +8331,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8083
8331
|
type: "topic_map";
|
|
8084
8332
|
source_facet: string;
|
|
8085
8333
|
embedding_model: string;
|
|
8334
|
+
source_facet_function?: {
|
|
8335
|
+
type: "function";
|
|
8336
|
+
id: string;
|
|
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;
|
|
8086
8343
|
bundle_key?: string | undefined;
|
|
8087
8344
|
report_key?: string | undefined;
|
|
8088
8345
|
topic_names?: Record<string, string> | undefined;
|
|
8089
8346
|
generation_settings?: {
|
|
8090
|
-
algorithm: "hdbscan" | "kmeans";
|
|
8347
|
+
algorithm: "hdbscan" | "kmeans" | "community";
|
|
8091
8348
|
dimension_reduction: "none" | "umap" | "pca";
|
|
8092
8349
|
sample_size?: number | undefined;
|
|
8093
8350
|
n_clusters?: number | undefined;
|
|
@@ -8109,11 +8366,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8109
8366
|
type: "topic_map";
|
|
8110
8367
|
source_facet: string;
|
|
8111
8368
|
embedding_model: string;
|
|
8369
|
+
source_facet_function?: {
|
|
8370
|
+
type: "function";
|
|
8371
|
+
id: string;
|
|
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;
|
|
8112
8378
|
bundle_key?: string | undefined;
|
|
8113
8379
|
report_key?: string | undefined;
|
|
8114
8380
|
topic_names?: Record<string, string> | undefined;
|
|
8115
8381
|
generation_settings?: {
|
|
8116
|
-
algorithm: "hdbscan" | "kmeans";
|
|
8382
|
+
algorithm: "hdbscan" | "kmeans" | "community";
|
|
8117
8383
|
dimension_reduction: "none" | "umap" | "pca";
|
|
8118
8384
|
sample_size?: number | undefined;
|
|
8119
8385
|
n_clusters?: number | undefined;
|
|
@@ -8147,6 +8413,9 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8147
8413
|
type: "global";
|
|
8148
8414
|
name: string;
|
|
8149
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,11 +8423,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8154
8423
|
type: "topic_map";
|
|
8155
8424
|
source_facet: string;
|
|
8156
8425
|
embedding_model: string;
|
|
8426
|
+
source_facet_function?: {
|
|
8427
|
+
type: "function";
|
|
8428
|
+
id: string;
|
|
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;
|
|
8157
8435
|
bundle_key?: string | undefined;
|
|
8158
8436
|
report_key?: string | undefined;
|
|
8159
8437
|
topic_names?: Record<string, string> | undefined;
|
|
8160
8438
|
generation_settings?: {
|
|
8161
|
-
algorithm: "hdbscan" | "kmeans";
|
|
8439
|
+
algorithm: "hdbscan" | "kmeans" | "community";
|
|
8162
8440
|
dimension_reduction: "none" | "umap" | "pca";
|
|
8163
8441
|
sample_size?: number | undefined;
|
|
8164
8442
|
n_clusters?: number | undefined;
|
|
@@ -8192,6 +8470,9 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8192
8470
|
type: "global";
|
|
8193
8471
|
name: string;
|
|
8194
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,11 +8480,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8199
8480
|
type: "topic_map";
|
|
8200
8481
|
source_facet: string;
|
|
8201
8482
|
embedding_model: string;
|
|
8483
|
+
source_facet_function?: {
|
|
8484
|
+
type: "function";
|
|
8485
|
+
id: string;
|
|
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;
|
|
8202
8492
|
bundle_key?: string | undefined;
|
|
8203
8493
|
report_key?: string | undefined;
|
|
8204
8494
|
topic_names?: Record<string, string> | undefined;
|
|
8205
8495
|
generation_settings?: {
|
|
8206
|
-
algorithm: "hdbscan" | "kmeans";
|
|
8496
|
+
algorithm: "hdbscan" | "kmeans" | "community";
|
|
8207
8497
|
dimension_reduction: "none" | "umap" | "pca";
|
|
8208
8498
|
sample_size?: number | undefined;
|
|
8209
8499
|
n_clusters?: number | 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
|
+
type: "function";
|
|
8563
|
+
id: string;
|
|
8564
|
+
version?: string | undefined;
|
|
8565
|
+
}, {
|
|
8566
|
+
type: "function";
|
|
8567
|
+
id: string;
|
|
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,11 +8620,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8305
8620
|
type: "topic_map";
|
|
8306
8621
|
source_facet: string;
|
|
8307
8622
|
embedding_model: string;
|
|
8623
|
+
source_facet_function?: {
|
|
8624
|
+
type: "function";
|
|
8625
|
+
id: string;
|
|
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;
|
|
8308
8632
|
bundle_key?: string | undefined;
|
|
8309
8633
|
report_key?: string | undefined;
|
|
8310
8634
|
topic_names?: Record<string, string> | undefined;
|
|
8311
8635
|
generation_settings?: {
|
|
8312
|
-
algorithm: "hdbscan" | "kmeans";
|
|
8636
|
+
algorithm: "hdbscan" | "kmeans" | "community";
|
|
8313
8637
|
dimension_reduction: "none" | "umap" | "pca";
|
|
8314
8638
|
sample_size?: number | undefined;
|
|
8315
8639
|
n_clusters?: number | undefined;
|
|
@@ -8327,11 +8651,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8327
8651
|
type: "topic_map";
|
|
8328
8652
|
source_facet: string;
|
|
8329
8653
|
embedding_model: string;
|
|
8654
|
+
source_facet_function?: {
|
|
8655
|
+
type: "function";
|
|
8656
|
+
id: string;
|
|
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;
|
|
8330
8663
|
bundle_key?: string | undefined;
|
|
8331
8664
|
report_key?: string | undefined;
|
|
8332
8665
|
topic_names?: Record<string, string> | undefined;
|
|
8333
8666
|
generation_settings?: {
|
|
8334
|
-
algorithm: "hdbscan" | "kmeans";
|
|
8667
|
+
algorithm: "hdbscan" | "kmeans" | "community";
|
|
8335
8668
|
dimension_reduction: "none" | "umap" | "pca";
|
|
8336
8669
|
sample_size?: number | undefined;
|
|
8337
8670
|
n_clusters?: number | undefined;
|
|
@@ -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
|
-
|
|
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>;
|
|
@@ -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>;
|
|
@@ -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
|
-
*
|
|
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
|
*/
|
|
@@ -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 };
|