braintrust 3.10.0 → 3.12.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/README.md +8 -8
- package/dev/dist/index.d.mts +51 -3
- package/dev/dist/index.d.ts +51 -3
- package/dev/dist/index.js +13138 -8915
- package/dev/dist/index.mjs +13015 -8792
- package/dist/apply-auto-instrumentation.browser.d.mts +2 -0
- package/dist/apply-auto-instrumentation.browser.d.ts +2 -0
- package/dist/apply-auto-instrumentation.browser.js +18 -0
- package/dist/apply-auto-instrumentation.browser.mjs +0 -0
- package/dist/apply-auto-instrumentation.d.mts +2 -0
- package/dist/apply-auto-instrumentation.d.ts +2 -0
- package/dist/apply-auto-instrumentation.js +2534 -0
- package/dist/apply-auto-instrumentation.mjs +2534 -0
- package/dist/auto-instrumentations/bundler/esbuild.cjs +1775 -737
- package/dist/auto-instrumentations/bundler/esbuild.d.mts +9 -5
- package/dist/auto-instrumentations/bundler/esbuild.d.ts +9 -5
- package/dist/auto-instrumentations/bundler/esbuild.mjs +10 -2
- package/dist/auto-instrumentations/bundler/next.cjs +3268 -0
- package/dist/auto-instrumentations/bundler/next.d.mts +3 -0
- package/dist/auto-instrumentations/bundler/next.d.ts +3 -0
- package/dist/auto-instrumentations/bundler/next.mjs +189 -0
- package/dist/auto-instrumentations/bundler/rollup.cjs +1775 -737
- package/dist/auto-instrumentations/bundler/rollup.d.mts +9 -5
- package/dist/auto-instrumentations/bundler/rollup.d.ts +9 -5
- package/dist/auto-instrumentations/bundler/rollup.mjs +10 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +1775 -737
- package/dist/auto-instrumentations/bundler/vite.d.mts +9 -5
- package/dist/auto-instrumentations/bundler/vite.d.ts +9 -5
- package/dist/auto-instrumentations/bundler/vite.mjs +10 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +1713 -690
- package/dist/auto-instrumentations/bundler/webpack-loader.d.ts +3 -3
- package/dist/auto-instrumentations/bundler/webpack.cjs +1775 -737
- package/dist/auto-instrumentations/bundler/webpack.d.mts +9 -5
- package/dist/auto-instrumentations/bundler/webpack.d.ts +9 -5
- package/dist/auto-instrumentations/bundler/webpack.mjs +6 -6
- package/dist/auto-instrumentations/{chunk-GZNXBBPU.mjs → chunk-2DPA74KK.mjs} +856 -5
- package/dist/auto-instrumentations/chunk-73BZUKVI.mjs +300 -0
- package/dist/auto-instrumentations/chunk-AFXRW7I7.mjs +18 -0
- package/dist/auto-instrumentations/{chunk-ITP7RAUY.mjs → chunk-MWZXZQUO.mjs} +23 -1
- package/dist/auto-instrumentations/hook.mjs +1912 -1125
- package/dist/auto-instrumentations/index.cjs +615 -4
- package/dist/auto-instrumentations/index.d.mts +18 -1
- package/dist/auto-instrumentations/index.d.ts +18 -1
- package/dist/auto-instrumentations/index.mjs +12 -247
- 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 +35 -3
- package/dist/auto-instrumentations/plugin-D7nDswtC.d.mts +44 -0
- package/dist/auto-instrumentations/plugin-D7nDswtC.d.ts +44 -0
- package/dist/browser.d.mts +577 -287
- package/dist/browser.d.ts +577 -287
- package/dist/browser.js +10221 -5524
- package/dist/browser.mjs +10221 -5524
- package/dist/chunk-BW4DF4CY.js +816 -0
- package/dist/chunk-MSLBGITU.mjs +816 -0
- package/dist/cli.js +13143 -8892
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +10221 -5524
- package/dist/edge-light.mjs +10221 -5524
- package/dist/index.d.mts +590 -300
- package/dist/index.d.ts +590 -300
- package/dist/index.js +9309 -5371
- package/dist/index.mjs +10340 -6402
- package/dist/instrumentation/index.d.mts +7863 -39
- package/dist/instrumentation/index.d.ts +7863 -39
- package/dist/instrumentation/index.js +10263 -6034
- package/dist/instrumentation/index.mjs +10262 -6034
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +10221 -5524
- package/dist/workerd.mjs +10221 -5524
- package/package.json +33 -19
- package/util/dist/index.js +6 -0
- package/util/dist/index.mjs +6 -0
- package/dist/auto-instrumentations/chunk-XWEQQOQH.mjs +0 -106
- package/dist/auto-instrumentations/plugin-Df3qKIl2.d.mts +0 -22
- package/dist/auto-instrumentations/plugin-Df3qKIl2.d.ts +0 -22
package/README.md
CHANGED
|
@@ -61,40 +61,40 @@ Use a bundler plugin:
|
|
|
61
61
|
Vite:
|
|
62
62
|
|
|
63
63
|
```ts
|
|
64
|
-
import {
|
|
64
|
+
import { braintrustVitePlugin } from "braintrust/vite";
|
|
65
65
|
|
|
66
66
|
export default {
|
|
67
|
-
plugins: [
|
|
67
|
+
plugins: [braintrustVitePlugin()],
|
|
68
68
|
};
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
Webpack:
|
|
72
72
|
|
|
73
73
|
```js
|
|
74
|
-
const {
|
|
74
|
+
const { braintrustWebpackPlugin } = require("braintrust/webpack");
|
|
75
75
|
|
|
76
76
|
module.exports = {
|
|
77
|
-
plugins: [
|
|
77
|
+
plugins: [braintrustWebpackPlugin()],
|
|
78
78
|
};
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
esbuild:
|
|
82
82
|
|
|
83
83
|
```ts
|
|
84
|
-
import {
|
|
84
|
+
import { braintrustEsbuildPlugin } from "braintrust/esbuild";
|
|
85
85
|
|
|
86
86
|
await esbuild.build({
|
|
87
|
-
plugins: [
|
|
87
|
+
plugins: [braintrustEsbuildPlugin()],
|
|
88
88
|
});
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
Rollup:
|
|
92
92
|
|
|
93
93
|
```ts
|
|
94
|
-
import {
|
|
94
|
+
import { braintrustRollupPlugin } from "braintrust/rollup";
|
|
95
95
|
|
|
96
96
|
export default {
|
|
97
|
-
plugins: [
|
|
97
|
+
plugins: [braintrustRollupPlugin()],
|
|
98
98
|
};
|
|
99
99
|
```
|
|
100
100
|
|
package/dev/dist/index.d.mts
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>;
|
|
@@ -1776,6 +1782,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1776
1782
|
id?: string | undefined;
|
|
1777
1783
|
content?: string | undefined;
|
|
1778
1784
|
}>, "many">>;
|
|
1785
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
1779
1786
|
}, "strip", z.ZodTypeAny, {
|
|
1780
1787
|
role: "assistant";
|
|
1781
1788
|
name?: string | undefined;
|
|
@@ -1802,6 +1809,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1802
1809
|
id?: string | undefined;
|
|
1803
1810
|
content?: string | undefined;
|
|
1804
1811
|
}[] | undefined;
|
|
1812
|
+
reasoning_signature?: string | undefined;
|
|
1805
1813
|
}, {
|
|
1806
1814
|
role: "assistant";
|
|
1807
1815
|
name?: string | undefined;
|
|
@@ -1828,6 +1836,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
1828
1836
|
id?: string | undefined;
|
|
1829
1837
|
content?: string | undefined;
|
|
1830
1838
|
}[] | undefined;
|
|
1839
|
+
reasoning_signature?: string | undefined;
|
|
1831
1840
|
}>, z.ZodObject<{
|
|
1832
1841
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
1833
1842
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -2004,6 +2013,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
2004
2013
|
id?: string | undefined;
|
|
2005
2014
|
content?: string | undefined;
|
|
2006
2015
|
}[] | undefined;
|
|
2016
|
+
reasoning_signature?: string | undefined;
|
|
2007
2017
|
} | {
|
|
2008
2018
|
role: "tool";
|
|
2009
2019
|
content: string | {
|
|
@@ -2094,6 +2104,7 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
2094
2104
|
id?: string | undefined;
|
|
2095
2105
|
content?: string | undefined;
|
|
2096
2106
|
}[] | undefined;
|
|
2107
|
+
reasoning_signature?: string | undefined;
|
|
2097
2108
|
} | {
|
|
2098
2109
|
role: "tool";
|
|
2099
2110
|
content: string | {
|
|
@@ -2933,6 +2944,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
2933
2944
|
id?: string | undefined;
|
|
2934
2945
|
content?: string | undefined;
|
|
2935
2946
|
}>, "many">>;
|
|
2947
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
2936
2948
|
}, "strip", z.ZodTypeAny, {
|
|
2937
2949
|
role: "assistant";
|
|
2938
2950
|
name?: string | undefined;
|
|
@@ -2959,6 +2971,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
2959
2971
|
id?: string | undefined;
|
|
2960
2972
|
content?: string | undefined;
|
|
2961
2973
|
}[] | undefined;
|
|
2974
|
+
reasoning_signature?: string | undefined;
|
|
2962
2975
|
}, {
|
|
2963
2976
|
role: "assistant";
|
|
2964
2977
|
name?: string | undefined;
|
|
@@ -2985,6 +2998,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
2985
2998
|
id?: string | undefined;
|
|
2986
2999
|
content?: string | undefined;
|
|
2987
3000
|
}[] | undefined;
|
|
3001
|
+
reasoning_signature?: string | undefined;
|
|
2988
3002
|
}>, z.ZodObject<{
|
|
2989
3003
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
2990
3004
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -3161,6 +3175,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3161
3175
|
id?: string | undefined;
|
|
3162
3176
|
content?: string | undefined;
|
|
3163
3177
|
}[] | undefined;
|
|
3178
|
+
reasoning_signature?: string | undefined;
|
|
3164
3179
|
} | {
|
|
3165
3180
|
role: "tool";
|
|
3166
3181
|
content: string | {
|
|
@@ -3251,6 +3266,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3251
3266
|
id?: string | undefined;
|
|
3252
3267
|
content?: string | undefined;
|
|
3253
3268
|
}[] | undefined;
|
|
3269
|
+
reasoning_signature?: string | undefined;
|
|
3254
3270
|
} | {
|
|
3255
3271
|
role: "tool";
|
|
3256
3272
|
content: string | {
|
|
@@ -3353,6 +3369,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3353
3369
|
id?: string | undefined;
|
|
3354
3370
|
content?: string | undefined;
|
|
3355
3371
|
}[] | undefined;
|
|
3372
|
+
reasoning_signature?: string | undefined;
|
|
3356
3373
|
} | {
|
|
3357
3374
|
role: "tool";
|
|
3358
3375
|
content: string | {
|
|
@@ -3454,6 +3471,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3454
3471
|
id?: string | undefined;
|
|
3455
3472
|
content?: string | undefined;
|
|
3456
3473
|
}[] | undefined;
|
|
3474
|
+
reasoning_signature?: string | undefined;
|
|
3457
3475
|
} | {
|
|
3458
3476
|
role: "tool";
|
|
3459
3477
|
content: string | {
|
|
@@ -3656,6 +3674,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3656
3674
|
id?: string | undefined;
|
|
3657
3675
|
content?: string | undefined;
|
|
3658
3676
|
}[] | undefined;
|
|
3677
|
+
reasoning_signature?: string | undefined;
|
|
3659
3678
|
} | {
|
|
3660
3679
|
role: "tool";
|
|
3661
3680
|
content: string | {
|
|
@@ -3826,6 +3845,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3826
3845
|
id?: string | undefined;
|
|
3827
3846
|
content?: string | undefined;
|
|
3828
3847
|
}[] | undefined;
|
|
3848
|
+
reasoning_signature?: string | undefined;
|
|
3829
3849
|
} | {
|
|
3830
3850
|
role: "tool";
|
|
3831
3851
|
content: string | {
|
|
@@ -4595,6 +4615,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
4595
4615
|
id?: string | undefined;
|
|
4596
4616
|
content?: string | undefined;
|
|
4597
4617
|
}>, "many">>;
|
|
4618
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
4598
4619
|
}, "strip", z.ZodTypeAny, {
|
|
4599
4620
|
role: "assistant";
|
|
4600
4621
|
name?: string | undefined;
|
|
@@ -4621,6 +4642,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
4621
4642
|
id?: string | undefined;
|
|
4622
4643
|
content?: string | undefined;
|
|
4623
4644
|
}[] | undefined;
|
|
4645
|
+
reasoning_signature?: string | undefined;
|
|
4624
4646
|
}, {
|
|
4625
4647
|
role: "assistant";
|
|
4626
4648
|
name?: string | undefined;
|
|
@@ -4647,6 +4669,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
4647
4669
|
id?: string | undefined;
|
|
4648
4670
|
content?: string | undefined;
|
|
4649
4671
|
}[] | undefined;
|
|
4672
|
+
reasoning_signature?: string | undefined;
|
|
4650
4673
|
}>, z.ZodObject<{
|
|
4651
4674
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
4652
4675
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -4823,6 +4846,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
4823
4846
|
id?: string | undefined;
|
|
4824
4847
|
content?: string | undefined;
|
|
4825
4848
|
}[] | undefined;
|
|
4849
|
+
reasoning_signature?: string | undefined;
|
|
4826
4850
|
} | {
|
|
4827
4851
|
role: "tool";
|
|
4828
4852
|
content: string | {
|
|
@@ -4913,6 +4937,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
4913
4937
|
id?: string | undefined;
|
|
4914
4938
|
content?: string | undefined;
|
|
4915
4939
|
}[] | undefined;
|
|
4940
|
+
reasoning_signature?: string | undefined;
|
|
4916
4941
|
} | {
|
|
4917
4942
|
role: "tool";
|
|
4918
4943
|
content: string | {
|
|
@@ -5817,6 +5842,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
5817
5842
|
id?: string | undefined;
|
|
5818
5843
|
content?: string | undefined;
|
|
5819
5844
|
}[] | undefined;
|
|
5845
|
+
reasoning_signature?: string | undefined;
|
|
5820
5846
|
} | {
|
|
5821
5847
|
role: "tool";
|
|
5822
5848
|
content: string | {
|
|
@@ -6066,6 +6092,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
6066
6092
|
id?: string | undefined;
|
|
6067
6093
|
content?: string | undefined;
|
|
6068
6094
|
}[] | undefined;
|
|
6095
|
+
reasoning_signature?: string | undefined;
|
|
6069
6096
|
} | {
|
|
6070
6097
|
role: "tool";
|
|
6071
6098
|
content: string | {
|
|
@@ -6425,6 +6452,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
6425
6452
|
id?: string | undefined;
|
|
6426
6453
|
content?: string | undefined;
|
|
6427
6454
|
}>, "many">>;
|
|
6455
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
6428
6456
|
}, "strip", z.ZodTypeAny, {
|
|
6429
6457
|
role: "assistant";
|
|
6430
6458
|
name?: string | undefined;
|
|
@@ -6451,6 +6479,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
6451
6479
|
id?: string | undefined;
|
|
6452
6480
|
content?: string | undefined;
|
|
6453
6481
|
}[] | undefined;
|
|
6482
|
+
reasoning_signature?: string | undefined;
|
|
6454
6483
|
}, {
|
|
6455
6484
|
role: "assistant";
|
|
6456
6485
|
name?: string | undefined;
|
|
@@ -6477,6 +6506,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
6477
6506
|
id?: string | undefined;
|
|
6478
6507
|
content?: string | undefined;
|
|
6479
6508
|
}[] | undefined;
|
|
6509
|
+
reasoning_signature?: string | undefined;
|
|
6480
6510
|
}>, z.ZodObject<{
|
|
6481
6511
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
6482
6512
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -6653,6 +6683,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
6653
6683
|
id?: string | undefined;
|
|
6654
6684
|
content?: string | undefined;
|
|
6655
6685
|
}[] | undefined;
|
|
6686
|
+
reasoning_signature?: string | undefined;
|
|
6656
6687
|
} | {
|
|
6657
6688
|
role: "tool";
|
|
6658
6689
|
content: string | {
|
|
@@ -6743,6 +6774,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
6743
6774
|
id?: string | undefined;
|
|
6744
6775
|
content?: string | undefined;
|
|
6745
6776
|
}[] | undefined;
|
|
6777
|
+
reasoning_signature?: string | undefined;
|
|
6746
6778
|
} | {
|
|
6747
6779
|
role: "tool";
|
|
6748
6780
|
content: string | {
|
|
@@ -7647,6 +7679,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
7647
7679
|
id?: string | undefined;
|
|
7648
7680
|
content?: string | undefined;
|
|
7649
7681
|
}[] | undefined;
|
|
7682
|
+
reasoning_signature?: string | undefined;
|
|
7650
7683
|
} | {
|
|
7651
7684
|
role: "tool";
|
|
7652
7685
|
content: string | {
|
|
@@ -7896,6 +7929,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
7896
7929
|
id?: string | undefined;
|
|
7897
7930
|
content?: string | undefined;
|
|
7898
7931
|
}[] | undefined;
|
|
7932
|
+
reasoning_signature?: string | undefined;
|
|
7899
7933
|
} | {
|
|
7900
7934
|
role: "tool";
|
|
7901
7935
|
content: string | {
|
|
@@ -8162,6 +8196,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
8162
8196
|
id?: string | undefined;
|
|
8163
8197
|
content?: string | undefined;
|
|
8164
8198
|
}[] | undefined;
|
|
8199
|
+
reasoning_signature?: string | undefined;
|
|
8165
8200
|
} | {
|
|
8166
8201
|
role: "tool";
|
|
8167
8202
|
content: string | {
|
|
@@ -8425,6 +8460,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
8425
8460
|
id?: string | undefined;
|
|
8426
8461
|
content?: string | undefined;
|
|
8427
8462
|
}[] | undefined;
|
|
8463
|
+
reasoning_signature?: string | undefined;
|
|
8428
8464
|
} | {
|
|
8429
8465
|
role: "tool";
|
|
8430
8466
|
content: string | {
|
|
@@ -8570,7 +8606,7 @@ declare const SSEProgressEventData: z.ZodObject<{
|
|
|
8570
8606
|
object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
|
|
8571
8607
|
name: string;
|
|
8572
8608
|
data: string;
|
|
8573
|
-
event: "
|
|
8609
|
+
event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
|
|
8574
8610
|
format: "code" | "llm" | "global" | "topic_map" | "graph";
|
|
8575
8611
|
output_type: "facet" | "score" | "completion" | "classification" | "any";
|
|
8576
8612
|
origin?: {
|
|
@@ -8585,7 +8621,7 @@ declare const SSEProgressEventData: z.ZodObject<{
|
|
|
8585
8621
|
object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
|
|
8586
8622
|
name: string;
|
|
8587
8623
|
data: string;
|
|
8588
|
-
event: "
|
|
8624
|
+
event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
|
|
8589
8625
|
format: "code" | "llm" | "global" | "topic_map" | "graph";
|
|
8590
8626
|
output_type: "facet" | "score" | "completion" | "classification" | "any";
|
|
8591
8627
|
origin?: {
|
|
@@ -9248,6 +9284,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
9248
9284
|
id?: string | undefined;
|
|
9249
9285
|
content?: string | undefined;
|
|
9250
9286
|
}>, "many">>;
|
|
9287
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
9251
9288
|
}, "strip", z.ZodTypeAny, {
|
|
9252
9289
|
role: "assistant";
|
|
9253
9290
|
name?: string | undefined;
|
|
@@ -9274,6 +9311,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
9274
9311
|
id?: string | undefined;
|
|
9275
9312
|
content?: string | undefined;
|
|
9276
9313
|
}[] | undefined;
|
|
9314
|
+
reasoning_signature?: string | undefined;
|
|
9277
9315
|
}, {
|
|
9278
9316
|
role: "assistant";
|
|
9279
9317
|
name?: string | undefined;
|
|
@@ -9300,6 +9338,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
9300
9338
|
id?: string | undefined;
|
|
9301
9339
|
content?: string | undefined;
|
|
9302
9340
|
}[] | undefined;
|
|
9341
|
+
reasoning_signature?: string | undefined;
|
|
9303
9342
|
}>, z.ZodObject<{
|
|
9304
9343
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
9305
9344
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -9474,6 +9513,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
9474
9513
|
id?: string | undefined;
|
|
9475
9514
|
content?: string | undefined;
|
|
9476
9515
|
}[] | undefined;
|
|
9516
|
+
reasoning_signature?: string | undefined;
|
|
9477
9517
|
} | {
|
|
9478
9518
|
role: "tool";
|
|
9479
9519
|
content: string | {
|
|
@@ -9562,6 +9602,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
9562
9602
|
id?: string | undefined;
|
|
9563
9603
|
content?: string | undefined;
|
|
9564
9604
|
}[] | undefined;
|
|
9605
|
+
reasoning_signature?: string | undefined;
|
|
9565
9606
|
} | {
|
|
9566
9607
|
role: "tool";
|
|
9567
9608
|
content: string | {
|
|
@@ -10308,6 +10349,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
10308
10349
|
id?: string | undefined;
|
|
10309
10350
|
content?: string | undefined;
|
|
10310
10351
|
}[] | undefined;
|
|
10352
|
+
reasoning_signature?: string | undefined;
|
|
10311
10353
|
} | {
|
|
10312
10354
|
role: "tool";
|
|
10313
10355
|
content: string | {
|
|
@@ -10533,6 +10575,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
10533
10575
|
id?: string | undefined;
|
|
10534
10576
|
content?: string | undefined;
|
|
10535
10577
|
}[] | undefined;
|
|
10578
|
+
reasoning_signature?: string | undefined;
|
|
10536
10579
|
} | {
|
|
10537
10580
|
role: "tool";
|
|
10538
10581
|
content: string | {
|
|
@@ -12183,6 +12226,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
12183
12226
|
id?: string | undefined;
|
|
12184
12227
|
content?: string | undefined;
|
|
12185
12228
|
}>, "many">>;
|
|
12229
|
+
reasoning_signature: z.ZodOptional<z.ZodString>;
|
|
12186
12230
|
}, "strip", z.ZodTypeAny, {
|
|
12187
12231
|
role: "assistant";
|
|
12188
12232
|
name?: string | undefined;
|
|
@@ -12209,6 +12253,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
12209
12253
|
id?: string | undefined;
|
|
12210
12254
|
content?: string | undefined;
|
|
12211
12255
|
}[] | undefined;
|
|
12256
|
+
reasoning_signature?: string | undefined;
|
|
12212
12257
|
}, {
|
|
12213
12258
|
role: "assistant";
|
|
12214
12259
|
name?: string | undefined;
|
|
@@ -12235,6 +12280,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
12235
12280
|
id?: string | undefined;
|
|
12236
12281
|
content?: string | undefined;
|
|
12237
12282
|
}[] | undefined;
|
|
12283
|
+
reasoning_signature?: string | undefined;
|
|
12238
12284
|
}>, z.ZodObject<{
|
|
12239
12285
|
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
12240
12286
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -12409,6 +12455,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
12409
12455
|
id?: string | undefined;
|
|
12410
12456
|
content?: string | undefined;
|
|
12411
12457
|
}[] | undefined;
|
|
12458
|
+
reasoning_signature?: string | undefined;
|
|
12412
12459
|
} | {
|
|
12413
12460
|
role: "tool";
|
|
12414
12461
|
content: string | {
|
|
@@ -12497,6 +12544,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
12497
12544
|
id?: string | undefined;
|
|
12498
12545
|
content?: string | undefined;
|
|
12499
12546
|
}[] | undefined;
|
|
12547
|
+
reasoning_signature?: string | undefined;
|
|
12500
12548
|
} | {
|
|
12501
12549
|
role: "tool";
|
|
12502
12550
|
content: string | {
|
|
@@ -13509,7 +13557,7 @@ interface Evaluator<Input, Output, Expected, Metadata extends BaseMetadata = Def
|
|
|
13509
13557
|
*/
|
|
13510
13558
|
baseExperimentId?: string;
|
|
13511
13559
|
/**
|
|
13512
|
-
* Optional settings for collecting git metadata. By default,
|
|
13560
|
+
* Optional settings for collecting git metadata. By default, Braintrust collects the git metadata fields allowed by your organization's git metadata settings. If those settings are absent, git metadata is not collected unless this option is set.
|
|
13513
13561
|
*/
|
|
13514
13562
|
gitMetadataSettings?: GitMetadataSettingsType;
|
|
13515
13563
|
/**
|