braintrust 3.9.0 → 3.11.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 +157 -3
- package/dev/dist/index.d.ts +157 -3
- package/dev/dist/index.js +10819 -7204
- package/dev/dist/index.mjs +7458 -3843
- package/dist/auto-instrumentations/bundler/esbuild.cjs +686 -1
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/rollup.cjs +686 -1
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +686 -1
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +634 -0
- package/dist/auto-instrumentations/bundler/webpack.cjs +686 -1
- package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
- package/dist/auto-instrumentations/{chunk-KIMMUFAK.mjs → chunk-DIV5TO4S.mjs} +679 -1
- package/dist/auto-instrumentations/{chunk-G7F6HZGE.mjs → chunk-G6ZWXGZB.mjs} +19 -2
- package/dist/auto-instrumentations/{chunk-ITP7RAUY.mjs → chunk-MWZXZQUO.mjs} +23 -1
- package/dist/auto-instrumentations/hook.mjs +793 -11
- package/dist/auto-instrumentations/index.cjs +774 -7
- package/dist/auto-instrumentations/index.d.mts +18 -1
- package/dist/auto-instrumentations/index.d.ts +18 -1
- package/dist/auto-instrumentations/index.mjs +102 -8
- package/dist/auto-instrumentations/loader/cjs-patch.cjs +26 -1
- package/dist/auto-instrumentations/loader/cjs-patch.mjs +28 -1
- package/dist/auto-instrumentations/loader/esm-hook.mjs +16 -1
- package/dist/browser.d.mts +600 -265
- package/dist/browser.d.ts +600 -265
- package/dist/browser.js +6171 -1851
- package/dist/browser.mjs +6171 -1851
- package/dist/cli.js +6417 -2794
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +6171 -1851
- package/dist/edge-light.mjs +6171 -1851
- package/dist/index.d.mts +613 -278
- package/dist/index.d.ts +613 -278
- package/dist/index.js +6507 -2187
- package/dist/index.mjs +6171 -1851
- package/dist/instrumentation/index.d.mts +19 -0
- package/dist/instrumentation/index.d.ts +19 -0
- package/dist/instrumentation/index.js +10265 -6841
- package/dist/instrumentation/index.mjs +10265 -6841
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +6171 -1851
- package/dist/workerd.mjs +6171 -1851
- package/package.json +16 -22
package/dev/dist/index.d.ts
CHANGED
|
@@ -847,6 +847,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
847
847
|
id?: string | undefined;
|
|
848
848
|
content?: string | undefined;
|
|
849
849
|
}>, "many">>;
|
|
850
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
850
851
|
}, "strip", z.ZodTypeAny, {
|
|
851
852
|
role: "assistant";
|
|
852
853
|
name?: string | undefined;
|
|
@@ -873,6 +874,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
873
874
|
id?: string | undefined;
|
|
874
875
|
content?: string | undefined;
|
|
875
876
|
}[] | undefined;
|
|
877
|
+
reasoning_signature?: string | undefined;
|
|
876
878
|
}, {
|
|
877
879
|
role: "assistant";
|
|
878
880
|
name?: string | undefined;
|
|
@@ -899,6 +901,7 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
899
901
|
id?: string | undefined;
|
|
900
902
|
content?: string | undefined;
|
|
901
903
|
}[] | undefined;
|
|
904
|
+
reasoning_signature?: string | undefined;
|
|
902
905
|
}>, z.ZodObject<{
|
|
903
906
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
904
907
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -1259,6 +1262,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
1259
1262
|
id?: string | undefined;
|
|
1260
1263
|
content?: string | undefined;
|
|
1261
1264
|
}>, "many">>;
|
|
1265
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
1262
1266
|
}, "strip", z.ZodTypeAny, {
|
|
1263
1267
|
role: "assistant";
|
|
1264
1268
|
name?: string | undefined;
|
|
@@ -1285,6 +1289,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
1285
1289
|
id?: string | undefined;
|
|
1286
1290
|
content?: string | undefined;
|
|
1287
1291
|
}[] | undefined;
|
|
1292
|
+
reasoning_signature?: string | undefined;
|
|
1288
1293
|
}, {
|
|
1289
1294
|
role: "assistant";
|
|
1290
1295
|
name?: string | undefined;
|
|
@@ -1311,6 +1316,7 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
1311
1316
|
id?: string | undefined;
|
|
1312
1317
|
content?: string | undefined;
|
|
1313
1318
|
}[] | undefined;
|
|
1319
|
+
reasoning_signature?: string | undefined;
|
|
1314
1320
|
}>, z.ZodObject<{
|
|
1315
1321
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
1316
1322
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -1474,6 +1480,29 @@ declare const SavedFunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
1474
1480
|
function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
|
|
1475
1481
|
}>]>;
|
|
1476
1482
|
type SavedFunctionIdType = z.infer<typeof SavedFunctionId>;
|
|
1483
|
+
declare const DatasetSnapshot: z.ZodObject<{
|
|
1484
|
+
id: z.ZodString;
|
|
1485
|
+
dataset_id: z.ZodString;
|
|
1486
|
+
name: z.ZodString;
|
|
1487
|
+
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
1488
|
+
xact_id: z.ZodString;
|
|
1489
|
+
created: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
1490
|
+
}, "strip", z.ZodTypeAny, {
|
|
1491
|
+
id: string;
|
|
1492
|
+
created: string | null;
|
|
1493
|
+
name: string;
|
|
1494
|
+
description: string | null;
|
|
1495
|
+
dataset_id: string;
|
|
1496
|
+
xact_id: string;
|
|
1497
|
+
}, {
|
|
1498
|
+
id: string;
|
|
1499
|
+
created: string | null;
|
|
1500
|
+
name: string;
|
|
1501
|
+
description: string | null;
|
|
1502
|
+
dataset_id: string;
|
|
1503
|
+
xact_id: string;
|
|
1504
|
+
}>;
|
|
1505
|
+
type DatasetSnapshotType = z.infer<typeof DatasetSnapshot>;
|
|
1477
1506
|
declare const RepoInfo: z.ZodUnion<[z.ZodObject<{
|
|
1478
1507
|
commit: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1479
1508
|
branch: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -1753,6 +1782,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1753
1782
|
id?: string | undefined;
|
|
1754
1783
|
content?: string | undefined;
|
|
1755
1784
|
}>, "many">>;
|
|
1785
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
1756
1786
|
}, "strip", z.ZodTypeAny, {
|
|
1757
1787
|
role: "assistant";
|
|
1758
1788
|
name?: string | undefined;
|
|
@@ -1779,6 +1809,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1779
1809
|
id?: string | undefined;
|
|
1780
1810
|
content?: string | undefined;
|
|
1781
1811
|
}[] | undefined;
|
|
1812
|
+
reasoning_signature?: string | undefined;
|
|
1782
1813
|
}, {
|
|
1783
1814
|
role: "assistant";
|
|
1784
1815
|
name?: string | undefined;
|
|
@@ -1805,6 +1836,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1805
1836
|
id?: string | undefined;
|
|
1806
1837
|
content?: string | undefined;
|
|
1807
1838
|
}[] | undefined;
|
|
1839
|
+
reasoning_signature?: string | undefined;
|
|
1808
1840
|
}>, z.ZodObject<{
|
|
1809
1841
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
1810
1842
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -1981,6 +2013,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1981
2013
|
id?: string | undefined;
|
|
1982
2014
|
content?: string | undefined;
|
|
1983
2015
|
}[] | undefined;
|
|
2016
|
+
reasoning_signature?: string | undefined;
|
|
1984
2017
|
} | {
|
|
1985
2018
|
role: "tool";
|
|
1986
2019
|
content: string | {
|
|
@@ -2071,6 +2104,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
2071
2104
|
id?: string | undefined;
|
|
2072
2105
|
content?: string | undefined;
|
|
2073
2106
|
}[] | undefined;
|
|
2107
|
+
reasoning_signature?: string | undefined;
|
|
2074
2108
|
} | {
|
|
2075
2109
|
role: "tool";
|
|
2076
2110
|
content: string | {
|
|
@@ -2910,6 +2944,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
2910
2944
|
id?: string | undefined;
|
|
2911
2945
|
content?: string | undefined;
|
|
2912
2946
|
}>, "many">>;
|
|
2947
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
2913
2948
|
}, "strip", z.ZodTypeAny, {
|
|
2914
2949
|
role: "assistant";
|
|
2915
2950
|
name?: string | undefined;
|
|
@@ -2936,6 +2971,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
2936
2971
|
id?: string | undefined;
|
|
2937
2972
|
content?: string | undefined;
|
|
2938
2973
|
}[] | undefined;
|
|
2974
|
+
reasoning_signature?: string | undefined;
|
|
2939
2975
|
}, {
|
|
2940
2976
|
role: "assistant";
|
|
2941
2977
|
name?: string | undefined;
|
|
@@ -2962,6 +2998,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
2962
2998
|
id?: string | undefined;
|
|
2963
2999
|
content?: string | undefined;
|
|
2964
3000
|
}[] | undefined;
|
|
3001
|
+
reasoning_signature?: string | undefined;
|
|
2965
3002
|
}>, z.ZodObject<{
|
|
2966
3003
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
2967
3004
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -3138,6 +3175,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3138
3175
|
id?: string | undefined;
|
|
3139
3176
|
content?: string | undefined;
|
|
3140
3177
|
}[] | undefined;
|
|
3178
|
+
reasoning_signature?: string | undefined;
|
|
3141
3179
|
} | {
|
|
3142
3180
|
role: "tool";
|
|
3143
3181
|
content: string | {
|
|
@@ -3228,6 +3266,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3228
3266
|
id?: string | undefined;
|
|
3229
3267
|
content?: string | undefined;
|
|
3230
3268
|
}[] | undefined;
|
|
3269
|
+
reasoning_signature?: string | undefined;
|
|
3231
3270
|
} | {
|
|
3232
3271
|
role: "tool";
|
|
3233
3272
|
content: string | {
|
|
@@ -3330,6 +3369,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3330
3369
|
id?: string | undefined;
|
|
3331
3370
|
content?: string | undefined;
|
|
3332
3371
|
}[] | undefined;
|
|
3372
|
+
reasoning_signature?: string | undefined;
|
|
3333
3373
|
} | {
|
|
3334
3374
|
role: "tool";
|
|
3335
3375
|
content: string | {
|
|
@@ -3431,6 +3471,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3431
3471
|
id?: string | undefined;
|
|
3432
3472
|
content?: string | undefined;
|
|
3433
3473
|
}[] | undefined;
|
|
3474
|
+
reasoning_signature?: string | undefined;
|
|
3434
3475
|
} | {
|
|
3435
3476
|
role: "tool";
|
|
3436
3477
|
content: string | {
|
|
@@ -3633,6 +3674,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3633
3674
|
id?: string | undefined;
|
|
3634
3675
|
content?: string | undefined;
|
|
3635
3676
|
}[] | undefined;
|
|
3677
|
+
reasoning_signature?: string | undefined;
|
|
3636
3678
|
} | {
|
|
3637
3679
|
role: "tool";
|
|
3638
3680
|
content: string | {
|
|
@@ -3803,6 +3845,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3803
3845
|
id?: string | undefined;
|
|
3804
3846
|
content?: string | undefined;
|
|
3805
3847
|
}[] | undefined;
|
|
3848
|
+
reasoning_signature?: string | undefined;
|
|
3806
3849
|
} | {
|
|
3807
3850
|
role: "tool";
|
|
3808
3851
|
content: string | {
|
|
@@ -4035,6 +4078,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4035
4078
|
hierarchy_threshold?: number | undefined;
|
|
4036
4079
|
naming_model?: string | undefined;
|
|
4037
4080
|
}>>;
|
|
4081
|
+
disable_reconciliation: z.ZodOptional<z.ZodBoolean>;
|
|
4038
4082
|
distance_threshold: z.ZodOptional<z.ZodNumber>;
|
|
4039
4083
|
}, "strip", z.ZodTypeAny, {
|
|
4040
4084
|
type: "topic_map";
|
|
@@ -4053,6 +4097,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4053
4097
|
hierarchy_threshold?: number | undefined;
|
|
4054
4098
|
naming_model?: string | undefined;
|
|
4055
4099
|
} | undefined;
|
|
4100
|
+
disable_reconciliation?: boolean | undefined;
|
|
4056
4101
|
distance_threshold?: number | undefined;
|
|
4057
4102
|
}, {
|
|
4058
4103
|
type: "topic_map";
|
|
@@ -4071,6 +4116,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4071
4116
|
hierarchy_threshold?: number | undefined;
|
|
4072
4117
|
naming_model?: string | undefined;
|
|
4073
4118
|
} | undefined;
|
|
4119
|
+
disable_reconciliation?: boolean | undefined;
|
|
4074
4120
|
distance_threshold?: number | undefined;
|
|
4075
4121
|
}>;
|
|
4076
4122
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4092,6 +4138,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4092
4138
|
hierarchy_threshold?: number | undefined;
|
|
4093
4139
|
naming_model?: string | undefined;
|
|
4094
4140
|
} | undefined;
|
|
4141
|
+
disable_reconciliation?: boolean | undefined;
|
|
4095
4142
|
distance_threshold?: number | undefined;
|
|
4096
4143
|
};
|
|
4097
4144
|
topic_map_id?: string | undefined;
|
|
@@ -4114,6 +4161,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4114
4161
|
hierarchy_threshold?: number | undefined;
|
|
4115
4162
|
naming_model?: string | undefined;
|
|
4116
4163
|
} | undefined;
|
|
4164
|
+
disable_reconciliation?: boolean | undefined;
|
|
4117
4165
|
distance_threshold?: number | undefined;
|
|
4118
4166
|
};
|
|
4119
4167
|
topic_map_id?: string | undefined;
|
|
@@ -4155,6 +4203,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4155
4203
|
hierarchy_threshold?: number | undefined;
|
|
4156
4204
|
naming_model?: string | undefined;
|
|
4157
4205
|
} | undefined;
|
|
4206
|
+
disable_reconciliation?: boolean | undefined;
|
|
4158
4207
|
distance_threshold?: number | undefined;
|
|
4159
4208
|
};
|
|
4160
4209
|
topic_map_id?: string | undefined;
|
|
@@ -4196,6 +4245,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4196
4245
|
hierarchy_threshold?: number | undefined;
|
|
4197
4246
|
naming_model?: string | undefined;
|
|
4198
4247
|
} | undefined;
|
|
4248
|
+
disable_reconciliation?: boolean | undefined;
|
|
4199
4249
|
distance_threshold?: number | undefined;
|
|
4200
4250
|
};
|
|
4201
4251
|
topic_map_id?: string | undefined;
|
|
@@ -4276,6 +4326,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4276
4326
|
hierarchy_threshold?: number | undefined;
|
|
4277
4327
|
naming_model?: string | undefined;
|
|
4278
4328
|
}>>;
|
|
4329
|
+
disable_reconciliation: z.ZodOptional<z.ZodBoolean>;
|
|
4279
4330
|
distance_threshold: z.ZodOptional<z.ZodNumber>;
|
|
4280
4331
|
}, "strip", z.ZodTypeAny, {
|
|
4281
4332
|
type: "topic_map";
|
|
@@ -4294,6 +4345,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4294
4345
|
hierarchy_threshold?: number | undefined;
|
|
4295
4346
|
naming_model?: string | undefined;
|
|
4296
4347
|
} | undefined;
|
|
4348
|
+
disable_reconciliation?: boolean | undefined;
|
|
4297
4349
|
distance_threshold?: number | undefined;
|
|
4298
4350
|
}, {
|
|
4299
4351
|
type: "topic_map";
|
|
@@ -4312,6 +4364,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4312
4364
|
hierarchy_threshold?: number | undefined;
|
|
4313
4365
|
naming_model?: string | undefined;
|
|
4314
4366
|
} | undefined;
|
|
4367
|
+
disable_reconciliation?: boolean | undefined;
|
|
4315
4368
|
distance_threshold?: number | undefined;
|
|
4316
4369
|
}>, z.ZodUnknown>]>;
|
|
4317
4370
|
declare const PromptData: z.ZodObject<{
|
|
@@ -4562,6 +4615,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
4562
4615
|
id?: string | undefined;
|
|
4563
4616
|
content?: string | undefined;
|
|
4564
4617
|
}>, "many">>;
|
|
4618
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
4565
4619
|
}, "strip", z.ZodTypeAny, {
|
|
4566
4620
|
role: "assistant";
|
|
4567
4621
|
name?: string | undefined;
|
|
@@ -4588,6 +4642,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
4588
4642
|
id?: string | undefined;
|
|
4589
4643
|
content?: string | undefined;
|
|
4590
4644
|
}[] | undefined;
|
|
4645
|
+
reasoning_signature?: string | undefined;
|
|
4591
4646
|
}, {
|
|
4592
4647
|
role: "assistant";
|
|
4593
4648
|
name?: string | undefined;
|
|
@@ -4614,6 +4669,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
4614
4669
|
id?: string | undefined;
|
|
4615
4670
|
content?: string | undefined;
|
|
4616
4671
|
}[] | undefined;
|
|
4672
|
+
reasoning_signature?: string | undefined;
|
|
4617
4673
|
}>, z.ZodObject<{
|
|
4618
4674
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
4619
4675
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -4790,6 +4846,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
4790
4846
|
id?: string | undefined;
|
|
4791
4847
|
content?: string | undefined;
|
|
4792
4848
|
}[] | undefined;
|
|
4849
|
+
reasoning_signature?: string | undefined;
|
|
4793
4850
|
} | {
|
|
4794
4851
|
role: "tool";
|
|
4795
4852
|
content: string | {
|
|
@@ -4880,6 +4937,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
4880
4937
|
id?: string | undefined;
|
|
4881
4938
|
content?: string | undefined;
|
|
4882
4939
|
}[] | undefined;
|
|
4940
|
+
reasoning_signature?: string | undefined;
|
|
4883
4941
|
} | {
|
|
4884
4942
|
role: "tool";
|
|
4885
4943
|
content: string | {
|
|
@@ -5784,6 +5842,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
5784
5842
|
id?: string | undefined;
|
|
5785
5843
|
content?: string | undefined;
|
|
5786
5844
|
}[] | undefined;
|
|
5845
|
+
reasoning_signature?: string | undefined;
|
|
5787
5846
|
} | {
|
|
5788
5847
|
role: "tool";
|
|
5789
5848
|
content: string | {
|
|
@@ -6033,6 +6092,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
6033
6092
|
id?: string | undefined;
|
|
6034
6093
|
content?: string | undefined;
|
|
6035
6094
|
}[] | undefined;
|
|
6095
|
+
reasoning_signature?: string | undefined;
|
|
6036
6096
|
} | {
|
|
6037
6097
|
role: "tool";
|
|
6038
6098
|
content: string | {
|
|
@@ -6392,6 +6452,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
6392
6452
|
id?: string | undefined;
|
|
6393
6453
|
content?: string | undefined;
|
|
6394
6454
|
}>, "many">>;
|
|
6455
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
6395
6456
|
}, "strip", z.ZodTypeAny, {
|
|
6396
6457
|
role: "assistant";
|
|
6397
6458
|
name?: string | undefined;
|
|
@@ -6418,6 +6479,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
6418
6479
|
id?: string | undefined;
|
|
6419
6480
|
content?: string | undefined;
|
|
6420
6481
|
}[] | undefined;
|
|
6482
|
+
reasoning_signature?: string | undefined;
|
|
6421
6483
|
}, {
|
|
6422
6484
|
role: "assistant";
|
|
6423
6485
|
name?: string | undefined;
|
|
@@ -6444,6 +6506,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
6444
6506
|
id?: string | undefined;
|
|
6445
6507
|
content?: string | undefined;
|
|
6446
6508
|
}[] | undefined;
|
|
6509
|
+
reasoning_signature?: string | undefined;
|
|
6447
6510
|
}>, z.ZodObject<{
|
|
6448
6511
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
6449
6512
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -6620,6 +6683,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
6620
6683
|
id?: string | undefined;
|
|
6621
6684
|
content?: string | undefined;
|
|
6622
6685
|
}[] | undefined;
|
|
6686
|
+
reasoning_signature?: string | undefined;
|
|
6623
6687
|
} | {
|
|
6624
6688
|
role: "tool";
|
|
6625
6689
|
content: string | {
|
|
@@ -6710,6 +6774,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
6710
6774
|
id?: string | undefined;
|
|
6711
6775
|
content?: string | undefined;
|
|
6712
6776
|
}[] | undefined;
|
|
6777
|
+
reasoning_signature?: string | undefined;
|
|
6713
6778
|
} | {
|
|
6714
6779
|
role: "tool";
|
|
6715
6780
|
content: string | {
|
|
@@ -7614,6 +7679,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
7614
7679
|
id?: string | undefined;
|
|
7615
7680
|
content?: string | undefined;
|
|
7616
7681
|
}[] | undefined;
|
|
7682
|
+
reasoning_signature?: string | undefined;
|
|
7617
7683
|
} | {
|
|
7618
7684
|
role: "tool";
|
|
7619
7685
|
content: string | {
|
|
@@ -7863,6 +7929,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
7863
7929
|
id?: string | undefined;
|
|
7864
7930
|
content?: string | undefined;
|
|
7865
7931
|
}[] | undefined;
|
|
7932
|
+
reasoning_signature?: string | undefined;
|
|
7866
7933
|
} | {
|
|
7867
7934
|
role: "tool";
|
|
7868
7935
|
content: string | {
|
|
@@ -8129,6 +8196,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
8129
8196
|
id?: string | undefined;
|
|
8130
8197
|
content?: string | undefined;
|
|
8131
8198
|
}[] | undefined;
|
|
8199
|
+
reasoning_signature?: string | undefined;
|
|
8132
8200
|
} | {
|
|
8133
8201
|
role: "tool";
|
|
8134
8202
|
content: string | {
|
|
@@ -8392,6 +8460,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
8392
8460
|
id?: string | undefined;
|
|
8393
8461
|
content?: string | undefined;
|
|
8394
8462
|
}[] | undefined;
|
|
8463
|
+
reasoning_signature?: string | undefined;
|
|
8395
8464
|
} | {
|
|
8396
8465
|
role: "tool";
|
|
8397
8466
|
content: string | {
|
|
@@ -8537,7 +8606,7 @@ declare const SSEProgressEventData: z.ZodObject<{
|
|
|
8537
8606
|
object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
|
|
8538
8607
|
name: string;
|
|
8539
8608
|
data: string;
|
|
8540
|
-
event: "
|
|
8609
|
+
event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
|
|
8541
8610
|
format: "code" | "llm" | "global" | "topic_map" | "graph";
|
|
8542
8611
|
output_type: "facet" | "score" | "completion" | "classification" | "any";
|
|
8543
8612
|
origin?: {
|
|
@@ -8552,7 +8621,7 @@ declare const SSEProgressEventData: z.ZodObject<{
|
|
|
8552
8621
|
object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
|
|
8553
8622
|
name: string;
|
|
8554
8623
|
data: string;
|
|
8555
|
-
event: "
|
|
8624
|
+
event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
|
|
8556
8625
|
format: "code" | "llm" | "global" | "topic_map" | "graph";
|
|
8557
8626
|
output_type: "facet" | "score" | "completion" | "classification" | "any";
|
|
8558
8627
|
origin?: {
|
|
@@ -9215,6 +9284,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
9215
9284
|
id?: string | undefined;
|
|
9216
9285
|
content?: string | undefined;
|
|
9217
9286
|
}>, "many">>;
|
|
9287
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
9218
9288
|
}, "strip", z.ZodTypeAny, {
|
|
9219
9289
|
role: "assistant";
|
|
9220
9290
|
name?: string | undefined;
|
|
@@ -9241,6 +9311,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
9241
9311
|
id?: string | undefined;
|
|
9242
9312
|
content?: string | undefined;
|
|
9243
9313
|
}[] | undefined;
|
|
9314
|
+
reasoning_signature?: string | undefined;
|
|
9244
9315
|
}, {
|
|
9245
9316
|
role: "assistant";
|
|
9246
9317
|
name?: string | undefined;
|
|
@@ -9267,6 +9338,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
9267
9338
|
id?: string | undefined;
|
|
9268
9339
|
content?: string | undefined;
|
|
9269
9340
|
}[] | undefined;
|
|
9341
|
+
reasoning_signature?: string | undefined;
|
|
9270
9342
|
}>, z.ZodObject<{
|
|
9271
9343
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
9272
9344
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -9441,6 +9513,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
9441
9513
|
id?: string | undefined;
|
|
9442
9514
|
content?: string | undefined;
|
|
9443
9515
|
}[] | undefined;
|
|
9516
|
+
reasoning_signature?: string | undefined;
|
|
9444
9517
|
} | {
|
|
9445
9518
|
role: "tool";
|
|
9446
9519
|
content: string | {
|
|
@@ -9529,6 +9602,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
9529
9602
|
id?: string | undefined;
|
|
9530
9603
|
content?: string | undefined;
|
|
9531
9604
|
}[] | undefined;
|
|
9605
|
+
reasoning_signature?: string | undefined;
|
|
9532
9606
|
} | {
|
|
9533
9607
|
role: "tool";
|
|
9534
9608
|
content: string | {
|
|
@@ -10275,6 +10349,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
10275
10349
|
id?: string | undefined;
|
|
10276
10350
|
content?: string | undefined;
|
|
10277
10351
|
}[] | undefined;
|
|
10352
|
+
reasoning_signature?: string | undefined;
|
|
10278
10353
|
} | {
|
|
10279
10354
|
role: "tool";
|
|
10280
10355
|
content: string | {
|
|
@@ -10500,6 +10575,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
10500
10575
|
id?: string | undefined;
|
|
10501
10576
|
content?: string | undefined;
|
|
10502
10577
|
}[] | undefined;
|
|
10578
|
+
reasoning_signature?: string | undefined;
|
|
10503
10579
|
} | {
|
|
10504
10580
|
role: "tool";
|
|
10505
10581
|
content: string | {
|
|
@@ -10684,6 +10760,31 @@ type InferParameters<T extends EvalParameters> = {
|
|
|
10684
10760
|
};
|
|
10685
10761
|
|
|
10686
10762
|
declare const RESET_CONTEXT_MANAGER_STATE: unique symbol;
|
|
10763
|
+
declare const datasetRestorePreviewResultSchema: z.ZodObject<{
|
|
10764
|
+
rows_to_restore: z.ZodNumber;
|
|
10765
|
+
rows_to_delete: z.ZodNumber;
|
|
10766
|
+
}, "strip", z.ZodTypeAny, {
|
|
10767
|
+
rows_to_restore: number;
|
|
10768
|
+
rows_to_delete: number;
|
|
10769
|
+
}, {
|
|
10770
|
+
rows_to_restore: number;
|
|
10771
|
+
rows_to_delete: number;
|
|
10772
|
+
}>;
|
|
10773
|
+
type DatasetRestorePreviewResult = z.infer<typeof datasetRestorePreviewResultSchema>;
|
|
10774
|
+
declare const datasetRestoreResultSchema: z.ZodObject<{
|
|
10775
|
+
xact_id: z.ZodNullable<z.ZodString>;
|
|
10776
|
+
rows_restored: z.ZodNumber;
|
|
10777
|
+
rows_deleted: z.ZodNumber;
|
|
10778
|
+
}, "strip", z.ZodTypeAny, {
|
|
10779
|
+
xact_id: string | null;
|
|
10780
|
+
rows_restored: number;
|
|
10781
|
+
rows_deleted: number;
|
|
10782
|
+
}, {
|
|
10783
|
+
xact_id: string | null;
|
|
10784
|
+
rows_restored: number;
|
|
10785
|
+
rows_deleted: number;
|
|
10786
|
+
}>;
|
|
10787
|
+
type DatasetRestoreResult = z.infer<typeof datasetRestoreResultSchema>;
|
|
10687
10788
|
declare const parametersRowSchema: z.ZodObject<{
|
|
10688
10789
|
id: z.ZodString;
|
|
10689
10790
|
_xact_id: z.ZodString;
|
|
@@ -11257,6 +11358,20 @@ declare class HTTPBackgroundLogger implements BackgroundLogger {
|
|
|
11257
11358
|
disable(): void;
|
|
11258
11359
|
enforceQueueSizeLimit(enforce: boolean): void;
|
|
11259
11360
|
}
|
|
11361
|
+
type DatasetSnapshotNameLookup = {
|
|
11362
|
+
snapshotName: string;
|
|
11363
|
+
xactId?: never;
|
|
11364
|
+
};
|
|
11365
|
+
type DatasetSnapshotXactLookup = {
|
|
11366
|
+
snapshotName?: never;
|
|
11367
|
+
xactId: string;
|
|
11368
|
+
};
|
|
11369
|
+
type DatasetSnapshotLookup = DatasetSnapshotNameLookup | DatasetSnapshotXactLookup;
|
|
11370
|
+
type DatasetPinState = {
|
|
11371
|
+
lazyPinnedVersion?: LazyValue<string | undefined>;
|
|
11372
|
+
pinnedEnvironment?: string;
|
|
11373
|
+
pinnedSnapshotName?: string;
|
|
11374
|
+
};
|
|
11260
11375
|
type AsyncFlushArg<IsAsyncFlush> = {
|
|
11261
11376
|
asyncFlush?: IsAsyncFlush;
|
|
11262
11377
|
};
|
|
@@ -11344,6 +11459,9 @@ declare class ObjectFetcher<RecordType> implements AsyncIterable<WithTransaction
|
|
|
11344
11459
|
constructor(objectType: "dataset" | "experiment" | "project_logs" | "playground_logs", pinnedVersion: string | undefined, mutateRecord?: ((r: any) => WithTransactionId<RecordType>) | undefined, _internal_btql?: Record<string, unknown> | undefined);
|
|
11345
11460
|
get id(): Promise<string>;
|
|
11346
11461
|
protected getState(): Promise<BraintrustState>;
|
|
11462
|
+
protected getPinnedVersion(): string | undefined;
|
|
11463
|
+
protected setPinnedVersion(pinnedVersion: string | undefined): void;
|
|
11464
|
+
protected getInternalBtql(): Record<string, unknown> | undefined;
|
|
11347
11465
|
private fetchRecordsFromApi;
|
|
11348
11466
|
/**
|
|
11349
11467
|
* Fetch all records from the object.
|
|
@@ -11509,12 +11627,25 @@ declare class Dataset<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY
|
|
|
11509
11627
|
private readonly lazyMetadata;
|
|
11510
11628
|
private readonly __braintrust_dataset_marker;
|
|
11511
11629
|
private newRecords;
|
|
11512
|
-
|
|
11630
|
+
private lazyPinnedVersion?;
|
|
11631
|
+
private pinnedEnvironment?;
|
|
11632
|
+
private pinnedSnapshotName?;
|
|
11633
|
+
constructor(state: BraintrustState, lazyMetadata: LazyValue<ProjectDatasetMetadata>, pinnedVersion?: string, legacy?: IsLegacyDataset, _internal_btql?: Record<string, unknown>, pinState?: DatasetPinState);
|
|
11513
11634
|
get id(): Promise<string>;
|
|
11514
11635
|
get name(): Promise<string>;
|
|
11515
11636
|
get project(): Promise<ObjectMetadata>;
|
|
11516
11637
|
get loggingState(): BraintrustState;
|
|
11638
|
+
toEvalData(): Promise<{
|
|
11639
|
+
dataset_id: string;
|
|
11640
|
+
dataset_version?: string;
|
|
11641
|
+
dataset_environment?: string;
|
|
11642
|
+
dataset_snapshot_name?: string;
|
|
11643
|
+
_internal_btql?: Record<string, unknown>;
|
|
11644
|
+
}>;
|
|
11517
11645
|
protected getState(): Promise<BraintrustState>;
|
|
11646
|
+
version(options?: {
|
|
11647
|
+
batchSize?: number;
|
|
11648
|
+
}): Promise<string | undefined>;
|
|
11518
11649
|
private validateEvent;
|
|
11519
11650
|
private createArgs;
|
|
11520
11651
|
/**
|
|
@@ -11562,6 +11693,24 @@ declare class Dataset<IsLegacyDataset extends boolean = typeof DEFAULT_IS_LEGACY
|
|
|
11562
11693
|
readonly metadata?: Record<string, unknown>;
|
|
11563
11694
|
}): string;
|
|
11564
11695
|
delete(id: string): string;
|
|
11696
|
+
createSnapshot({ name, description, update, }: {
|
|
11697
|
+
readonly name: string;
|
|
11698
|
+
readonly description?: string;
|
|
11699
|
+
readonly update?: boolean;
|
|
11700
|
+
}): Promise<DatasetSnapshotType>;
|
|
11701
|
+
listSnapshots(): Promise<DatasetSnapshotType[]>;
|
|
11702
|
+
getSnapshot(lookup: DatasetSnapshotLookup): Promise<DatasetSnapshotType | undefined>;
|
|
11703
|
+
updateSnapshot(snapshotId: string, { name, description, }: {
|
|
11704
|
+
readonly name?: string;
|
|
11705
|
+
readonly description?: string | null;
|
|
11706
|
+
}): Promise<DatasetSnapshotType>;
|
|
11707
|
+
deleteSnapshot(snapshotId: string): Promise<DatasetSnapshotType>;
|
|
11708
|
+
restorePreview({ version, }: {
|
|
11709
|
+
readonly version: string;
|
|
11710
|
+
}): Promise<DatasetRestorePreviewResult>;
|
|
11711
|
+
restore({ version, }: {
|
|
11712
|
+
readonly version: string;
|
|
11713
|
+
}): Promise<DatasetRestoreResult>;
|
|
11565
11714
|
/**
|
|
11566
11715
|
* Summarize the dataset, including high level metrics about its size and other metadata.
|
|
11567
11716
|
* @param summarizeData Whether to summarize the data. If false, only the metadata will be returned.
|
|
@@ -12077,6 +12226,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
12077
12226
|
id?: string | undefined;
|
|
12078
12227
|
content?: string | undefined;
|
|
12079
12228
|
}>, "many">>;
|
|
12229
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
12080
12230
|
}, "strip", z.ZodTypeAny, {
|
|
12081
12231
|
role: "assistant";
|
|
12082
12232
|
name?: string | undefined;
|
|
@@ -12103,6 +12253,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
12103
12253
|
id?: string | undefined;
|
|
12104
12254
|
content?: string | undefined;
|
|
12105
12255
|
}[] | undefined;
|
|
12256
|
+
reasoning_signature?: string | undefined;
|
|
12106
12257
|
}, {
|
|
12107
12258
|
role: "assistant";
|
|
12108
12259
|
name?: string | undefined;
|
|
@@ -12129,6 +12280,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
12129
12280
|
id?: string | undefined;
|
|
12130
12281
|
content?: string | undefined;
|
|
12131
12282
|
}[] | undefined;
|
|
12283
|
+
reasoning_signature?: string | undefined;
|
|
12132
12284
|
}>, z.ZodObject<{
|
|
12133
12285
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
12134
12286
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -12303,6 +12455,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
12303
12455
|
id?: string | undefined;
|
|
12304
12456
|
content?: string | undefined;
|
|
12305
12457
|
}[] | undefined;
|
|
12458
|
+
reasoning_signature?: string | undefined;
|
|
12306
12459
|
} | {
|
|
12307
12460
|
role: "tool";
|
|
12308
12461
|
content: string | {
|
|
@@ -12391,6 +12544,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
12391
12544
|
id?: string | undefined;
|
|
12392
12545
|
content?: string | undefined;
|
|
12393
12546
|
}[] | undefined;
|
|
12547
|
+
reasoning_signature?: string | undefined;
|
|
12394
12548
|
} | {
|
|
12395
12549
|
role: "tool";
|
|
12396
12550
|
content: string | {
|