braintrust 3.4.0 → 3.5.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 +45 -5
- package/dev/dist/index.d.ts +45 -5
- package/dev/dist/index.js +992 -245
- package/dev/dist/index.mjs +914 -167
- package/dist/auto-instrumentations/bundler/esbuild.cjs +208 -10
- package/dist/auto-instrumentations/bundler/esbuild.d.mts +2 -2
- package/dist/auto-instrumentations/bundler/esbuild.d.ts +2 -2
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/rollup.cjs +208 -10
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +208 -10
- package/dist/auto-instrumentations/bundler/vite.d.mts +2 -2
- package/dist/auto-instrumentations/bundler/vite.d.ts +2 -2
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack.cjs +208 -10
- package/dist/auto-instrumentations/bundler/webpack.d.mts +2 -2
- package/dist/auto-instrumentations/bundler/webpack.d.ts +2 -2
- package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
- package/dist/auto-instrumentations/{chunk-LVWWLUMN.mjs → chunk-DQTPSXJB.mjs} +208 -10
- package/dist/auto-instrumentations/chunk-EVUKFMHG.mjs +41 -0
- package/dist/auto-instrumentations/{chunk-D5ZPIUEL.mjs → chunk-F3TJZ3Z2.mjs} +1 -1
- package/dist/auto-instrumentations/chunk-VLEJ5AEK.mjs +41 -0
- package/dist/auto-instrumentations/hook.mjs +238 -18
- package/dist/auto-instrumentations/index.cjs +208 -10
- package/dist/auto-instrumentations/index.mjs +1 -1
- package/dist/auto-instrumentations/loader/cjs-patch.cjs +32 -10
- package/dist/auto-instrumentations/loader/cjs-patch.mjs +10 -5
- package/dist/auto-instrumentations/loader/esm-hook.mjs +4 -4
- package/dist/auto-instrumentations/loader/get-package-version.cjs +28 -8
- package/dist/auto-instrumentations/loader/get-package-version.d.mts +2 -1
- package/dist/auto-instrumentations/loader/get-package-version.d.ts +2 -1
- package/dist/auto-instrumentations/loader/get-package-version.mjs +3 -1
- package/dist/browser.d.mts +342 -269
- package/dist/browser.d.ts +342 -269
- package/dist/browser.js +996 -241
- package/dist/browser.mjs +996 -241
- package/dist/cli.js +1029 -289
- package/dist/edge-light.js +1007 -220
- package/dist/edge-light.mjs +1007 -220
- package/dist/index.d.mts +342 -269
- package/dist/index.d.ts +342 -269
- package/dist/index.js +1182 -427
- package/dist/index.mjs +996 -241
- package/dist/instrumentation/index.js +781 -107
- package/dist/instrumentation/index.mjs +781 -107
- package/dist/workerd.js +1007 -220
- package/dist/workerd.mjs +1007 -220
- package/package.json +22 -6
- package/dist/auto-instrumentations/chunk-XDBPUTVE.mjs +0 -22
- package/dist/auto-instrumentations/chunk-ZEC7BCL4.mjs +0 -22
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
|
|
3
|
+
declare const ResponseFormatJsonSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6
|
+
schema: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodString]>>;
|
|
7
|
+
strict: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
schema?: string | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
12
|
+
strict?: boolean | null | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
schema?: string | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
17
|
+
strict?: boolean | null | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
type ResponseFormatJsonSchemaType = z.infer<typeof ResponseFormatJsonSchema>;
|
|
3
20
|
declare const AnyModelParams: z.ZodObject<{
|
|
4
21
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
5
22
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3269,21 +3286,21 @@ declare const GraphEdge: z.ZodObject<{
|
|
|
3269
3286
|
node: string;
|
|
3270
3287
|
variable: string;
|
|
3271
3288
|
};
|
|
3289
|
+
purpose: "data" | "messages" | "control";
|
|
3272
3290
|
target: {
|
|
3273
3291
|
node: string;
|
|
3274
3292
|
variable: string;
|
|
3275
3293
|
};
|
|
3276
|
-
purpose: "data" | "messages" | "control";
|
|
3277
3294
|
}, {
|
|
3278
3295
|
source: {
|
|
3279
3296
|
node: string;
|
|
3280
3297
|
variable: string;
|
|
3281
3298
|
};
|
|
3299
|
+
purpose: "data" | "messages" | "control";
|
|
3282
3300
|
target: {
|
|
3283
3301
|
node: string;
|
|
3284
3302
|
variable: string;
|
|
3285
3303
|
};
|
|
3286
|
-
purpose: "data" | "messages" | "control";
|
|
3287
3304
|
}>;
|
|
3288
3305
|
type GraphEdgeType = z.infer<typeof GraphEdge>;
|
|
3289
3306
|
declare const GraphData: z.ZodObject<{
|
|
@@ -4340,21 +4357,21 @@ declare const GraphData: z.ZodObject<{
|
|
|
4340
4357
|
node: string;
|
|
4341
4358
|
variable: string;
|
|
4342
4359
|
};
|
|
4360
|
+
purpose: "data" | "messages" | "control";
|
|
4343
4361
|
target: {
|
|
4344
4362
|
node: string;
|
|
4345
4363
|
variable: string;
|
|
4346
4364
|
};
|
|
4347
|
-
purpose: "data" | "messages" | "control";
|
|
4348
4365
|
}, {
|
|
4349
4366
|
source: {
|
|
4350
4367
|
node: string;
|
|
4351
4368
|
variable: string;
|
|
4352
4369
|
};
|
|
4370
|
+
purpose: "data" | "messages" | "control";
|
|
4353
4371
|
target: {
|
|
4354
4372
|
node: string;
|
|
4355
4373
|
variable: string;
|
|
4356
4374
|
};
|
|
4357
|
-
purpose: "data" | "messages" | "control";
|
|
4358
4375
|
}>>;
|
|
4359
4376
|
}, "strip", z.ZodTypeAny, {
|
|
4360
4377
|
type: "graph";
|
|
@@ -4520,11 +4537,11 @@ declare const GraphData: z.ZodObject<{
|
|
|
4520
4537
|
node: string;
|
|
4521
4538
|
variable: string;
|
|
4522
4539
|
};
|
|
4540
|
+
purpose: "data" | "messages" | "control";
|
|
4523
4541
|
target: {
|
|
4524
4542
|
node: string;
|
|
4525
4543
|
variable: string;
|
|
4526
4544
|
};
|
|
4527
|
-
purpose: "data" | "messages" | "control";
|
|
4528
4545
|
}>;
|
|
4529
4546
|
}, {
|
|
4530
4547
|
type: "graph";
|
|
@@ -4690,11 +4707,11 @@ declare const GraphData: z.ZodObject<{
|
|
|
4690
4707
|
node: string;
|
|
4691
4708
|
variable: string;
|
|
4692
4709
|
};
|
|
4710
|
+
purpose: "data" | "messages" | "control";
|
|
4693
4711
|
target: {
|
|
4694
4712
|
node: string;
|
|
4695
4713
|
variable: string;
|
|
4696
4714
|
};
|
|
4697
|
-
purpose: "data" | "messages" | "control";
|
|
4698
4715
|
}>;
|
|
4699
4716
|
}>;
|
|
4700
4717
|
type GraphDataType = z.infer<typeof GraphData>;
|
|
@@ -6057,21 +6074,21 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
6057
6074
|
node: string;
|
|
6058
6075
|
variable: string;
|
|
6059
6076
|
};
|
|
6077
|
+
purpose: "data" | "messages" | "control";
|
|
6060
6078
|
target: {
|
|
6061
6079
|
node: string;
|
|
6062
6080
|
variable: string;
|
|
6063
6081
|
};
|
|
6064
|
-
purpose: "data" | "messages" | "control";
|
|
6065
6082
|
}, {
|
|
6066
6083
|
source: {
|
|
6067
6084
|
node: string;
|
|
6068
6085
|
variable: string;
|
|
6069
6086
|
};
|
|
6087
|
+
purpose: "data" | "messages" | "control";
|
|
6070
6088
|
target: {
|
|
6071
6089
|
node: string;
|
|
6072
6090
|
variable: string;
|
|
6073
6091
|
};
|
|
6074
|
-
purpose: "data" | "messages" | "control";
|
|
6075
6092
|
}>>;
|
|
6076
6093
|
}, "strip", z.ZodTypeAny, {
|
|
6077
6094
|
type: "graph";
|
|
@@ -6237,11 +6254,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
6237
6254
|
node: string;
|
|
6238
6255
|
variable: string;
|
|
6239
6256
|
};
|
|
6257
|
+
purpose: "data" | "messages" | "control";
|
|
6240
6258
|
target: {
|
|
6241
6259
|
node: string;
|
|
6242
6260
|
variable: string;
|
|
6243
6261
|
};
|
|
6244
|
-
purpose: "data" | "messages" | "control";
|
|
6245
6262
|
}>;
|
|
6246
6263
|
}, {
|
|
6247
6264
|
type: "graph";
|
|
@@ -6407,11 +6424,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
6407
6424
|
node: string;
|
|
6408
6425
|
variable: string;
|
|
6409
6426
|
};
|
|
6427
|
+
purpose: "data" | "messages" | "control";
|
|
6410
6428
|
target: {
|
|
6411
6429
|
node: string;
|
|
6412
6430
|
variable: string;
|
|
6413
6431
|
};
|
|
6414
|
-
purpose: "data" | "messages" | "control";
|
|
6415
6432
|
}>;
|
|
6416
6433
|
}>, z.ZodObject<{
|
|
6417
6434
|
type: z.ZodLiteral<"remote_eval">;
|
|
@@ -8579,6 +8596,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
8579
8596
|
runtime: "node" | "python" | "browser" | "quickjs";
|
|
8580
8597
|
}>;
|
|
8581
8598
|
code: z.ZodString;
|
|
8599
|
+
function_type: z.ZodOptional<z.ZodIntersection<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>, z.ZodUnknown>>;
|
|
8582
8600
|
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
8583
8601
|
}, "strip", z.ZodTypeAny, {
|
|
8584
8602
|
code: string;
|
|
@@ -8587,6 +8605,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
8587
8605
|
runtime: "node" | "python" | "browser" | "quickjs";
|
|
8588
8606
|
};
|
|
8589
8607
|
name?: string | null | undefined;
|
|
8608
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
8590
8609
|
}, {
|
|
8591
8610
|
code: string;
|
|
8592
8611
|
inline_context: {
|
|
@@ -8594,6 +8613,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
8594
8613
|
runtime: "node" | "python" | "browser" | "quickjs";
|
|
8595
8614
|
};
|
|
8596
8615
|
name?: string | null | undefined;
|
|
8616
|
+
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
8597
8617
|
}>, z.ZodObject<{
|
|
8598
8618
|
inline_prompt: z.ZodOptional<z.ZodObject<{
|
|
8599
8619
|
prompt: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -15705,17 +15725,39 @@ interface IsoAsyncLocalStorage<T> {
|
|
|
15705
15725
|
run<R>(store: T | undefined, callback: () => R): R;
|
|
15706
15726
|
getStore(): T | undefined;
|
|
15707
15727
|
}
|
|
15728
|
+
type IsoMessageFunction<M = any, N extends string | symbol = string> = (message: M, name: N) => void;
|
|
15729
|
+
type IsoTransformFunction<M, S> = (message: M) => S;
|
|
15730
|
+
/**
|
|
15731
|
+
* Channel interface matching the shared node:diagnostics_channel and dc-browser API.
|
|
15732
|
+
*/
|
|
15733
|
+
interface IsoChannel<M = any, N extends string | symbol = string> {
|
|
15734
|
+
readonly name: N;
|
|
15735
|
+
readonly hasSubscribers: boolean;
|
|
15736
|
+
subscribe(subscription: IsoMessageFunction<M, N>): void;
|
|
15737
|
+
unsubscribe(subscription: IsoMessageFunction<M, N>): boolean;
|
|
15738
|
+
bindStore<T>(store: IsoAsyncLocalStorage<T>, transform?: IsoTransformFunction<M, T>): void;
|
|
15739
|
+
unbindStore<T>(store: IsoAsyncLocalStorage<T>): boolean;
|
|
15740
|
+
publish(message: M): void;
|
|
15741
|
+
runStores<F extends (...args: any[]) => any>(message: M, fn: F, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
|
|
15742
|
+
}
|
|
15708
15743
|
/**
|
|
15709
15744
|
* TracingChannel interface matching both node:diagnostics_channel and dc-browser.
|
|
15710
|
-
*
|
|
15745
|
+
* A composite of the five tracing subchannels used to instrument sync/async operations.
|
|
15711
15746
|
*/
|
|
15712
|
-
interface
|
|
15713
|
-
|
|
15747
|
+
interface IsoTracingChannelCollection<M = any> {
|
|
15748
|
+
readonly start?: IsoChannel<M>;
|
|
15749
|
+
readonly end?: IsoChannel<M>;
|
|
15750
|
+
readonly asyncStart?: IsoChannel<M>;
|
|
15751
|
+
readonly asyncEnd?: IsoChannel<M>;
|
|
15752
|
+
readonly error?: IsoChannel<M>;
|
|
15753
|
+
}
|
|
15754
|
+
interface IsoTracingChannel<M = any> extends IsoTracingChannelCollection<M> {
|
|
15755
|
+
readonly hasSubscribers: boolean;
|
|
15714
15756
|
subscribe(handlers: IsoChannelHandlers<M>): void;
|
|
15715
15757
|
unsubscribe(handlers: IsoChannelHandlers<M>): boolean;
|
|
15716
|
-
traceSync<F extends (...args: any[]) => any>(fn: F, message
|
|
15717
|
-
tracePromise<F extends (...args: any[]) => any>(fn: F, message
|
|
15718
|
-
traceCallback<F extends (...args: any[]) => any>(fn: F, position
|
|
15758
|
+
traceSync<F extends (...args: any[]) => any>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
|
|
15759
|
+
tracePromise<F extends (...args: any[]) => any>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): Promise<Awaited<ReturnType<F>>>;
|
|
15760
|
+
traceCallback<F extends (...args: any[]) => any>(fn: F, position?: number, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
|
|
15719
15761
|
}
|
|
15720
15762
|
interface IsoChannelHandlers<M = any> {
|
|
15721
15763
|
start?: (context: M, name: string) => void;
|
|
@@ -15731,7 +15773,7 @@ interface Common {
|
|
|
15731
15773
|
getEnv: (name: string) => string | undefined;
|
|
15732
15774
|
getCallerLocation: () => CallerLocation | undefined;
|
|
15733
15775
|
newAsyncLocalStorage: <T>() => IsoAsyncLocalStorage<T>;
|
|
15734
|
-
newTracingChannel: <M = any>(nameOrChannels: string |
|
|
15776
|
+
newTracingChannel: <M = any>(nameOrChannels: string | IsoTracingChannelCollection<M>) => IsoTracingChannel<M>;
|
|
15735
15777
|
processOn: (event: string, handler: (code: any) => void) => void;
|
|
15736
15778
|
hash?: (data: string) => string;
|
|
15737
15779
|
basename: (filepath: string) => string;
|
|
@@ -17526,6 +17568,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
17526
17568
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
17527
17569
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
17528
17570
|
templateFormat: z.ZodOptional<z.ZodEnum<["mustache", "nunjucks", "none"]>>;
|
|
17571
|
+
environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17529
17572
|
}, "strip", z.ZodTypeAny, {
|
|
17530
17573
|
model: string;
|
|
17531
17574
|
params?: z.objectOutputType<{
|
|
@@ -17646,6 +17689,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
17646
17689
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
17647
17690
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
17648
17691
|
templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
|
|
17692
|
+
environments?: string[] | undefined;
|
|
17649
17693
|
}, {
|
|
17650
17694
|
model: string;
|
|
17651
17695
|
params?: z.objectInputType<{
|
|
@@ -17766,6 +17810,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
17766
17810
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
17767
17811
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
17768
17812
|
templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
|
|
17813
|
+
environments?: string[] | undefined;
|
|
17769
17814
|
}>>, z.ZodObject<{
|
|
17770
17815
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17771
17816
|
type: z.ZodLiteral<"function">;
|
|
@@ -18037,6 +18082,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
18037
18082
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
18038
18083
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
18039
18084
|
templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
|
|
18085
|
+
environments?: string[] | undefined;
|
|
18040
18086
|
}) & {
|
|
18041
18087
|
tools?: {
|
|
18042
18088
|
function: {
|
|
@@ -18261,6 +18307,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
18261
18307
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
18262
18308
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
18263
18309
|
templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
|
|
18310
|
+
environments?: string[] | undefined;
|
|
18264
18311
|
}) & {
|
|
18265
18312
|
tools?: {
|
|
18266
18313
|
function: {
|
|
@@ -19249,10 +19296,15 @@ interface DatasetRef {
|
|
|
19249
19296
|
id: string;
|
|
19250
19297
|
version?: string;
|
|
19251
19298
|
}
|
|
19299
|
+
interface ParametersRef {
|
|
19300
|
+
id: string;
|
|
19301
|
+
version?: string;
|
|
19302
|
+
}
|
|
19252
19303
|
type InitOptions<IsOpen extends boolean> = FullLoginOptions & {
|
|
19253
19304
|
experiment?: string;
|
|
19254
19305
|
description?: string;
|
|
19255
19306
|
dataset?: AnyDataset | DatasetRef;
|
|
19307
|
+
parameters?: ParametersRef | RemoteEvalParameters<boolean, boolean>;
|
|
19256
19308
|
update?: boolean;
|
|
19257
19309
|
baseExperiment?: string;
|
|
19258
19310
|
isPublic?: boolean;
|
|
@@ -20034,7 +20086,18 @@ declare class Dataset<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY
|
|
|
20034
20086
|
close(): Promise<string>;
|
|
20035
20087
|
static isDataset(data: unknown): data is Dataset;
|
|
20036
20088
|
}
|
|
20037
|
-
type
|
|
20089
|
+
type CompiledPromptResponseFormat = Exclude<AnyModelParamsType["response_format"], null> extends infer ResponseFormat ? ResponseFormat extends {
|
|
20090
|
+
type: "json_schema";
|
|
20091
|
+
json_schema: infer JsonSchema;
|
|
20092
|
+
} ? Omit<ResponseFormat, "json_schema"> & {
|
|
20093
|
+
json_schema: Omit<Extract<JsonSchema, ResponseFormatJsonSchemaType>, "schema"> & {
|
|
20094
|
+
schema?: Record<string, unknown>;
|
|
20095
|
+
};
|
|
20096
|
+
} : ResponseFormat : never;
|
|
20097
|
+
type CompiledPromptReasoningEffort = Exclude<AnyModelParamsType["reasoning_effort"], "none">;
|
|
20098
|
+
type CompiledPromptParams = Omit<NonNullable<PromptDataType["options"]>["params"], "use_cache" | "response_format" | "reasoning_effort"> & Omit<AnyModelParamsType, "use_cache" | "response_format" | "reasoning_effort"> & {
|
|
20099
|
+
reasoning_effort?: CompiledPromptReasoningEffort;
|
|
20100
|
+
response_format?: CompiledPromptResponseFormat;
|
|
20038
20101
|
model: NonNullable<NonNullable<PromptDataType["options"]>["model"]>;
|
|
20039
20102
|
};
|
|
20040
20103
|
type ChatPrompt = {
|
|
@@ -23120,6 +23183,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
23120
23183
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
23121
23184
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
23122
23185
|
templateFormat: z.ZodOptional<z.ZodEnum<["mustache", "nunjucks", "none"]>>;
|
|
23186
|
+
environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
23123
23187
|
}, "strip", z.ZodTypeAny, {
|
|
23124
23188
|
model: string;
|
|
23125
23189
|
params?: z.objectOutputType<{
|
|
@@ -23240,6 +23304,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
23240
23304
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
23241
23305
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
23242
23306
|
templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
|
|
23307
|
+
environments?: string[] | undefined;
|
|
23243
23308
|
}, {
|
|
23244
23309
|
model: string;
|
|
23245
23310
|
params?: z.objectInputType<{
|
|
@@ -23360,6 +23425,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
23360
23425
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
23361
23426
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
23362
23427
|
templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
|
|
23428
|
+
environments?: string[] | undefined;
|
|
23363
23429
|
}>>;
|
|
23364
23430
|
type PromptDefinition = z.infer<typeof promptDefinitionSchema>;
|
|
23365
23431
|
declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
@@ -24308,6 +24374,7 @@ declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersecti
|
|
|
24308
24374
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
24309
24375
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
24310
24376
|
templateFormat: z.ZodOptional<z.ZodEnum<["mustache", "nunjucks", "none"]>>;
|
|
24377
|
+
environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
24311
24378
|
}, "strip", z.ZodTypeAny, {
|
|
24312
24379
|
model: string;
|
|
24313
24380
|
params?: z.objectOutputType<{
|
|
@@ -24428,6 +24495,7 @@ declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersecti
|
|
|
24428
24495
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
24429
24496
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
24430
24497
|
templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
|
|
24498
|
+
environments?: string[] | undefined;
|
|
24431
24499
|
}, {
|
|
24432
24500
|
model: string;
|
|
24433
24501
|
params?: z.objectInputType<{
|
|
@@ -24548,6 +24616,7 @@ declare const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersecti
|
|
|
24548
24616
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
24549
24617
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
24550
24618
|
templateFormat?: "none" | "mustache" | "nunjucks" | undefined;
|
|
24619
|
+
environments?: string[] | undefined;
|
|
24551
24620
|
}>>, z.ZodObject<{
|
|
24552
24621
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24553
24622
|
type: z.ZodLiteral<"function">;
|
|
@@ -39774,6 +39843,7 @@ declare class CodePrompt {
|
|
|
39774
39843
|
readonly toolFunctions: (SavedFunctionIdType | GenericCodeFunction)[];
|
|
39775
39844
|
readonly tags?: string[];
|
|
39776
39845
|
readonly metadata?: Record<string, unknown>;
|
|
39846
|
+
readonly environmentSlugs?: string[];
|
|
39777
39847
|
constructor(project: Project, prompt: PromptDataType, toolFunctions: (SavedFunctionIdType | GenericCodeFunction)[], opts: Omit<PromptOpts<false, false, false, false>, "name" | "slug"> & {
|
|
39778
39848
|
name: string;
|
|
39779
39849
|
slug: string;
|
|
@@ -39842,6 +39912,9 @@ interface FunctionEvent {
|
|
|
39842
39912
|
if_exists?: IfExistsType;
|
|
39843
39913
|
tags?: string[];
|
|
39844
39914
|
metadata?: Record<string, unknown>;
|
|
39915
|
+
environments?: {
|
|
39916
|
+
slug: string;
|
|
39917
|
+
}[];
|
|
39845
39918
|
}
|
|
39846
39919
|
declare class ProjectNameIdMap {
|
|
39847
39920
|
private nameToId;
|
|
@@ -40249,256 +40322,256 @@ interface InstrumentationConfig {
|
|
|
40249
40322
|
*/
|
|
40250
40323
|
declare function configureInstrumentation(config: InstrumentationConfig): void;
|
|
40251
40324
|
|
|
40252
|
-
type
|
|
40253
|
-
type
|
|
40254
|
-
declare const
|
|
40255
|
-
type
|
|
40256
|
-
declare const
|
|
40257
|
-
type
|
|
40258
|
-
type
|
|
40259
|
-
declare const
|
|
40260
|
-
declare const
|
|
40261
|
-
type
|
|
40262
|
-
declare const
|
|
40263
|
-
type
|
|
40264
|
-
declare const
|
|
40265
|
-
type
|
|
40266
|
-
declare const
|
|
40267
|
-
type
|
|
40268
|
-
type
|
|
40269
|
-
declare const
|
|
40270
|
-
type
|
|
40271
|
-
type
|
|
40272
|
-
declare const
|
|
40273
|
-
type
|
|
40274
|
-
type
|
|
40275
|
-
declare const
|
|
40276
|
-
type
|
|
40277
|
-
type
|
|
40278
|
-
type
|
|
40279
|
-
type
|
|
40280
|
-
type
|
|
40281
|
-
declare const
|
|
40282
|
-
type
|
|
40283
|
-
type
|
|
40284
|
-
declare const
|
|
40285
|
-
declare const
|
|
40286
|
-
type
|
|
40287
|
-
type
|
|
40288
|
-
declare const
|
|
40289
|
-
type
|
|
40290
|
-
type
|
|
40291
|
-
type
|
|
40292
|
-
type
|
|
40293
|
-
declare const
|
|
40294
|
-
type
|
|
40295
|
-
declare const
|
|
40296
|
-
type
|
|
40297
|
-
type
|
|
40298
|
-
type
|
|
40299
|
-
type
|
|
40300
|
-
type
|
|
40301
|
-
type
|
|
40302
|
-
declare const
|
|
40303
|
-
type
|
|
40304
|
-
type
|
|
40305
|
-
type
|
|
40306
|
-
type
|
|
40307
|
-
type
|
|
40308
|
-
type
|
|
40309
|
-
type
|
|
40310
|
-
type
|
|
40311
|
-
type
|
|
40312
|
-
type
|
|
40313
|
-
declare const
|
|
40314
|
-
type
|
|
40315
|
-
type
|
|
40316
|
-
type
|
|
40317
|
-
type
|
|
40318
|
-
type
|
|
40319
|
-
declare const
|
|
40320
|
-
type
|
|
40321
|
-
type
|
|
40322
|
-
declare const
|
|
40323
|
-
type
|
|
40324
|
-
type
|
|
40325
|
-
type
|
|
40326
|
-
type
|
|
40327
|
-
type
|
|
40328
|
-
type
|
|
40329
|
-
declare const
|
|
40330
|
-
type
|
|
40331
|
-
type
|
|
40332
|
-
type
|
|
40333
|
-
type
|
|
40334
|
-
type
|
|
40335
|
-
type
|
|
40336
|
-
type
|
|
40337
|
-
type
|
|
40338
|
-
type
|
|
40339
|
-
declare const
|
|
40340
|
-
declare const
|
|
40341
|
-
declare const
|
|
40342
|
-
type
|
|
40343
|
-
declare const
|
|
40344
|
-
type
|
|
40345
|
-
type
|
|
40346
|
-
type
|
|
40347
|
-
type
|
|
40348
|
-
type
|
|
40349
|
-
declare const
|
|
40350
|
-
type
|
|
40351
|
-
declare const
|
|
40352
|
-
type
|
|
40353
|
-
type
|
|
40354
|
-
type
|
|
40355
|
-
type
|
|
40356
|
-
declare const
|
|
40357
|
-
declare const
|
|
40358
|
-
type
|
|
40359
|
-
declare const
|
|
40360
|
-
type
|
|
40361
|
-
declare const
|
|
40362
|
-
type
|
|
40363
|
-
type
|
|
40364
|
-
type
|
|
40365
|
-
type
|
|
40366
|
-
type
|
|
40367
|
-
type
|
|
40368
|
-
declare const
|
|
40369
|
-
type
|
|
40370
|
-
declare const
|
|
40371
|
-
type
|
|
40372
|
-
type
|
|
40373
|
-
declare const
|
|
40374
|
-
type
|
|
40375
|
-
declare const
|
|
40376
|
-
type
|
|
40377
|
-
type
|
|
40378
|
-
type
|
|
40379
|
-
type
|
|
40380
|
-
type
|
|
40381
|
-
type
|
|
40382
|
-
declare const
|
|
40383
|
-
type
|
|
40384
|
-
declare const
|
|
40385
|
-
type
|
|
40386
|
-
type
|
|
40387
|
-
declare const
|
|
40388
|
-
type
|
|
40389
|
-
type
|
|
40390
|
-
type
|
|
40391
|
-
type
|
|
40392
|
-
declare const
|
|
40393
|
-
type
|
|
40394
|
-
type
|
|
40395
|
-
type
|
|
40396
|
-
type
|
|
40397
|
-
type
|
|
40398
|
-
type
|
|
40399
|
-
type
|
|
40400
|
-
declare const
|
|
40401
|
-
type
|
|
40402
|
-
declare const
|
|
40403
|
-
type
|
|
40404
|
-
type
|
|
40405
|
-
type
|
|
40406
|
-
type
|
|
40407
|
-
type
|
|
40408
|
-
declare const
|
|
40409
|
-
type
|
|
40410
|
-
declare const
|
|
40411
|
-
type
|
|
40412
|
-
type
|
|
40413
|
-
declare const
|
|
40414
|
-
type
|
|
40415
|
-
declare const
|
|
40416
|
-
declare const
|
|
40417
|
-
declare const
|
|
40418
|
-
declare const
|
|
40419
|
-
declare const
|
|
40420
|
-
declare const
|
|
40421
|
-
declare const
|
|
40422
|
-
declare const
|
|
40423
|
-
declare const
|
|
40424
|
-
declare const
|
|
40425
|
-
declare const
|
|
40426
|
-
declare const
|
|
40427
|
-
declare const
|
|
40428
|
-
declare const
|
|
40429
|
-
declare const
|
|
40430
|
-
declare const
|
|
40431
|
-
declare const
|
|
40432
|
-
declare const
|
|
40433
|
-
declare const
|
|
40434
|
-
declare const
|
|
40435
|
-
declare const
|
|
40436
|
-
declare const
|
|
40437
|
-
declare const
|
|
40438
|
-
declare const
|
|
40439
|
-
declare const
|
|
40440
|
-
declare const
|
|
40441
|
-
declare const
|
|
40442
|
-
declare const
|
|
40443
|
-
declare const
|
|
40444
|
-
declare const
|
|
40445
|
-
declare const
|
|
40446
|
-
declare const
|
|
40447
|
-
declare const
|
|
40448
|
-
declare const
|
|
40449
|
-
declare const
|
|
40450
|
-
declare const
|
|
40451
|
-
declare const
|
|
40452
|
-
declare const
|
|
40453
|
-
declare const
|
|
40454
|
-
declare const
|
|
40455
|
-
declare const
|
|
40456
|
-
declare const
|
|
40457
|
-
declare const
|
|
40458
|
-
declare const
|
|
40459
|
-
declare const
|
|
40460
|
-
declare const
|
|
40461
|
-
declare const
|
|
40462
|
-
declare const
|
|
40463
|
-
declare const
|
|
40464
|
-
declare const
|
|
40465
|
-
declare const
|
|
40466
|
-
declare const
|
|
40467
|
-
declare const
|
|
40468
|
-
declare const
|
|
40469
|
-
declare const
|
|
40470
|
-
declare const
|
|
40471
|
-
declare const
|
|
40472
|
-
declare const
|
|
40473
|
-
declare const
|
|
40474
|
-
declare const
|
|
40475
|
-
declare const
|
|
40476
|
-
declare const
|
|
40477
|
-
declare const
|
|
40478
|
-
declare const
|
|
40479
|
-
declare const
|
|
40480
|
-
declare const
|
|
40481
|
-
declare const
|
|
40482
|
-
declare const
|
|
40483
|
-
declare const
|
|
40484
|
-
declare const
|
|
40485
|
-
declare const
|
|
40486
|
-
declare const
|
|
40487
|
-
declare const
|
|
40488
|
-
declare const
|
|
40489
|
-
declare const
|
|
40490
|
-
declare const
|
|
40491
|
-
declare const
|
|
40492
|
-
declare const
|
|
40493
|
-
declare const
|
|
40494
|
-
declare const
|
|
40495
|
-
declare const
|
|
40496
|
-
declare const
|
|
40497
|
-
declare const
|
|
40498
|
-
declare const
|
|
40499
|
-
declare const
|
|
40500
|
-
declare namespace
|
|
40501
|
-
export { type _exports_AnyDataset as AnyDataset, _exports_Attachment as Attachment, type _exports_AttachmentParams as AttachmentParams, _exports_AttachmentReference as AttachmentReference, type _exports_BackgroundLoggerOpts as BackgroundLoggerOpts, _exports_BaseAttachment as BaseAttachment, _exports_BaseExperiment as BaseExperiment, type _exports_BaseMetadata as BaseMetadata, _exports_BraintrustMiddleware as BraintrustMiddleware, _exports_BraintrustState as BraintrustState, _exports_BraintrustStream as BraintrustStream, type _exports_BraintrustStreamChunk as BraintrustStreamChunk, _exports_CachedSpanFetcher as CachedSpanFetcher, type _exports_ChatPrompt as ChatPrompt, _exports_CodeFunction as CodeFunction, type _exports_CodeOpts as CodeOpts, _exports_CodePrompt as CodePrompt, type _exports_CommentEvent as CommentEvent, type _exports_CompiledPrompt as CompiledPrompt, type _exports_CompiledPromptParams as CompiledPromptParams, type _exports_CompletionPrompt as CompletionPrompt, _exports_ContextManager as ContextManager, type _exports_ContextParentSpanIds as ContextParentSpanIds, type _exports_CreateProjectOpts as CreateProjectOpts, _exports_DEFAULT_FETCH_BATCH_SIZE as DEFAULT_FETCH_BATCH_SIZE, _exports_DEFAULT_MAX_REQUEST_SIZE as DEFAULT_MAX_REQUEST_SIZE, type _exports_DataSummary as DataSummary, _exports_Dataset as Dataset, type _exports_DatasetRecord as DatasetRecord, type _exports_DatasetSummary as DatasetSummary, type _exports_DefaultMetadataType as DefaultMetadataType, type _exports_DefaultPromptArgs as DefaultPromptArgs, _exports_ERR_PERMALINK as ERR_PERMALINK, type _exports_EndSpanArgs as EndSpanArgs, _exports_Eval as Eval, type _exports_EvalCase as EvalCase, type _exports_EvalHooks as EvalHooks, type _exports_EvalParameterSerializedSchema as EvalParameterSerializedSchema, type _exports_EvalParameters as EvalParameters, type _exports_EvalResult as EvalResult, _exports_EvalResultWithSummary as EvalResultWithSummary, type _exports_EvalScorer as EvalScorer, type _exports_EvalScorerArgs as EvalScorerArgs, type _exports_EvalTask as EvalTask, type _exports_Evaluator as Evaluator, type _exports_EvaluatorDef as EvaluatorDef, type _exports_EvaluatorDefinition as EvaluatorDefinition, type _exports_EvaluatorDefinitions as EvaluatorDefinitions, type _exports_EvaluatorFile as EvaluatorFile, type _exports_EvaluatorManifest as EvaluatorManifest, _exports_Experiment as Experiment, type _exports_ExperimentLogFullArgs as ExperimentLogFullArgs, type _exports_ExperimentLogPartialArgs as ExperimentLogPartialArgs, type _exports_ExperimentSummary as ExperimentSummary, type _exports_Exportable as Exportable, _exports_ExternalAttachment as ExternalAttachment, type _exports_ExternalAttachmentParams as ExternalAttachmentParams, _exports_FailedHTTPResponse as FailedHTTPResponse, type _exports_FullInitDatasetOptions as FullInitDatasetOptions, type _exports_FullInitOptions as FullInitOptions, type _exports_FullLoginOptions as FullLoginOptions, type _exports_FunctionEvent as FunctionEvent, type _exports_GetThreadOptions as GetThreadOptions, _exports_IDGenerator as IDGenerator, type _exports_IdField as IdField, type _exports_InitDatasetOptions as InitDatasetOptions, type _exports_InitLoggerOptions as InitLoggerOptions, type _exports_InitOptions as InitOptions, type _exports_InputField as InputField, type _exports_InstrumentationConfig as InstrumentationConfig, type _exports_InvokeFunctionArgs as InvokeFunctionArgs, type _exports_InvokeReturn as InvokeReturn, _exports_JSONAttachment as JSONAttachment, _exports_LEGACY_CACHED_HEADER as LEGACY_CACHED_HEADER, _exports_LOGS3_OVERFLOW_REFERENCE_TYPE as LOGS3_OVERFLOW_REFERENCE_TYPE, _exports_LazyValue as LazyValue, type _exports_LoadPromptOptions as LoadPromptOptions, type _exports_LogCommentFullArgs as LogCommentFullArgs, type _exports_LogFeedbackFullArgs as LogFeedbackFullArgs, type _exports_LogOptions as LogOptions, _exports_Logger as Logger, _exports_LoginInvalidOrgError as LoginInvalidOrgError, type _exports_LoginOptions as LoginOptions, type _exports_Logs3OverflowInputRow as Logs3OverflowInputRow, type _exports_Logs3OverflowUpload as Logs3OverflowUpload, type _exports_MetricSummary as MetricSummary, _exports_NOOP_SPAN as NOOP_SPAN, _exports_NOOP_SPAN_PERMALINK as NOOP_SPAN_PERMALINK, _exports_NoopSpan as NoopSpan, _exports_ObjectFetcher as ObjectFetcher, type _exports_ObjectMetadata as ObjectMetadata, type _exports_OtherExperimentLogFields as OtherExperimentLogFields, type _exports_ParametersSource as ParametersSource, type _exports_ParentExperimentIds as ParentExperimentIds, type _exports_ParentProjectLogIds as ParentProjectLogIds, _exports_Project as Project, _exports_ProjectNameIdMap as ProjectNameIdMap, type _exports_PromiseUnless as PromiseUnless, _exports_Prompt as Prompt, _exports_PromptBuilder as PromptBuilder, type _exports_PromptContents as PromptContents, type _exports_PromptDefinition as PromptDefinition, type _exports_PromptDefinitionWithTools as PromptDefinitionWithTools, type _exports_PromptOpts as PromptOpts, type _exports_PromptRowWithId as PromptRowWithId, _exports_ReadonlyAttachment as ReadonlyAttachment, _exports_ReadonlyExperiment as ReadonlyExperiment, type _exports_RegisterSandboxOptions as RegisterSandboxOptions, type _exports_RegisterSandboxResult as RegisterSandboxResult, _exports_Reporter as Reporter, type _exports_ReporterBody as ReporterBody, type _exports_SandboxConfig as SandboxConfig, type _exports_ScoreSummary as ScoreSummary, _exports_ScorerBuilder as ScorerBuilder, type _exports_ScorerOpts as ScorerOpts, type _exports_SerializedBraintrustState as SerializedBraintrustState, type _exports_SetCurrentArg as SetCurrentArg, type _exports_Span as Span, type _exports_SpanContext as SpanContext, type _exports_SpanData as SpanData, _exports_SpanFetcher as SpanFetcher, _exports_SpanImpl as SpanImpl, type _exports_StartSpanArgs as StartSpanArgs, type _exports_TemplateFormat as TemplateFormat, type _exports_TemplateRenderer as TemplateRenderer, type _exports_TemplateRendererPlugin as TemplateRendererPlugin, _exports_TestBackgroundLogger as TestBackgroundLogger, _exports_ToolBuilder as ToolBuilder, type _exports_Trace as Trace, _exports_UUIDGenerator as UUIDGenerator, type _exports_WithTransactionId as WithTransactionId, _exports_X_CACHED_HEADER as X_CACHED_HEADER, _exports__exportsForTestingOnly as _exportsForTestingOnly, _exports__internalGetGlobalState as _internalGetGlobalState, iso as _internalIso, _exports__internalSetInitialState as _internalSetInitialState, _exports_addAzureBlobHeaders as addAzureBlobHeaders, _exports_braintrustStreamChunkSchema as braintrustStreamChunkSchema, _exports_buildLocalSummary as buildLocalSummary, _exports_configureInstrumentation as configureInstrumentation, _exports_constructLogs3OverflowRequest as constructLogs3OverflowRequest, _exports_createFinalValuePassThroughStream as createFinalValuePassThroughStream, _exports_currentExperiment as currentExperiment, _exports_currentLogger as currentLogger, _exports_currentSpan as currentSpan, _exports_deepCopyEvent as deepCopyEvent, _exports_defaultErrorScoreHandler as defaultErrorScoreHandler, _exports_deserializePlainStringAsJSON as deserializePlainStringAsJSON, _exports_devNullWritableStream as devNullWritableStream, _exports_evaluatorDefinitionSchema as evaluatorDefinitionSchema, _exports_evaluatorDefinitionsSchema as evaluatorDefinitionsSchema, _exports_flush as flush, _exports_getContextManager as getContextManager, _exports_getIdGenerator as getIdGenerator, _exports_getPromptVersions as getPromptVersions, _exports_getSpanParentObject as getSpanParentObject, _exports_getTemplateRenderer as getTemplateRenderer, graphFramework as graph, _exports_init as init, _exports_initDataset as initDataset, _exports_initExperiment as initExperiment, _exports_initFunction as initFunction, _exports_initLogger as initLogger, _exports_initNodeTestSuite as initNodeTestSuite, _exports_invoke as invoke, _exports_isTemplateFormat as isTemplateFormat, _exports_loadParameters as loadParameters, _exports_loadPrompt as loadPrompt, _exports_log as log, _exports_logError as logError, _exports_login as login, _exports_loginToState as loginToState, _exports_logs3OverflowUploadSchema as logs3OverflowUploadSchema, _exports_newId as newId, _exports_parseCachedHeader as parseCachedHeader, _exports_parseTemplateFormat as parseTemplateFormat, _exports_permalink as permalink, _exports_pickLogs3OverflowObjectIds as pickLogs3OverflowObjectIds, _exports_projects as projects, _exports_promptContentsSchema as promptContentsSchema, _exports_promptDefinitionSchema as promptDefinitionSchema, _exports_promptDefinitionToPromptData as promptDefinitionToPromptData, _exports_promptDefinitionWithToolsSchema as promptDefinitionWithToolsSchema, _exports_registerOtelFlush as registerOtelFlush, _exports_registerSandbox as registerSandbox, _exports_registerTemplatePlugin as registerTemplatePlugin, _exports_renderMessage as renderMessage, _exports_renderPromptParams as renderPromptParams, _exports_renderTemplateContent as renderTemplateContent, _exports_reportFailures as reportFailures, _exports_runEvaluator as runEvaluator, _exports_setFetch as setFetch, _exports_setMaskingFunction as setMaskingFunction, _exports_spanComponentsToObjectId as spanComponentsToObjectId, _exports_startSpan as startSpan, _exports_summarize as summarize, _exports_templateRegistry as templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, _exports_traceable as traceable, _exports_traced as traced, _exports_updateSpan as updateSpan, _exports_uploadLogs3OverflowPayload as uploadLogs3OverflowPayload, _exports_utf8ByteLength as utf8ByteLength, _exports_withCurrent as withCurrent, _exports_withDataset as withDataset, _exports_withExperiment as withExperiment, _exports_withLogger as withLogger, _exports_withParent as withParent, _exports_wrapAISDK as wrapAISDK, _exports_wrapAISDKModel as wrapAISDKModel, _exports_wrapAgentClass as wrapAgentClass, _exports_wrapAnthropic as wrapAnthropic, _exports_wrapClaudeAgentSDK as wrapClaudeAgentSDK, _exports_wrapGoogleGenAI as wrapGoogleGenAI, _exports_wrapMastraAgent as wrapMastraAgent, _exports_wrapOpenAI as wrapOpenAI, _exports_wrapOpenAIv4 as wrapOpenAIv4, _exports_wrapTraced as wrapTraced, _exports_wrapVitest as wrapVitest };
|
|
40325
|
+
type exports_AnyDataset = AnyDataset;
|
|
40326
|
+
type exports_Attachment = Attachment;
|
|
40327
|
+
declare const exports_Attachment: typeof Attachment;
|
|
40328
|
+
type exports_AttachmentParams = AttachmentParams;
|
|
40329
|
+
declare const exports_AttachmentReference: typeof AttachmentReference;
|
|
40330
|
+
type exports_BackgroundLoggerOpts = BackgroundLoggerOpts;
|
|
40331
|
+
type exports_BaseAttachment = BaseAttachment;
|
|
40332
|
+
declare const exports_BaseAttachment: typeof BaseAttachment;
|
|
40333
|
+
declare const exports_BaseExperiment: typeof BaseExperiment;
|
|
40334
|
+
type exports_BaseMetadata = BaseMetadata;
|
|
40335
|
+
declare const exports_BraintrustMiddleware: typeof BraintrustMiddleware;
|
|
40336
|
+
type exports_BraintrustState = BraintrustState;
|
|
40337
|
+
declare const exports_BraintrustState: typeof BraintrustState;
|
|
40338
|
+
type exports_BraintrustStream = BraintrustStream;
|
|
40339
|
+
declare const exports_BraintrustStream: typeof BraintrustStream;
|
|
40340
|
+
type exports_BraintrustStreamChunk = BraintrustStreamChunk;
|
|
40341
|
+
type exports_CachedSpanFetcher = CachedSpanFetcher;
|
|
40342
|
+
declare const exports_CachedSpanFetcher: typeof CachedSpanFetcher;
|
|
40343
|
+
type exports_ChatPrompt = ChatPrompt;
|
|
40344
|
+
type exports_CodeFunction<Input, Output, Fn extends GenericFunction<Input, Output>> = CodeFunction<Input, Output, Fn>;
|
|
40345
|
+
declare const exports_CodeFunction: typeof CodeFunction;
|
|
40346
|
+
type exports_CodeOpts<Params, Returns, Fn extends GenericFunction<Params, Returns>> = CodeOpts<Params, Returns, Fn>;
|
|
40347
|
+
type exports_CodePrompt = CodePrompt;
|
|
40348
|
+
declare const exports_CodePrompt: typeof CodePrompt;
|
|
40349
|
+
type exports_CommentEvent = CommentEvent;
|
|
40350
|
+
type exports_CompiledPrompt<Flavor extends "chat" | "completion"> = CompiledPrompt<Flavor>;
|
|
40351
|
+
type exports_CompiledPromptParams = CompiledPromptParams;
|
|
40352
|
+
type exports_CompletionPrompt = CompletionPrompt;
|
|
40353
|
+
type exports_ContextManager = ContextManager;
|
|
40354
|
+
declare const exports_ContextManager: typeof ContextManager;
|
|
40355
|
+
type exports_ContextParentSpanIds = ContextParentSpanIds;
|
|
40356
|
+
type exports_CreateProjectOpts = CreateProjectOpts;
|
|
40357
|
+
declare const exports_DEFAULT_FETCH_BATCH_SIZE: typeof DEFAULT_FETCH_BATCH_SIZE;
|
|
40358
|
+
declare const exports_DEFAULT_MAX_REQUEST_SIZE: typeof DEFAULT_MAX_REQUEST_SIZE;
|
|
40359
|
+
type exports_DataSummary = DataSummary;
|
|
40360
|
+
type exports_Dataset<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY_DATASET> = Dataset<IsLegacyDataset>;
|
|
40361
|
+
declare const exports_Dataset: typeof Dataset;
|
|
40362
|
+
type exports_DatasetRecord<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY_DATASET> = DatasetRecord<IsLegacyDataset>;
|
|
40363
|
+
type exports_DatasetSummary = DatasetSummary;
|
|
40364
|
+
type exports_DefaultMetadataType = DefaultMetadataType;
|
|
40365
|
+
type exports_DefaultPromptArgs = DefaultPromptArgs;
|
|
40366
|
+
declare const exports_ERR_PERMALINK: typeof ERR_PERMALINK;
|
|
40367
|
+
type exports_EndSpanArgs = EndSpanArgs;
|
|
40368
|
+
declare const exports_Eval: typeof Eval;
|
|
40369
|
+
type exports_EvalCase<Input, Expected, Metadata> = EvalCase<Input, Expected, Metadata>;
|
|
40370
|
+
type exports_EvalHooks<Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters> = EvalHooks<Expected, Metadata, Parameters>;
|
|
40371
|
+
type exports_EvalParameterSerializedSchema = EvalParameterSerializedSchema;
|
|
40372
|
+
type exports_EvalParameters = EvalParameters;
|
|
40373
|
+
type exports_EvalResult<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalResult<Input, Output, Expected, Metadata>;
|
|
40374
|
+
type exports_EvalResultWithSummary<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalResultWithSummary<Input, Output, Expected, Metadata>;
|
|
40375
|
+
declare const exports_EvalResultWithSummary: typeof EvalResultWithSummary;
|
|
40376
|
+
type exports_EvalScorer<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalScorer<Input, Output, Expected, Metadata>;
|
|
40377
|
+
type exports_EvalScorerArgs<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalScorerArgs<Input, Output, Expected, Metadata>;
|
|
40378
|
+
type exports_EvalTask<Input, Output, Expected, Metadata extends BaseMetadata, Parameters extends EvalParameters> = EvalTask<Input, Output, Expected, Metadata, Parameters>;
|
|
40379
|
+
type exports_Evaluator<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters> = Evaluator<Input, Output, Expected, Metadata, Parameters>;
|
|
40380
|
+
type exports_EvaluatorDef<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType, Parameters extends EvalParameters = EvalParameters> = EvaluatorDef<Input, Output, Expected, Metadata, Parameters>;
|
|
40381
|
+
type exports_EvaluatorDefinition = EvaluatorDefinition;
|
|
40382
|
+
type exports_EvaluatorDefinitions = EvaluatorDefinitions;
|
|
40383
|
+
type exports_EvaluatorFile = EvaluatorFile;
|
|
40384
|
+
type exports_EvaluatorManifest = EvaluatorManifest;
|
|
40385
|
+
type exports_Experiment = Experiment;
|
|
40386
|
+
declare const exports_Experiment: typeof Experiment;
|
|
40387
|
+
type exports_ExperimentLogFullArgs = ExperimentLogFullArgs;
|
|
40388
|
+
type exports_ExperimentLogPartialArgs = ExperimentLogPartialArgs;
|
|
40389
|
+
type exports_ExperimentSummary = ExperimentSummary;
|
|
40390
|
+
type exports_Exportable = Exportable;
|
|
40391
|
+
type exports_ExternalAttachment = ExternalAttachment;
|
|
40392
|
+
declare const exports_ExternalAttachment: typeof ExternalAttachment;
|
|
40393
|
+
type exports_ExternalAttachmentParams = ExternalAttachmentParams;
|
|
40394
|
+
type exports_FailedHTTPResponse = FailedHTTPResponse;
|
|
40395
|
+
declare const exports_FailedHTTPResponse: typeof FailedHTTPResponse;
|
|
40396
|
+
type exports_FullInitDatasetOptions<IsLegacyDataset extends boolean> = FullInitDatasetOptions<IsLegacyDataset>;
|
|
40397
|
+
type exports_FullInitOptions<IsOpen extends boolean> = FullInitOptions<IsOpen>;
|
|
40398
|
+
type exports_FullLoginOptions = FullLoginOptions;
|
|
40399
|
+
type exports_FunctionEvent = FunctionEvent;
|
|
40400
|
+
type exports_GetThreadOptions = GetThreadOptions;
|
|
40401
|
+
type exports_IDGenerator = IDGenerator;
|
|
40402
|
+
declare const exports_IDGenerator: typeof IDGenerator;
|
|
40403
|
+
type exports_IdField = IdField;
|
|
40404
|
+
type exports_InitDatasetOptions<IsLegacyDataset extends boolean> = InitDatasetOptions<IsLegacyDataset>;
|
|
40405
|
+
type exports_InitLoggerOptions<IsAsyncFlush> = InitLoggerOptions<IsAsyncFlush>;
|
|
40406
|
+
type exports_InitOptions<IsOpen extends boolean> = InitOptions<IsOpen>;
|
|
40407
|
+
type exports_InputField = InputField;
|
|
40408
|
+
type exports_InstrumentationConfig = InstrumentationConfig;
|
|
40409
|
+
type exports_InvokeFunctionArgs<Input, Output, Stream extends boolean = false> = InvokeFunctionArgs<Input, Output, Stream>;
|
|
40410
|
+
type exports_InvokeReturn<Stream extends boolean, Output> = InvokeReturn<Stream, Output>;
|
|
40411
|
+
type exports_JSONAttachment = JSONAttachment;
|
|
40412
|
+
declare const exports_JSONAttachment: typeof JSONAttachment;
|
|
40413
|
+
declare const exports_LEGACY_CACHED_HEADER: typeof LEGACY_CACHED_HEADER;
|
|
40414
|
+
declare const exports_LOGS3_OVERFLOW_REFERENCE_TYPE: typeof LOGS3_OVERFLOW_REFERENCE_TYPE;
|
|
40415
|
+
type exports_LazyValue<T> = LazyValue<T>;
|
|
40416
|
+
declare const exports_LazyValue: typeof LazyValue;
|
|
40417
|
+
type exports_LoadPromptOptions = LoadPromptOptions;
|
|
40418
|
+
type exports_LogCommentFullArgs = LogCommentFullArgs;
|
|
40419
|
+
type exports_LogFeedbackFullArgs = LogFeedbackFullArgs;
|
|
40420
|
+
type exports_LogOptions<IsAsyncFlush> = LogOptions<IsAsyncFlush>;
|
|
40421
|
+
type exports_Logger<IsAsyncFlush extends boolean> = Logger<IsAsyncFlush>;
|
|
40422
|
+
declare const exports_Logger: typeof Logger;
|
|
40423
|
+
type exports_LoginInvalidOrgError = LoginInvalidOrgError;
|
|
40424
|
+
declare const exports_LoginInvalidOrgError: typeof LoginInvalidOrgError;
|
|
40425
|
+
type exports_LoginOptions = LoginOptions;
|
|
40426
|
+
type exports_Logs3OverflowInputRow = Logs3OverflowInputRow;
|
|
40427
|
+
type exports_Logs3OverflowUpload = Logs3OverflowUpload;
|
|
40428
|
+
type exports_MetricSummary = MetricSummary;
|
|
40429
|
+
declare const exports_NOOP_SPAN: typeof NOOP_SPAN;
|
|
40430
|
+
declare const exports_NOOP_SPAN_PERMALINK: typeof NOOP_SPAN_PERMALINK;
|
|
40431
|
+
type exports_NoopSpan = NoopSpan;
|
|
40432
|
+
declare const exports_NoopSpan: typeof NoopSpan;
|
|
40433
|
+
type exports_ObjectFetcher<RecordType> = ObjectFetcher<RecordType>;
|
|
40434
|
+
declare const exports_ObjectFetcher: typeof ObjectFetcher;
|
|
40435
|
+
type exports_ObjectMetadata = ObjectMetadata;
|
|
40436
|
+
type exports_OtherExperimentLogFields = OtherExperimentLogFields;
|
|
40437
|
+
type exports_ParametersSource = ParametersSource;
|
|
40438
|
+
type exports_ParentExperimentIds = ParentExperimentIds;
|
|
40439
|
+
type exports_ParentProjectLogIds = ParentProjectLogIds;
|
|
40440
|
+
type exports_Project = Project;
|
|
40441
|
+
declare const exports_Project: typeof Project;
|
|
40442
|
+
type exports_ProjectNameIdMap = ProjectNameIdMap;
|
|
40443
|
+
declare const exports_ProjectNameIdMap: typeof ProjectNameIdMap;
|
|
40444
|
+
type exports_PromiseUnless<B, R> = PromiseUnless<B, R>;
|
|
40445
|
+
type exports_Prompt<HasId extends boolean = true, HasVersion extends boolean = true> = Prompt<HasId, HasVersion>;
|
|
40446
|
+
declare const exports_Prompt: typeof Prompt;
|
|
40447
|
+
type exports_PromptBuilder = PromptBuilder;
|
|
40448
|
+
declare const exports_PromptBuilder: typeof PromptBuilder;
|
|
40449
|
+
type exports_PromptContents = PromptContents;
|
|
40450
|
+
type exports_PromptDefinition = PromptDefinition;
|
|
40451
|
+
type exports_PromptDefinitionWithTools = PromptDefinitionWithTools;
|
|
40452
|
+
type exports_PromptOpts<HasId extends boolean, HasVersion extends boolean, HasTools extends boolean = true, HasNoTrace extends boolean = true> = PromptOpts<HasId, HasVersion, HasTools, HasNoTrace>;
|
|
40453
|
+
type exports_PromptRowWithId<HasId extends boolean = true, HasVersion extends boolean = true> = PromptRowWithId<HasId, HasVersion>;
|
|
40454
|
+
type exports_ReadonlyAttachment = ReadonlyAttachment;
|
|
40455
|
+
declare const exports_ReadonlyAttachment: typeof ReadonlyAttachment;
|
|
40456
|
+
type exports_ReadonlyExperiment = ReadonlyExperiment;
|
|
40457
|
+
declare const exports_ReadonlyExperiment: typeof ReadonlyExperiment;
|
|
40458
|
+
type exports_RegisterSandboxOptions = RegisterSandboxOptions;
|
|
40459
|
+
type exports_RegisterSandboxResult = RegisterSandboxResult;
|
|
40460
|
+
declare const exports_Reporter: typeof Reporter;
|
|
40461
|
+
type exports_ReporterBody<EvalReport> = ReporterBody<EvalReport>;
|
|
40462
|
+
type exports_SandboxConfig = SandboxConfig;
|
|
40463
|
+
type exports_ScoreSummary = ScoreSummary;
|
|
40464
|
+
type exports_ScorerBuilder = ScorerBuilder;
|
|
40465
|
+
declare const exports_ScorerBuilder: typeof ScorerBuilder;
|
|
40466
|
+
type exports_ScorerOpts<Output, Input, Params, Returns, Fn extends GenericFunction<Exact<Params, ScorerArgs<Output, Input>>, Returns>> = ScorerOpts<Output, Input, Params, Returns, Fn>;
|
|
40467
|
+
type exports_SerializedBraintrustState = SerializedBraintrustState;
|
|
40468
|
+
type exports_SetCurrentArg = SetCurrentArg;
|
|
40469
|
+
type exports_Span = Span;
|
|
40470
|
+
type exports_SpanContext = SpanContext;
|
|
40471
|
+
type exports_SpanData = SpanData;
|
|
40472
|
+
type exports_SpanFetcher = SpanFetcher;
|
|
40473
|
+
declare const exports_SpanFetcher: typeof SpanFetcher;
|
|
40474
|
+
type exports_SpanImpl = SpanImpl;
|
|
40475
|
+
declare const exports_SpanImpl: typeof SpanImpl;
|
|
40476
|
+
type exports_StartSpanArgs = StartSpanArgs;
|
|
40477
|
+
type exports_TemplateFormat = TemplateFormat;
|
|
40478
|
+
type exports_TemplateRenderer = TemplateRenderer;
|
|
40479
|
+
type exports_TemplateRendererPlugin = TemplateRendererPlugin;
|
|
40480
|
+
type exports_TestBackgroundLogger = TestBackgroundLogger;
|
|
40481
|
+
declare const exports_TestBackgroundLogger: typeof TestBackgroundLogger;
|
|
40482
|
+
type exports_ToolBuilder = ToolBuilder;
|
|
40483
|
+
declare const exports_ToolBuilder: typeof ToolBuilder;
|
|
40484
|
+
type exports_Trace = Trace;
|
|
40485
|
+
type exports_UUIDGenerator = UUIDGenerator;
|
|
40486
|
+
declare const exports_UUIDGenerator: typeof UUIDGenerator;
|
|
40487
|
+
type exports_WithTransactionId<R> = WithTransactionId<R>;
|
|
40488
|
+
declare const exports_X_CACHED_HEADER: typeof X_CACHED_HEADER;
|
|
40489
|
+
declare const exports__exportsForTestingOnly: typeof _exportsForTestingOnly;
|
|
40490
|
+
declare const exports__internalGetGlobalState: typeof _internalGetGlobalState;
|
|
40491
|
+
declare const exports__internalSetInitialState: typeof _internalSetInitialState;
|
|
40492
|
+
declare const exports_addAzureBlobHeaders: typeof addAzureBlobHeaders;
|
|
40493
|
+
declare const exports_braintrustStreamChunkSchema: typeof braintrustStreamChunkSchema;
|
|
40494
|
+
declare const exports_buildLocalSummary: typeof buildLocalSummary;
|
|
40495
|
+
declare const exports_configureInstrumentation: typeof configureInstrumentation;
|
|
40496
|
+
declare const exports_constructLogs3OverflowRequest: typeof constructLogs3OverflowRequest;
|
|
40497
|
+
declare const exports_createFinalValuePassThroughStream: typeof createFinalValuePassThroughStream;
|
|
40498
|
+
declare const exports_currentExperiment: typeof currentExperiment;
|
|
40499
|
+
declare const exports_currentLogger: typeof currentLogger;
|
|
40500
|
+
declare const exports_currentSpan: typeof currentSpan;
|
|
40501
|
+
declare const exports_deepCopyEvent: typeof deepCopyEvent;
|
|
40502
|
+
declare const exports_defaultErrorScoreHandler: typeof defaultErrorScoreHandler;
|
|
40503
|
+
declare const exports_deserializePlainStringAsJSON: typeof deserializePlainStringAsJSON;
|
|
40504
|
+
declare const exports_devNullWritableStream: typeof devNullWritableStream;
|
|
40505
|
+
declare const exports_evaluatorDefinitionSchema: typeof evaluatorDefinitionSchema;
|
|
40506
|
+
declare const exports_evaluatorDefinitionsSchema: typeof evaluatorDefinitionsSchema;
|
|
40507
|
+
declare const exports_flush: typeof flush;
|
|
40508
|
+
declare const exports_getContextManager: typeof getContextManager;
|
|
40509
|
+
declare const exports_getIdGenerator: typeof getIdGenerator;
|
|
40510
|
+
declare const exports_getPromptVersions: typeof getPromptVersions;
|
|
40511
|
+
declare const exports_getSpanParentObject: typeof getSpanParentObject;
|
|
40512
|
+
declare const exports_getTemplateRenderer: typeof getTemplateRenderer;
|
|
40513
|
+
declare const exports_init: typeof init;
|
|
40514
|
+
declare const exports_initDataset: typeof initDataset;
|
|
40515
|
+
declare const exports_initExperiment: typeof initExperiment;
|
|
40516
|
+
declare const exports_initFunction: typeof initFunction;
|
|
40517
|
+
declare const exports_initLogger: typeof initLogger;
|
|
40518
|
+
declare const exports_initNodeTestSuite: typeof initNodeTestSuite;
|
|
40519
|
+
declare const exports_invoke: typeof invoke;
|
|
40520
|
+
declare const exports_isTemplateFormat: typeof isTemplateFormat;
|
|
40521
|
+
declare const exports_loadParameters: typeof loadParameters;
|
|
40522
|
+
declare const exports_loadPrompt: typeof loadPrompt;
|
|
40523
|
+
declare const exports_log: typeof log;
|
|
40524
|
+
declare const exports_logError: typeof logError;
|
|
40525
|
+
declare const exports_login: typeof login;
|
|
40526
|
+
declare const exports_loginToState: typeof loginToState;
|
|
40527
|
+
declare const exports_logs3OverflowUploadSchema: typeof logs3OverflowUploadSchema;
|
|
40528
|
+
declare const exports_newId: typeof newId;
|
|
40529
|
+
declare const exports_parseCachedHeader: typeof parseCachedHeader;
|
|
40530
|
+
declare const exports_parseTemplateFormat: typeof parseTemplateFormat;
|
|
40531
|
+
declare const exports_permalink: typeof permalink;
|
|
40532
|
+
declare const exports_pickLogs3OverflowObjectIds: typeof pickLogs3OverflowObjectIds;
|
|
40533
|
+
declare const exports_projects: typeof projects;
|
|
40534
|
+
declare const exports_promptContentsSchema: typeof promptContentsSchema;
|
|
40535
|
+
declare const exports_promptDefinitionSchema: typeof promptDefinitionSchema;
|
|
40536
|
+
declare const exports_promptDefinitionToPromptData: typeof promptDefinitionToPromptData;
|
|
40537
|
+
declare const exports_promptDefinitionWithToolsSchema: typeof promptDefinitionWithToolsSchema;
|
|
40538
|
+
declare const exports_registerOtelFlush: typeof registerOtelFlush;
|
|
40539
|
+
declare const exports_registerSandbox: typeof registerSandbox;
|
|
40540
|
+
declare const exports_registerTemplatePlugin: typeof registerTemplatePlugin;
|
|
40541
|
+
declare const exports_renderMessage: typeof renderMessage;
|
|
40542
|
+
declare const exports_renderPromptParams: typeof renderPromptParams;
|
|
40543
|
+
declare const exports_renderTemplateContent: typeof renderTemplateContent;
|
|
40544
|
+
declare const exports_reportFailures: typeof reportFailures;
|
|
40545
|
+
declare const exports_runEvaluator: typeof runEvaluator;
|
|
40546
|
+
declare const exports_setFetch: typeof setFetch;
|
|
40547
|
+
declare const exports_setMaskingFunction: typeof setMaskingFunction;
|
|
40548
|
+
declare const exports_spanComponentsToObjectId: typeof spanComponentsToObjectId;
|
|
40549
|
+
declare const exports_startSpan: typeof startSpan;
|
|
40550
|
+
declare const exports_summarize: typeof summarize;
|
|
40551
|
+
declare const exports_templateRegistry: typeof templateRegistry;
|
|
40552
|
+
declare const exports_traceable: typeof traceable;
|
|
40553
|
+
declare const exports_traced: typeof traced;
|
|
40554
|
+
declare const exports_updateSpan: typeof updateSpan;
|
|
40555
|
+
declare const exports_uploadLogs3OverflowPayload: typeof uploadLogs3OverflowPayload;
|
|
40556
|
+
declare const exports_utf8ByteLength: typeof utf8ByteLength;
|
|
40557
|
+
declare const exports_withCurrent: typeof withCurrent;
|
|
40558
|
+
declare const exports_withDataset: typeof withDataset;
|
|
40559
|
+
declare const exports_withExperiment: typeof withExperiment;
|
|
40560
|
+
declare const exports_withLogger: typeof withLogger;
|
|
40561
|
+
declare const exports_withParent: typeof withParent;
|
|
40562
|
+
declare const exports_wrapAISDK: typeof wrapAISDK;
|
|
40563
|
+
declare const exports_wrapAISDKModel: typeof wrapAISDKModel;
|
|
40564
|
+
declare const exports_wrapAgentClass: typeof wrapAgentClass;
|
|
40565
|
+
declare const exports_wrapAnthropic: typeof wrapAnthropic;
|
|
40566
|
+
declare const exports_wrapClaudeAgentSDK: typeof wrapClaudeAgentSDK;
|
|
40567
|
+
declare const exports_wrapGoogleGenAI: typeof wrapGoogleGenAI;
|
|
40568
|
+
declare const exports_wrapMastraAgent: typeof wrapMastraAgent;
|
|
40569
|
+
declare const exports_wrapOpenAI: typeof wrapOpenAI;
|
|
40570
|
+
declare const exports_wrapOpenAIv4: typeof wrapOpenAIv4;
|
|
40571
|
+
declare const exports_wrapTraced: typeof wrapTraced;
|
|
40572
|
+
declare const exports_wrapVitest: typeof wrapVitest;
|
|
40573
|
+
declare namespace exports {
|
|
40574
|
+
export { type exports_AnyDataset as AnyDataset, exports_Attachment as Attachment, type exports_AttachmentParams as AttachmentParams, exports_AttachmentReference as AttachmentReference, type exports_BackgroundLoggerOpts as BackgroundLoggerOpts, exports_BaseAttachment as BaseAttachment, exports_BaseExperiment as BaseExperiment, type exports_BaseMetadata as BaseMetadata, exports_BraintrustMiddleware as BraintrustMiddleware, exports_BraintrustState as BraintrustState, exports_BraintrustStream as BraintrustStream, type exports_BraintrustStreamChunk as BraintrustStreamChunk, exports_CachedSpanFetcher as CachedSpanFetcher, type exports_ChatPrompt as ChatPrompt, exports_CodeFunction as CodeFunction, type exports_CodeOpts as CodeOpts, exports_CodePrompt as CodePrompt, type exports_CommentEvent as CommentEvent, type exports_CompiledPrompt as CompiledPrompt, type exports_CompiledPromptParams as CompiledPromptParams, type exports_CompletionPrompt as CompletionPrompt, exports_ContextManager as ContextManager, type exports_ContextParentSpanIds as ContextParentSpanIds, type exports_CreateProjectOpts as CreateProjectOpts, exports_DEFAULT_FETCH_BATCH_SIZE as DEFAULT_FETCH_BATCH_SIZE, exports_DEFAULT_MAX_REQUEST_SIZE as DEFAULT_MAX_REQUEST_SIZE, type exports_DataSummary as DataSummary, exports_Dataset as Dataset, type exports_DatasetRecord as DatasetRecord, type exports_DatasetSummary as DatasetSummary, type exports_DefaultMetadataType as DefaultMetadataType, type exports_DefaultPromptArgs as DefaultPromptArgs, exports_ERR_PERMALINK as ERR_PERMALINK, type exports_EndSpanArgs as EndSpanArgs, exports_Eval as Eval, type exports_EvalCase as EvalCase, type exports_EvalHooks as EvalHooks, type exports_EvalParameterSerializedSchema as EvalParameterSerializedSchema, type exports_EvalParameters as EvalParameters, type exports_EvalResult as EvalResult, exports_EvalResultWithSummary as EvalResultWithSummary, type exports_EvalScorer as EvalScorer, type exports_EvalScorerArgs as EvalScorerArgs, type exports_EvalTask as EvalTask, type exports_Evaluator as Evaluator, type exports_EvaluatorDef as EvaluatorDef, type exports_EvaluatorDefinition as EvaluatorDefinition, type exports_EvaluatorDefinitions as EvaluatorDefinitions, type exports_EvaluatorFile as EvaluatorFile, type exports_EvaluatorManifest as EvaluatorManifest, exports_Experiment as Experiment, type exports_ExperimentLogFullArgs as ExperimentLogFullArgs, type exports_ExperimentLogPartialArgs as ExperimentLogPartialArgs, type exports_ExperimentSummary as ExperimentSummary, type exports_Exportable as Exportable, exports_ExternalAttachment as ExternalAttachment, type exports_ExternalAttachmentParams as ExternalAttachmentParams, exports_FailedHTTPResponse as FailedHTTPResponse, type exports_FullInitDatasetOptions as FullInitDatasetOptions, type exports_FullInitOptions as FullInitOptions, type exports_FullLoginOptions as FullLoginOptions, type exports_FunctionEvent as FunctionEvent, type exports_GetThreadOptions as GetThreadOptions, exports_IDGenerator as IDGenerator, type exports_IdField as IdField, type exports_InitDatasetOptions as InitDatasetOptions, type exports_InitLoggerOptions as InitLoggerOptions, type exports_InitOptions as InitOptions, type exports_InputField as InputField, type exports_InstrumentationConfig as InstrumentationConfig, type exports_InvokeFunctionArgs as InvokeFunctionArgs, type exports_InvokeReturn as InvokeReturn, exports_JSONAttachment as JSONAttachment, exports_LEGACY_CACHED_HEADER as LEGACY_CACHED_HEADER, exports_LOGS3_OVERFLOW_REFERENCE_TYPE as LOGS3_OVERFLOW_REFERENCE_TYPE, exports_LazyValue as LazyValue, type exports_LoadPromptOptions as LoadPromptOptions, type exports_LogCommentFullArgs as LogCommentFullArgs, type exports_LogFeedbackFullArgs as LogFeedbackFullArgs, type exports_LogOptions as LogOptions, exports_Logger as Logger, exports_LoginInvalidOrgError as LoginInvalidOrgError, type exports_LoginOptions as LoginOptions, type exports_Logs3OverflowInputRow as Logs3OverflowInputRow, type exports_Logs3OverflowUpload as Logs3OverflowUpload, type exports_MetricSummary as MetricSummary, exports_NOOP_SPAN as NOOP_SPAN, exports_NOOP_SPAN_PERMALINK as NOOP_SPAN_PERMALINK, exports_NoopSpan as NoopSpan, exports_ObjectFetcher as ObjectFetcher, type exports_ObjectMetadata as ObjectMetadata, type exports_OtherExperimentLogFields as OtherExperimentLogFields, type exports_ParametersSource as ParametersSource, type exports_ParentExperimentIds as ParentExperimentIds, type exports_ParentProjectLogIds as ParentProjectLogIds, exports_Project as Project, exports_ProjectNameIdMap as ProjectNameIdMap, type exports_PromiseUnless as PromiseUnless, exports_Prompt as Prompt, exports_PromptBuilder as PromptBuilder, type exports_PromptContents as PromptContents, type exports_PromptDefinition as PromptDefinition, type exports_PromptDefinitionWithTools as PromptDefinitionWithTools, type exports_PromptOpts as PromptOpts, type exports_PromptRowWithId as PromptRowWithId, exports_ReadonlyAttachment as ReadonlyAttachment, exports_ReadonlyExperiment as ReadonlyExperiment, type exports_RegisterSandboxOptions as RegisterSandboxOptions, type exports_RegisterSandboxResult as RegisterSandboxResult, exports_Reporter as Reporter, type exports_ReporterBody as ReporterBody, type exports_SandboxConfig as SandboxConfig, type exports_ScoreSummary as ScoreSummary, exports_ScorerBuilder as ScorerBuilder, type exports_ScorerOpts as ScorerOpts, type exports_SerializedBraintrustState as SerializedBraintrustState, type exports_SetCurrentArg as SetCurrentArg, type exports_Span as Span, type exports_SpanContext as SpanContext, type exports_SpanData as SpanData, exports_SpanFetcher as SpanFetcher, exports_SpanImpl as SpanImpl, type exports_StartSpanArgs as StartSpanArgs, type exports_TemplateFormat as TemplateFormat, type exports_TemplateRenderer as TemplateRenderer, type exports_TemplateRendererPlugin as TemplateRendererPlugin, exports_TestBackgroundLogger as TestBackgroundLogger, exports_ToolBuilder as ToolBuilder, type exports_Trace as Trace, exports_UUIDGenerator as UUIDGenerator, type exports_WithTransactionId as WithTransactionId, exports_X_CACHED_HEADER as X_CACHED_HEADER, exports__exportsForTestingOnly as _exportsForTestingOnly, exports__internalGetGlobalState as _internalGetGlobalState, iso as _internalIso, exports__internalSetInitialState as _internalSetInitialState, exports_addAzureBlobHeaders as addAzureBlobHeaders, exports_braintrustStreamChunkSchema as braintrustStreamChunkSchema, exports_buildLocalSummary as buildLocalSummary, exports_configureInstrumentation as configureInstrumentation, exports_constructLogs3OverflowRequest as constructLogs3OverflowRequest, exports_createFinalValuePassThroughStream as createFinalValuePassThroughStream, exports_currentExperiment as currentExperiment, exports_currentLogger as currentLogger, exports_currentSpan as currentSpan, exports_deepCopyEvent as deepCopyEvent, exports_defaultErrorScoreHandler as defaultErrorScoreHandler, exports_deserializePlainStringAsJSON as deserializePlainStringAsJSON, exports_devNullWritableStream as devNullWritableStream, exports_evaluatorDefinitionSchema as evaluatorDefinitionSchema, exports_evaluatorDefinitionsSchema as evaluatorDefinitionsSchema, exports_flush as flush, exports_getContextManager as getContextManager, exports_getIdGenerator as getIdGenerator, exports_getPromptVersions as getPromptVersions, exports_getSpanParentObject as getSpanParentObject, exports_getTemplateRenderer as getTemplateRenderer, graphFramework as graph, exports_init as init, exports_initDataset as initDataset, exports_initExperiment as initExperiment, exports_initFunction as initFunction, exports_initLogger as initLogger, exports_initNodeTestSuite as initNodeTestSuite, exports_invoke as invoke, exports_isTemplateFormat as isTemplateFormat, exports_loadParameters as loadParameters, exports_loadPrompt as loadPrompt, exports_log as log, exports_logError as logError, exports_login as login, exports_loginToState as loginToState, exports_logs3OverflowUploadSchema as logs3OverflowUploadSchema, exports_newId as newId, exports_parseCachedHeader as parseCachedHeader, exports_parseTemplateFormat as parseTemplateFormat, exports_permalink as permalink, exports_pickLogs3OverflowObjectIds as pickLogs3OverflowObjectIds, exports_projects as projects, exports_promptContentsSchema as promptContentsSchema, exports_promptDefinitionSchema as promptDefinitionSchema, exports_promptDefinitionToPromptData as promptDefinitionToPromptData, exports_promptDefinitionWithToolsSchema as promptDefinitionWithToolsSchema, exports_registerOtelFlush as registerOtelFlush, exports_registerSandbox as registerSandbox, exports_registerTemplatePlugin as registerTemplatePlugin, exports_renderMessage as renderMessage, exports_renderPromptParams as renderPromptParams, exports_renderTemplateContent as renderTemplateContent, exports_reportFailures as reportFailures, exports_runEvaluator as runEvaluator, exports_setFetch as setFetch, exports_setMaskingFunction as setMaskingFunction, exports_spanComponentsToObjectId as spanComponentsToObjectId, exports_startSpan as startSpan, exports_summarize as summarize, exports_templateRegistry as templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, exports_traceable as traceable, exports_traced as traced, exports_updateSpan as updateSpan, exports_uploadLogs3OverflowPayload as uploadLogs3OverflowPayload, exports_utf8ByteLength as utf8ByteLength, exports_withCurrent as withCurrent, exports_withDataset as withDataset, exports_withExperiment as withExperiment, exports_withLogger as withLogger, exports_withParent as withParent, exports_wrapAISDK as wrapAISDK, exports_wrapAISDKModel as wrapAISDKModel, exports_wrapAgentClass as wrapAgentClass, exports_wrapAnthropic as wrapAnthropic, exports_wrapClaudeAgentSDK as wrapClaudeAgentSDK, exports_wrapGoogleGenAI as wrapGoogleGenAI, exports_wrapMastraAgent as wrapMastraAgent, exports_wrapOpenAI as wrapOpenAI, exports_wrapOpenAIv4 as wrapOpenAIv4, exports_wrapTraced as wrapTraced, exports_wrapVitest as wrapVitest };
|
|
40502
40575
|
}
|
|
40503
40576
|
|
|
40504
|
-
export { type AnyDataset, Attachment, type AttachmentParams, AttachmentReference, type BackgroundLoggerOpts, BaseAttachment, BaseExperiment, type BaseMetadata, BraintrustMiddleware, BraintrustState, BraintrustStream, type BraintrustStreamChunk, CachedSpanFetcher, type ChatPrompt, CodeFunction, type CodeOpts, CodePrompt, type CommentEvent, type CompiledPrompt, type CompiledPromptParams, type CompletionPrompt, ContextManager, type ContextParentSpanIds, type CreateProjectOpts, DEFAULT_FETCH_BATCH_SIZE, DEFAULT_MAX_REQUEST_SIZE, type DataSummary, Dataset, type DatasetRecord, type DatasetSummary, type DefaultMetadataType, type DefaultPromptArgs, ERR_PERMALINK, type EndSpanArgs, Eval, type EvalCase, type EvalHooks, type EvalParameterSerializedSchema, type EvalParameters, type EvalResult, EvalResultWithSummary, type EvalScorer, type EvalScorerArgs, type EvalTask, type Evaluator, type EvaluatorDef, type EvaluatorDefinition, type EvaluatorDefinitions, type EvaluatorFile, type EvaluatorManifest, Experiment, type ExperimentLogFullArgs, type ExperimentLogPartialArgs, type ExperimentSummary, type Exportable, ExternalAttachment, type ExternalAttachmentParams, FailedHTTPResponse, type FullInitDatasetOptions, type FullInitOptions, type FullLoginOptions, type FunctionEvent, type GetThreadOptions, IDGenerator, type IdField, type InitDatasetOptions, type InitLoggerOptions, type InitOptions, type InputField, type InstrumentationConfig, type InvokeFunctionArgs, type InvokeReturn, JSONAttachment, LEGACY_CACHED_HEADER, LOGS3_OVERFLOW_REFERENCE_TYPE, LazyValue, type LoadPromptOptions, type LogCommentFullArgs, type LogFeedbackFullArgs, type LogOptions, Logger, LoginInvalidOrgError, type LoginOptions, type Logs3OverflowInputRow, type Logs3OverflowUpload, type MetricSummary, NOOP_SPAN, NOOP_SPAN_PERMALINK, NoopSpan, ObjectFetcher, type ObjectMetadata, type OtherExperimentLogFields, type ParametersSource, type ParentExperimentIds, type ParentProjectLogIds, Project, ProjectNameIdMap, type PromiseUnless, Prompt, PromptBuilder, type PromptContents, type PromptDefinition, type PromptDefinitionWithTools, type PromptOpts, type PromptRowWithId, ReadonlyAttachment, ReadonlyExperiment, type RegisterSandboxOptions, type RegisterSandboxResult, Reporter, type ReporterBody, type SandboxConfig, type ScoreSummary, ScorerBuilder, type ScorerOpts, type SerializedBraintrustState, type SetCurrentArg, type Span, type SpanContext, type SpanData, SpanFetcher, SpanImpl, type StartSpanArgs, type TemplateFormat, type TemplateRenderer, type TemplateRendererPlugin, TestBackgroundLogger, ToolBuilder, type Trace, UUIDGenerator, type WithTransactionId, X_CACHED_HEADER, _exportsForTestingOnly, _internalGetGlobalState, iso as _internalIso, _internalSetInitialState, addAzureBlobHeaders, braintrustStreamChunkSchema, buildLocalSummary, configureInstrumentation, constructLogs3OverflowRequest, createFinalValuePassThroughStream, currentExperiment, currentLogger, currentSpan, deepCopyEvent,
|
|
40577
|
+
export { type AnyDataset, Attachment, type AttachmentParams, AttachmentReference, type BackgroundLoggerOpts, BaseAttachment, BaseExperiment, type BaseMetadata, BraintrustMiddleware, BraintrustState, BraintrustStream, type BraintrustStreamChunk, CachedSpanFetcher, type ChatPrompt, CodeFunction, type CodeOpts, CodePrompt, type CommentEvent, type CompiledPrompt, type CompiledPromptParams, type CompletionPrompt, ContextManager, type ContextParentSpanIds, type CreateProjectOpts, DEFAULT_FETCH_BATCH_SIZE, DEFAULT_MAX_REQUEST_SIZE, type DataSummary, Dataset, type DatasetRecord, type DatasetSummary, type DefaultMetadataType, type DefaultPromptArgs, ERR_PERMALINK, type EndSpanArgs, Eval, type EvalCase, type EvalHooks, type EvalParameterSerializedSchema, type EvalParameters, type EvalResult, EvalResultWithSummary, type EvalScorer, type EvalScorerArgs, type EvalTask, type Evaluator, type EvaluatorDef, type EvaluatorDefinition, type EvaluatorDefinitions, type EvaluatorFile, type EvaluatorManifest, Experiment, type ExperimentLogFullArgs, type ExperimentLogPartialArgs, type ExperimentSummary, type Exportable, ExternalAttachment, type ExternalAttachmentParams, FailedHTTPResponse, type FullInitDatasetOptions, type FullInitOptions, type FullLoginOptions, type FunctionEvent, type GetThreadOptions, IDGenerator, type IdField, type InitDatasetOptions, type InitLoggerOptions, type InitOptions, type InputField, type InstrumentationConfig, type InvokeFunctionArgs, type InvokeReturn, JSONAttachment, LEGACY_CACHED_HEADER, LOGS3_OVERFLOW_REFERENCE_TYPE, LazyValue, type LoadPromptOptions, type LogCommentFullArgs, type LogFeedbackFullArgs, type LogOptions, Logger, LoginInvalidOrgError, type LoginOptions, type Logs3OverflowInputRow, type Logs3OverflowUpload, type MetricSummary, NOOP_SPAN, NOOP_SPAN_PERMALINK, NoopSpan, ObjectFetcher, type ObjectMetadata, type OtherExperimentLogFields, type ParametersSource, type ParentExperimentIds, type ParentProjectLogIds, Project, ProjectNameIdMap, type PromiseUnless, Prompt, PromptBuilder, type PromptContents, type PromptDefinition, type PromptDefinitionWithTools, type PromptOpts, type PromptRowWithId, ReadonlyAttachment, ReadonlyExperiment, type RegisterSandboxOptions, type RegisterSandboxResult, Reporter, type ReporterBody, type SandboxConfig, type ScoreSummary, ScorerBuilder, type ScorerOpts, type SerializedBraintrustState, type SetCurrentArg, type Span, type SpanContext, type SpanData, SpanFetcher, SpanImpl, type StartSpanArgs, type TemplateFormat, type TemplateRenderer, type TemplateRendererPlugin, TestBackgroundLogger, ToolBuilder, type Trace, UUIDGenerator, type WithTransactionId, X_CACHED_HEADER, _exportsForTestingOnly, _internalGetGlobalState, iso as _internalIso, _internalSetInitialState, addAzureBlobHeaders, braintrustStreamChunkSchema, buildLocalSummary, configureInstrumentation, constructLogs3OverflowRequest, createFinalValuePassThroughStream, currentExperiment, currentLogger, currentSpan, deepCopyEvent, exports as default, defaultErrorScoreHandler, deserializePlainStringAsJSON, devNullWritableStream, evaluatorDefinitionSchema, evaluatorDefinitionsSchema, flush, getContextManager, getIdGenerator, getPromptVersions, getSpanParentObject, getTemplateRenderer, graphFramework as graph, init, initDataset, initExperiment, initFunction, initLogger, initNodeTestSuite, invoke, isTemplateFormat, loadParameters, loadPrompt, log, logError, login, loginToState, logs3OverflowUploadSchema, newId, parseCachedHeader, parseTemplateFormat, permalink, pickLogs3OverflowObjectIds, projects, promptContentsSchema, promptDefinitionSchema, promptDefinitionToPromptData, promptDefinitionWithToolsSchema, registerOtelFlush, registerSandbox, registerTemplatePlugin, renderMessage, renderPromptParams, renderTemplateContent, reportFailures, runEvaluator, setFetch, setMaskingFunction, spanComponentsToObjectId, startSpan, summarize, templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, traceable, traced, updateSpan, uploadLogs3OverflowPayload, utf8ByteLength, withCurrent, withDataset, withExperiment, withLogger, withParent, wrapAISDK, wrapAISDKModel, wrapAgentClass, wrapAnthropic, wrapClaudeAgentSDK, wrapGoogleGenAI, wrapMastraAgent, wrapOpenAI, wrapOpenAIv4, wrapTraced, wrapVitest };
|