braintrust 3.25.0 → 3.27.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/NOTICE +6 -0
- package/dev/dist/index.d.mts +130 -2
- package/dev/dist/index.d.ts +130 -2
- package/dev/dist/index.js +4133 -1421
- package/dev/dist/index.mjs +3242 -530
- package/dist/apply-auto-instrumentation.js +526 -426
- package/dist/apply-auto-instrumentation.mjs +329 -229
- package/dist/auto-instrumentations/bundler/esbuild.cjs +1198 -364
- package/dist/auto-instrumentations/bundler/esbuild.d.mts +4 -4
- package/dist/auto-instrumentations/bundler/esbuild.d.ts +4 -4
- package/dist/auto-instrumentations/bundler/esbuild.mjs +6 -8
- package/dist/auto-instrumentations/bundler/next.cjs +1227 -413
- package/dist/auto-instrumentations/bundler/next.mjs +7 -29
- package/dist/auto-instrumentations/bundler/rollup.cjs +1198 -364
- package/dist/auto-instrumentations/bundler/rollup.d.mts +4 -4
- package/dist/auto-instrumentations/bundler/rollup.d.ts +4 -4
- package/dist/auto-instrumentations/bundler/rollup.mjs +6 -8
- package/dist/auto-instrumentations/bundler/vite.cjs +1249 -387
- package/dist/auto-instrumentations/bundler/vite.d.mts +4 -4
- package/dist/auto-instrumentations/bundler/vite.d.ts +4 -4
- package/dist/auto-instrumentations/bundler/vite.mjs +34 -8
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +1368 -324
- package/dist/auto-instrumentations/bundler/webpack-loader.d.ts +20 -12
- package/dist/auto-instrumentations/bundler/webpack.cjs +1198 -364
- package/dist/auto-instrumentations/bundler/webpack.d.mts +4 -4
- package/dist/auto-instrumentations/bundler/webpack.d.ts +4 -4
- package/dist/auto-instrumentations/bundler/webpack.mjs +6 -4
- package/dist/auto-instrumentations/chunk-2AMDGD65.mjs +1396 -0
- package/dist/auto-instrumentations/{chunk-7P6563SW.mjs → chunk-BW33ULMW.mjs} +2 -6
- package/dist/auto-instrumentations/{chunk-M6DLIJ2Z.mjs → chunk-I55G56ZL.mjs} +114 -221
- package/dist/auto-instrumentations/chunk-JPUFNW7X.mjs +649 -0
- package/dist/auto-instrumentations/{chunk-JPVCUKTY.mjs → chunk-XEYKUBLY.mjs} +191 -73
- package/dist/auto-instrumentations/{chunk-CZ24KNHT.mjs → chunk-ZNHTSSGI.mjs} +231 -69
- package/dist/auto-instrumentations/hook.mjs +406 -183
- package/dist/auto-instrumentations/index.cjs +853 -49
- package/dist/auto-instrumentations/index.d.mts +10 -2
- package/dist/auto-instrumentations/index.d.ts +10 -2
- package/dist/auto-instrumentations/index.mjs +10 -1
- package/dist/auto-instrumentations/loader/cjs-patch.cjs +566 -221
- package/dist/auto-instrumentations/loader/cjs-patch.d.mts +2 -2
- package/dist/auto-instrumentations/loader/cjs-patch.d.ts +2 -2
- package/dist/auto-instrumentations/loader/cjs-patch.mjs +3 -2
- package/dist/auto-instrumentations/loader/esm-hook.mjs +1 -1
- package/dist/auto-instrumentations/plugin-B-aZh7EP.d.ts +30 -0
- package/dist/auto-instrumentations/plugin-Bnj4E_6B.d.mts +30 -0
- package/dist/auto-instrumentations/{types-RNPaKi9o.d.mts → types-C1fVeiCp.d.mts} +1 -1
- package/dist/auto-instrumentations/{types-RNPaKi9o.d.ts → types-C1fVeiCp.d.ts} +1 -1
- package/dist/browser.d.mts +871 -199
- package/dist/browser.d.ts +871 -199
- package/dist/browser.js +3737 -549
- package/dist/browser.mjs +3737 -549
- package/dist/{chunk-ABR2QWDP.mjs → chunk-CZM5JIQL.mjs} +788 -132
- package/dist/{chunk-P25IOOU4.js → chunk-MF7NU6BT.js} +795 -139
- package/dist/{chunk-GSIDVFE6.js → chunk-QRHGVBKU.js} +3580 -1463
- package/dist/{chunk-2SANLSWX.mjs → chunk-YKD22IMR.mjs} +2505 -388
- package/dist/cli.js +3244 -533
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +3737 -552
- package/dist/edge-light.mjs +3737 -552
- package/dist/index.d.mts +871 -199
- package/dist/index.d.ts +871 -199
- package/dist/index.js +893 -446
- package/dist/index.mjs +463 -16
- package/dist/instrumentation/index.d.mts +138 -6
- package/dist/instrumentation/index.d.ts +138 -6
- package/dist/instrumentation/index.js +3362 -559
- package/dist/instrumentation/index.mjs +3362 -559
- package/dist/vitest-evals-reporter.js +45 -43
- package/dist/vitest-evals-reporter.mjs +5 -3
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +3737 -552
- package/dist/workerd.mjs +3737 -552
- package/licenses/node-diagnostics-channel/LICENSE +19 -0
- package/package.json +34 -35
- package/dist/auto-instrumentations/chunk-VT6DDNKM.mjs +0 -856
- package/dist/auto-instrumentations/plugin-D0KHwSJv.d.mts +0 -44
- package/dist/auto-instrumentations/plugin-G6fgxk1b.d.ts +0 -44
package/dist/browser.d.mts
CHANGED
|
@@ -8028,6 +8028,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8028
8028
|
naming_model?: string | undefined;
|
|
8029
8029
|
}>>;
|
|
8030
8030
|
disable_reconciliation: z.ZodOptional<z.ZodBoolean>;
|
|
8031
|
+
reconcile_mode: z.ZodOptional<z.ZodEnum<["evolve", "names_only"]>>;
|
|
8031
8032
|
distance_threshold: z.ZodOptional<z.ZodNumber>;
|
|
8032
8033
|
btql_filter: z.ZodOptional<z.ZodString>;
|
|
8033
8034
|
automation_btql_filter: z.ZodOptional<z.ZodString>;
|
|
@@ -8049,6 +8050,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8049
8050
|
naming_model?: string | undefined;
|
|
8050
8051
|
} | undefined;
|
|
8051
8052
|
disable_reconciliation?: boolean | undefined;
|
|
8053
|
+
reconcile_mode?: "evolve" | "names_only" | undefined;
|
|
8052
8054
|
distance_threshold?: number | undefined;
|
|
8053
8055
|
btql_filter?: string | undefined;
|
|
8054
8056
|
automation_btql_filter?: string | undefined;
|
|
@@ -8070,6 +8072,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8070
8072
|
naming_model?: string | undefined;
|
|
8071
8073
|
} | undefined;
|
|
8072
8074
|
disable_reconciliation?: boolean | undefined;
|
|
8075
|
+
reconcile_mode?: "evolve" | "names_only" | undefined;
|
|
8073
8076
|
distance_threshold?: number | undefined;
|
|
8074
8077
|
btql_filter?: string | undefined;
|
|
8075
8078
|
automation_btql_filter?: string | undefined;
|
|
@@ -8094,6 +8097,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8094
8097
|
naming_model?: string | undefined;
|
|
8095
8098
|
} | undefined;
|
|
8096
8099
|
disable_reconciliation?: boolean | undefined;
|
|
8100
|
+
reconcile_mode?: "evolve" | "names_only" | undefined;
|
|
8097
8101
|
distance_threshold?: number | undefined;
|
|
8098
8102
|
btql_filter?: string | undefined;
|
|
8099
8103
|
automation_btql_filter?: string | undefined;
|
|
@@ -8119,6 +8123,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8119
8123
|
naming_model?: string | undefined;
|
|
8120
8124
|
} | undefined;
|
|
8121
8125
|
disable_reconciliation?: boolean | undefined;
|
|
8126
|
+
reconcile_mode?: "evolve" | "names_only" | undefined;
|
|
8122
8127
|
distance_threshold?: number | undefined;
|
|
8123
8128
|
btql_filter?: string | undefined;
|
|
8124
8129
|
automation_btql_filter?: string | undefined;
|
|
@@ -8163,6 +8168,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8163
8168
|
naming_model?: string | undefined;
|
|
8164
8169
|
} | undefined;
|
|
8165
8170
|
disable_reconciliation?: boolean | undefined;
|
|
8171
|
+
reconcile_mode?: "evolve" | "names_only" | undefined;
|
|
8166
8172
|
distance_threshold?: number | undefined;
|
|
8167
8173
|
btql_filter?: string | undefined;
|
|
8168
8174
|
automation_btql_filter?: string | undefined;
|
|
@@ -8207,6 +8213,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8207
8213
|
naming_model?: string | undefined;
|
|
8208
8214
|
} | undefined;
|
|
8209
8215
|
disable_reconciliation?: boolean | undefined;
|
|
8216
|
+
reconcile_mode?: "evolve" | "names_only" | undefined;
|
|
8210
8217
|
distance_threshold?: number | undefined;
|
|
8211
8218
|
btql_filter?: string | undefined;
|
|
8212
8219
|
automation_btql_filter?: string | undefined;
|
|
@@ -8290,6 +8297,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8290
8297
|
naming_model?: string | undefined;
|
|
8291
8298
|
}>>;
|
|
8292
8299
|
disable_reconciliation: z.ZodOptional<z.ZodBoolean>;
|
|
8300
|
+
reconcile_mode: z.ZodOptional<z.ZodEnum<["evolve", "names_only"]>>;
|
|
8293
8301
|
distance_threshold: z.ZodOptional<z.ZodNumber>;
|
|
8294
8302
|
btql_filter: z.ZodOptional<z.ZodString>;
|
|
8295
8303
|
automation_btql_filter: z.ZodOptional<z.ZodString>;
|
|
@@ -8311,6 +8319,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8311
8319
|
naming_model?: string | undefined;
|
|
8312
8320
|
} | undefined;
|
|
8313
8321
|
disable_reconciliation?: boolean | undefined;
|
|
8322
|
+
reconcile_mode?: "evolve" | "names_only" | undefined;
|
|
8314
8323
|
distance_threshold?: number | undefined;
|
|
8315
8324
|
btql_filter?: string | undefined;
|
|
8316
8325
|
automation_btql_filter?: string | undefined;
|
|
@@ -8332,6 +8341,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
8332
8341
|
naming_model?: string | undefined;
|
|
8333
8342
|
} | undefined;
|
|
8334
8343
|
disable_reconciliation?: boolean | undefined;
|
|
8344
|
+
reconcile_mode?: "evolve" | "names_only" | undefined;
|
|
8335
8345
|
distance_threshold?: number | undefined;
|
|
8336
8346
|
btql_filter?: string | undefined;
|
|
8337
8347
|
automation_btql_filter?: string | undefined;
|
|
@@ -9411,6 +9421,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
9411
9421
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
9412
9422
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
9413
9423
|
position: z.ZodOptional<z.ZodString>;
|
|
9424
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
9414
9425
|
}, "strip", z.ZodTypeAny, {
|
|
9415
9426
|
params?: z.objectOutputType<{
|
|
9416
9427
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -9531,6 +9542,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
9531
9542
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
9532
9543
|
model?: string | undefined;
|
|
9533
9544
|
position?: string | undefined;
|
|
9545
|
+
endpoint_name?: string | null | undefined;
|
|
9534
9546
|
}, {
|
|
9535
9547
|
params?: z.objectInputType<{
|
|
9536
9548
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -9651,6 +9663,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
9651
9663
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
9652
9664
|
model?: string | undefined;
|
|
9653
9665
|
position?: string | undefined;
|
|
9666
|
+
endpoint_name?: string | null | undefined;
|
|
9654
9667
|
}>, z.ZodNull]>>;
|
|
9655
9668
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
9656
9669
|
type: z.ZodLiteral<"llm_classifier">;
|
|
@@ -9674,6 +9687,31 @@ declare const PromptData: z.ZodObject<{
|
|
|
9674
9687
|
allow_no_match?: boolean | undefined;
|
|
9675
9688
|
allow_skip?: boolean | undefined;
|
|
9676
9689
|
}>, z.ZodNull]>>;
|
|
9690
|
+
preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
9691
|
+
type: z.ZodLiteral<"function">;
|
|
9692
|
+
id: z.ZodString;
|
|
9693
|
+
version: z.ZodOptional<z.ZodString>;
|
|
9694
|
+
}, "strip", z.ZodTypeAny, {
|
|
9695
|
+
type: "function";
|
|
9696
|
+
id: string;
|
|
9697
|
+
version?: string | undefined;
|
|
9698
|
+
}, {
|
|
9699
|
+
type: "function";
|
|
9700
|
+
id: string;
|
|
9701
|
+
version?: string | undefined;
|
|
9702
|
+
}>, z.ZodObject<{
|
|
9703
|
+
type: z.ZodLiteral<"global">;
|
|
9704
|
+
name: z.ZodString;
|
|
9705
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
|
|
9706
|
+
}, "strip", z.ZodTypeAny, {
|
|
9707
|
+
type: "global";
|
|
9708
|
+
name: string;
|
|
9709
|
+
function_type: "preprocessor";
|
|
9710
|
+
}, {
|
|
9711
|
+
type: "global";
|
|
9712
|
+
name: string;
|
|
9713
|
+
function_type?: "preprocessor" | undefined;
|
|
9714
|
+
}>, z.ZodNull]>>;
|
|
9677
9715
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
9678
9716
|
type: z.ZodLiteral<"function">;
|
|
9679
9717
|
id: z.ZodString;
|
|
@@ -9865,6 +9903,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
9865
9903
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
9866
9904
|
model?: string | undefined;
|
|
9867
9905
|
position?: string | undefined;
|
|
9906
|
+
endpoint_name?: string | null | undefined;
|
|
9868
9907
|
} | null | undefined;
|
|
9869
9908
|
prompt?: {
|
|
9870
9909
|
type: "chat";
|
|
@@ -9974,6 +10013,15 @@ declare const PromptData: z.ZodObject<{
|
|
|
9974
10013
|
type: "completion";
|
|
9975
10014
|
content: string;
|
|
9976
10015
|
} | null | undefined;
|
|
10016
|
+
preprocessor?: {
|
|
10017
|
+
type: "function";
|
|
10018
|
+
id: string;
|
|
10019
|
+
version?: string | undefined;
|
|
10020
|
+
} | {
|
|
10021
|
+
type: "global";
|
|
10022
|
+
name: string;
|
|
10023
|
+
function_type: "preprocessor";
|
|
10024
|
+
} | null | undefined;
|
|
9977
10025
|
origin?: {
|
|
9978
10026
|
project_id?: string | undefined;
|
|
9979
10027
|
prompt_id?: string | undefined;
|
|
@@ -10129,6 +10177,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
10129
10177
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
10130
10178
|
model?: string | undefined;
|
|
10131
10179
|
position?: string | undefined;
|
|
10180
|
+
endpoint_name?: string | null | undefined;
|
|
10132
10181
|
} | null | undefined;
|
|
10133
10182
|
prompt?: {
|
|
10134
10183
|
type: "chat";
|
|
@@ -10238,6 +10287,15 @@ declare const PromptData: z.ZodObject<{
|
|
|
10238
10287
|
type: "completion";
|
|
10239
10288
|
content: string;
|
|
10240
10289
|
} | null | undefined;
|
|
10290
|
+
preprocessor?: {
|
|
10291
|
+
type: "function";
|
|
10292
|
+
id: string;
|
|
10293
|
+
version?: string | undefined;
|
|
10294
|
+
} | {
|
|
10295
|
+
type: "global";
|
|
10296
|
+
name: string;
|
|
10297
|
+
function_type?: "preprocessor" | undefined;
|
|
10298
|
+
} | null | undefined;
|
|
10241
10299
|
origin?: {
|
|
10242
10300
|
project_id?: string | undefined;
|
|
10243
10301
|
prompt_id?: string | undefined;
|
|
@@ -11422,6 +11480,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
11422
11480
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
11423
11481
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
11424
11482
|
position: z.ZodOptional<z.ZodString>;
|
|
11483
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
11425
11484
|
}, "strip", z.ZodTypeAny, {
|
|
11426
11485
|
params?: z.objectOutputType<{
|
|
11427
11486
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -11542,6 +11601,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
11542
11601
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
11543
11602
|
model?: string | undefined;
|
|
11544
11603
|
position?: string | undefined;
|
|
11604
|
+
endpoint_name?: string | null | undefined;
|
|
11545
11605
|
}, {
|
|
11546
11606
|
params?: z.objectInputType<{
|
|
11547
11607
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -11662,6 +11722,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
11662
11722
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
11663
11723
|
model?: string | undefined;
|
|
11664
11724
|
position?: string | undefined;
|
|
11725
|
+
endpoint_name?: string | null | undefined;
|
|
11665
11726
|
}>, z.ZodNull]>>;
|
|
11666
11727
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
11667
11728
|
type: z.ZodLiteral<"llm_classifier">;
|
|
@@ -11685,6 +11746,31 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
11685
11746
|
allow_no_match?: boolean | undefined;
|
|
11686
11747
|
allow_skip?: boolean | undefined;
|
|
11687
11748
|
}>, z.ZodNull]>>;
|
|
11749
|
+
preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
11750
|
+
type: z.ZodLiteral<"function">;
|
|
11751
|
+
id: z.ZodString;
|
|
11752
|
+
version: z.ZodOptional<z.ZodString>;
|
|
11753
|
+
}, "strip", z.ZodTypeAny, {
|
|
11754
|
+
type: "function";
|
|
11755
|
+
id: string;
|
|
11756
|
+
version?: string | undefined;
|
|
11757
|
+
}, {
|
|
11758
|
+
type: "function";
|
|
11759
|
+
id: string;
|
|
11760
|
+
version?: string | undefined;
|
|
11761
|
+
}>, z.ZodObject<{
|
|
11762
|
+
type: z.ZodLiteral<"global">;
|
|
11763
|
+
name: z.ZodString;
|
|
11764
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
|
|
11765
|
+
}, "strip", z.ZodTypeAny, {
|
|
11766
|
+
type: "global";
|
|
11767
|
+
name: string;
|
|
11768
|
+
function_type: "preprocessor";
|
|
11769
|
+
}, {
|
|
11770
|
+
type: "global";
|
|
11771
|
+
name: string;
|
|
11772
|
+
function_type?: "preprocessor" | undefined;
|
|
11773
|
+
}>, z.ZodNull]>>;
|
|
11688
11774
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
11689
11775
|
type: z.ZodLiteral<"function">;
|
|
11690
11776
|
id: z.ZodString;
|
|
@@ -11876,6 +11962,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
11876
11962
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
11877
11963
|
model?: string | undefined;
|
|
11878
11964
|
position?: string | undefined;
|
|
11965
|
+
endpoint_name?: string | null | undefined;
|
|
11879
11966
|
} | null | undefined;
|
|
11880
11967
|
prompt?: {
|
|
11881
11968
|
type: "chat";
|
|
@@ -11985,6 +12072,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
11985
12072
|
type: "completion";
|
|
11986
12073
|
content: string;
|
|
11987
12074
|
} | null | undefined;
|
|
12075
|
+
preprocessor?: {
|
|
12076
|
+
type: "function";
|
|
12077
|
+
id: string;
|
|
12078
|
+
version?: string | undefined;
|
|
12079
|
+
} | {
|
|
12080
|
+
type: "global";
|
|
12081
|
+
name: string;
|
|
12082
|
+
function_type: "preprocessor";
|
|
12083
|
+
} | null | undefined;
|
|
11988
12084
|
origin?: {
|
|
11989
12085
|
project_id?: string | undefined;
|
|
11990
12086
|
prompt_id?: string | undefined;
|
|
@@ -12140,6 +12236,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
12140
12236
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
12141
12237
|
model?: string | undefined;
|
|
12142
12238
|
position?: string | undefined;
|
|
12239
|
+
endpoint_name?: string | null | undefined;
|
|
12143
12240
|
} | null | undefined;
|
|
12144
12241
|
prompt?: {
|
|
12145
12242
|
type: "chat";
|
|
@@ -12249,6 +12346,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
12249
12346
|
type: "completion";
|
|
12250
12347
|
content: string;
|
|
12251
12348
|
} | null | undefined;
|
|
12349
|
+
preprocessor?: {
|
|
12350
|
+
type: "function";
|
|
12351
|
+
id: string;
|
|
12352
|
+
version?: string | undefined;
|
|
12353
|
+
} | {
|
|
12354
|
+
type: "global";
|
|
12355
|
+
name: string;
|
|
12356
|
+
function_type?: "preprocessor" | undefined;
|
|
12357
|
+
} | null | undefined;
|
|
12252
12358
|
origin?: {
|
|
12253
12359
|
project_id?: string | undefined;
|
|
12254
12360
|
prompt_id?: string | undefined;
|
|
@@ -12414,6 +12520,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
12414
12520
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
12415
12521
|
model?: string | undefined;
|
|
12416
12522
|
position?: string | undefined;
|
|
12523
|
+
endpoint_name?: string | null | undefined;
|
|
12417
12524
|
} | null | undefined;
|
|
12418
12525
|
prompt?: {
|
|
12419
12526
|
type: "chat";
|
|
@@ -12523,6 +12630,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
12523
12630
|
type: "completion";
|
|
12524
12631
|
content: string;
|
|
12525
12632
|
} | null | undefined;
|
|
12633
|
+
preprocessor?: {
|
|
12634
|
+
type: "function";
|
|
12635
|
+
id: string;
|
|
12636
|
+
version?: string | undefined;
|
|
12637
|
+
} | {
|
|
12638
|
+
type: "global";
|
|
12639
|
+
name: string;
|
|
12640
|
+
function_type: "preprocessor";
|
|
12641
|
+
} | null | undefined;
|
|
12526
12642
|
origin?: {
|
|
12527
12643
|
project_id?: string | undefined;
|
|
12528
12644
|
prompt_id?: string | undefined;
|
|
@@ -12685,6 +12801,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
12685
12801
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
12686
12802
|
model?: string | undefined;
|
|
12687
12803
|
position?: string | undefined;
|
|
12804
|
+
endpoint_name?: string | null | undefined;
|
|
12688
12805
|
} | null | undefined;
|
|
12689
12806
|
prompt?: {
|
|
12690
12807
|
type: "chat";
|
|
@@ -12794,6 +12911,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
12794
12911
|
type: "completion";
|
|
12795
12912
|
content: string;
|
|
12796
12913
|
} | null | undefined;
|
|
12914
|
+
preprocessor?: {
|
|
12915
|
+
type: "function";
|
|
12916
|
+
id: string;
|
|
12917
|
+
version?: string | undefined;
|
|
12918
|
+
} | {
|
|
12919
|
+
type: "global";
|
|
12920
|
+
name: string;
|
|
12921
|
+
function_type?: "preprocessor" | undefined;
|
|
12922
|
+
} | null | undefined;
|
|
12797
12923
|
origin?: {
|
|
12798
12924
|
project_id?: string | undefined;
|
|
12799
12925
|
prompt_id?: string | undefined;
|
|
@@ -13905,6 +14031,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
13905
14031
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
13906
14032
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
13907
14033
|
position: z.ZodOptional<z.ZodString>;
|
|
14034
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
13908
14035
|
}, "strip", z.ZodTypeAny, {
|
|
13909
14036
|
params?: z.objectOutputType<{
|
|
13910
14037
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -14025,6 +14152,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
14025
14152
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
14026
14153
|
model?: string | undefined;
|
|
14027
14154
|
position?: string | undefined;
|
|
14155
|
+
endpoint_name?: string | null | undefined;
|
|
14028
14156
|
}, {
|
|
14029
14157
|
params?: z.objectInputType<{
|
|
14030
14158
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -14145,6 +14273,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
14145
14273
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
14146
14274
|
model?: string | undefined;
|
|
14147
14275
|
position?: string | undefined;
|
|
14276
|
+
endpoint_name?: string | null | undefined;
|
|
14148
14277
|
}>, z.ZodNull]>>;
|
|
14149
14278
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
14150
14279
|
type: z.ZodLiteral<"llm_classifier">;
|
|
@@ -14168,6 +14297,31 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
14168
14297
|
allow_no_match?: boolean | undefined;
|
|
14169
14298
|
allow_skip?: boolean | undefined;
|
|
14170
14299
|
}>, z.ZodNull]>>;
|
|
14300
|
+
preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
14301
|
+
type: z.ZodLiteral<"function">;
|
|
14302
|
+
id: z.ZodString;
|
|
14303
|
+
version: z.ZodOptional<z.ZodString>;
|
|
14304
|
+
}, "strip", z.ZodTypeAny, {
|
|
14305
|
+
type: "function";
|
|
14306
|
+
id: string;
|
|
14307
|
+
version?: string | undefined;
|
|
14308
|
+
}, {
|
|
14309
|
+
type: "function";
|
|
14310
|
+
id: string;
|
|
14311
|
+
version?: string | undefined;
|
|
14312
|
+
}>, z.ZodObject<{
|
|
14313
|
+
type: z.ZodLiteral<"global">;
|
|
14314
|
+
name: z.ZodString;
|
|
14315
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
|
|
14316
|
+
}, "strip", z.ZodTypeAny, {
|
|
14317
|
+
type: "global";
|
|
14318
|
+
name: string;
|
|
14319
|
+
function_type: "preprocessor";
|
|
14320
|
+
}, {
|
|
14321
|
+
type: "global";
|
|
14322
|
+
name: string;
|
|
14323
|
+
function_type?: "preprocessor" | undefined;
|
|
14324
|
+
}>, z.ZodNull]>>;
|
|
14171
14325
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
14172
14326
|
type: z.ZodLiteral<"function">;
|
|
14173
14327
|
id: z.ZodString;
|
|
@@ -14359,6 +14513,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
14359
14513
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
14360
14514
|
model?: string | undefined;
|
|
14361
14515
|
position?: string | undefined;
|
|
14516
|
+
endpoint_name?: string | null | undefined;
|
|
14362
14517
|
} | null | undefined;
|
|
14363
14518
|
prompt?: {
|
|
14364
14519
|
type: "chat";
|
|
@@ -14468,6 +14623,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
14468
14623
|
type: "completion";
|
|
14469
14624
|
content: string;
|
|
14470
14625
|
} | null | undefined;
|
|
14626
|
+
preprocessor?: {
|
|
14627
|
+
type: "function";
|
|
14628
|
+
id: string;
|
|
14629
|
+
version?: string | undefined;
|
|
14630
|
+
} | {
|
|
14631
|
+
type: "global";
|
|
14632
|
+
name: string;
|
|
14633
|
+
function_type: "preprocessor";
|
|
14634
|
+
} | null | undefined;
|
|
14471
14635
|
origin?: {
|
|
14472
14636
|
project_id?: string | undefined;
|
|
14473
14637
|
prompt_id?: string | undefined;
|
|
@@ -14623,6 +14787,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
14623
14787
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
14624
14788
|
model?: string | undefined;
|
|
14625
14789
|
position?: string | undefined;
|
|
14790
|
+
endpoint_name?: string | null | undefined;
|
|
14626
14791
|
} | null | undefined;
|
|
14627
14792
|
prompt?: {
|
|
14628
14793
|
type: "chat";
|
|
@@ -14732,6 +14897,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
14732
14897
|
type: "completion";
|
|
14733
14898
|
content: string;
|
|
14734
14899
|
} | null | undefined;
|
|
14900
|
+
preprocessor?: {
|
|
14901
|
+
type: "function";
|
|
14902
|
+
id: string;
|
|
14903
|
+
version?: string | undefined;
|
|
14904
|
+
} | {
|
|
14905
|
+
type: "global";
|
|
14906
|
+
name: string;
|
|
14907
|
+
function_type?: "preprocessor" | undefined;
|
|
14908
|
+
} | null | undefined;
|
|
14735
14909
|
origin?: {
|
|
14736
14910
|
project_id?: string | undefined;
|
|
14737
14911
|
prompt_id?: string | undefined;
|
|
@@ -14892,6 +15066,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
14892
15066
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
14893
15067
|
model?: string | undefined;
|
|
14894
15068
|
position?: string | undefined;
|
|
15069
|
+
endpoint_name?: string | null | undefined;
|
|
14895
15070
|
} | null | undefined;
|
|
14896
15071
|
prompt?: {
|
|
14897
15072
|
type: "chat";
|
|
@@ -15001,6 +15176,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
15001
15176
|
type: "completion";
|
|
15002
15177
|
content: string;
|
|
15003
15178
|
} | null | undefined;
|
|
15179
|
+
preprocessor?: {
|
|
15180
|
+
type: "function";
|
|
15181
|
+
id: string;
|
|
15182
|
+
version?: string | undefined;
|
|
15183
|
+
} | {
|
|
15184
|
+
type: "global";
|
|
15185
|
+
name: string;
|
|
15186
|
+
function_type: "preprocessor";
|
|
15187
|
+
} | null | undefined;
|
|
15004
15188
|
origin?: {
|
|
15005
15189
|
project_id?: string | undefined;
|
|
15006
15190
|
prompt_id?: string | undefined;
|
|
@@ -15159,6 +15343,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
15159
15343
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
15160
15344
|
model?: string | undefined;
|
|
15161
15345
|
position?: string | undefined;
|
|
15346
|
+
endpoint_name?: string | null | undefined;
|
|
15162
15347
|
} | null | undefined;
|
|
15163
15348
|
prompt?: {
|
|
15164
15349
|
type: "chat";
|
|
@@ -15268,6 +15453,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
15268
15453
|
type: "completion";
|
|
15269
15454
|
content: string;
|
|
15270
15455
|
} | null | undefined;
|
|
15456
|
+
preprocessor?: {
|
|
15457
|
+
type: "function";
|
|
15458
|
+
id: string;
|
|
15459
|
+
version?: string | undefined;
|
|
15460
|
+
} | {
|
|
15461
|
+
type: "global";
|
|
15462
|
+
name: string;
|
|
15463
|
+
function_type?: "preprocessor" | undefined;
|
|
15464
|
+
} | null | undefined;
|
|
15271
15465
|
origin?: {
|
|
15272
15466
|
project_id?: string | undefined;
|
|
15273
15467
|
prompt_id?: string | undefined;
|
|
@@ -16427,6 +16621,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
16427
16621
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
16428
16622
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
16429
16623
|
position: z.ZodOptional<z.ZodString>;
|
|
16624
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
16430
16625
|
}, "strip", z.ZodTypeAny, {
|
|
16431
16626
|
params?: z.objectOutputType<{
|
|
16432
16627
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -16547,6 +16742,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
16547
16742
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
16548
16743
|
model?: string | undefined;
|
|
16549
16744
|
position?: string | undefined;
|
|
16745
|
+
endpoint_name?: string | null | undefined;
|
|
16550
16746
|
}, {
|
|
16551
16747
|
params?: z.objectInputType<{
|
|
16552
16748
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -16667,6 +16863,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
16667
16863
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
16668
16864
|
model?: string | undefined;
|
|
16669
16865
|
position?: string | undefined;
|
|
16866
|
+
endpoint_name?: string | null | undefined;
|
|
16670
16867
|
}>, z.ZodNull]>>;
|
|
16671
16868
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
16672
16869
|
type: z.ZodLiteral<"llm_classifier">;
|
|
@@ -16690,6 +16887,31 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
16690
16887
|
allow_no_match?: boolean | undefined;
|
|
16691
16888
|
allow_skip?: boolean | undefined;
|
|
16692
16889
|
}>, z.ZodNull]>>;
|
|
16890
|
+
preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
16891
|
+
type: z.ZodLiteral<"function">;
|
|
16892
|
+
id: z.ZodString;
|
|
16893
|
+
version: z.ZodOptional<z.ZodString>;
|
|
16894
|
+
}, "strip", z.ZodTypeAny, {
|
|
16895
|
+
type: "function";
|
|
16896
|
+
id: string;
|
|
16897
|
+
version?: string | undefined;
|
|
16898
|
+
}, {
|
|
16899
|
+
type: "function";
|
|
16900
|
+
id: string;
|
|
16901
|
+
version?: string | undefined;
|
|
16902
|
+
}>, z.ZodObject<{
|
|
16903
|
+
type: z.ZodLiteral<"global">;
|
|
16904
|
+
name: z.ZodString;
|
|
16905
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
|
|
16906
|
+
}, "strip", z.ZodTypeAny, {
|
|
16907
|
+
type: "global";
|
|
16908
|
+
name: string;
|
|
16909
|
+
function_type: "preprocessor";
|
|
16910
|
+
}, {
|
|
16911
|
+
type: "global";
|
|
16912
|
+
name: string;
|
|
16913
|
+
function_type?: "preprocessor" | undefined;
|
|
16914
|
+
}>, z.ZodNull]>>;
|
|
16693
16915
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
16694
16916
|
type: z.ZodLiteral<"function">;
|
|
16695
16917
|
id: z.ZodString;
|
|
@@ -16881,6 +17103,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
16881
17103
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
16882
17104
|
model?: string | undefined;
|
|
16883
17105
|
position?: string | undefined;
|
|
17106
|
+
endpoint_name?: string | null | undefined;
|
|
16884
17107
|
} | null | undefined;
|
|
16885
17108
|
prompt?: {
|
|
16886
17109
|
type: "chat";
|
|
@@ -16990,6 +17213,15 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
16990
17213
|
type: "completion";
|
|
16991
17214
|
content: string;
|
|
16992
17215
|
} | null | undefined;
|
|
17216
|
+
preprocessor?: {
|
|
17217
|
+
type: "function";
|
|
17218
|
+
id: string;
|
|
17219
|
+
version?: string | undefined;
|
|
17220
|
+
} | {
|
|
17221
|
+
type: "global";
|
|
17222
|
+
name: string;
|
|
17223
|
+
function_type: "preprocessor";
|
|
17224
|
+
} | null | undefined;
|
|
16993
17225
|
origin?: {
|
|
16994
17226
|
project_id?: string | undefined;
|
|
16995
17227
|
prompt_id?: string | undefined;
|
|
@@ -17145,6 +17377,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
17145
17377
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
17146
17378
|
model?: string | undefined;
|
|
17147
17379
|
position?: string | undefined;
|
|
17380
|
+
endpoint_name?: string | null | undefined;
|
|
17148
17381
|
} | null | undefined;
|
|
17149
17382
|
prompt?: {
|
|
17150
17383
|
type: "chat";
|
|
@@ -17254,6 +17487,15 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
17254
17487
|
type: "completion";
|
|
17255
17488
|
content: string;
|
|
17256
17489
|
} | null | undefined;
|
|
17490
|
+
preprocessor?: {
|
|
17491
|
+
type: "function";
|
|
17492
|
+
id: string;
|
|
17493
|
+
version?: string | undefined;
|
|
17494
|
+
} | {
|
|
17495
|
+
type: "global";
|
|
17496
|
+
name: string;
|
|
17497
|
+
function_type?: "preprocessor" | undefined;
|
|
17498
|
+
} | null | undefined;
|
|
17257
17499
|
origin?: {
|
|
17258
17500
|
project_id?: string | undefined;
|
|
17259
17501
|
prompt_id?: string | undefined;
|
|
@@ -17426,6 +17668,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
17426
17668
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
17427
17669
|
model?: string | undefined;
|
|
17428
17670
|
position?: string | undefined;
|
|
17671
|
+
endpoint_name?: string | null | undefined;
|
|
17429
17672
|
} | null | undefined;
|
|
17430
17673
|
prompt?: {
|
|
17431
17674
|
type: "chat";
|
|
@@ -17535,6 +17778,15 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
17535
17778
|
type: "completion";
|
|
17536
17779
|
content: string;
|
|
17537
17780
|
} | null | undefined;
|
|
17781
|
+
preprocessor?: {
|
|
17782
|
+
type: "function";
|
|
17783
|
+
id: string;
|
|
17784
|
+
version?: string | undefined;
|
|
17785
|
+
} | {
|
|
17786
|
+
type: "global";
|
|
17787
|
+
name: string;
|
|
17788
|
+
function_type: "preprocessor";
|
|
17789
|
+
} | null | undefined;
|
|
17538
17790
|
origin?: {
|
|
17539
17791
|
project_id?: string | undefined;
|
|
17540
17792
|
prompt_id?: string | undefined;
|
|
@@ -17704,6 +17956,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
17704
17956
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
17705
17957
|
model?: string | undefined;
|
|
17706
17958
|
position?: string | undefined;
|
|
17959
|
+
endpoint_name?: string | null | undefined;
|
|
17707
17960
|
} | null | undefined;
|
|
17708
17961
|
prompt?: {
|
|
17709
17962
|
type: "chat";
|
|
@@ -17813,6 +18066,15 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
17813
18066
|
type: "completion";
|
|
17814
18067
|
content: string;
|
|
17815
18068
|
} | null | undefined;
|
|
18069
|
+
preprocessor?: {
|
|
18070
|
+
type: "function";
|
|
18071
|
+
id: string;
|
|
18072
|
+
version?: string | undefined;
|
|
18073
|
+
} | {
|
|
18074
|
+
type: "global";
|
|
18075
|
+
name: string;
|
|
18076
|
+
function_type?: "preprocessor" | undefined;
|
|
18077
|
+
} | null | undefined;
|
|
17816
18078
|
origin?: {
|
|
17817
18079
|
project_id?: string | undefined;
|
|
17818
18080
|
prompt_id?: string | undefined;
|
|
@@ -18075,57 +18337,68 @@ declare const registerTemplatePlugin: (plugin: TemplateRendererPlugin) => void;
|
|
|
18075
18337
|
*/
|
|
18076
18338
|
declare const getTemplateRenderer: (name: string) => TemplateRenderer | undefined;
|
|
18077
18339
|
|
|
18078
|
-
interface
|
|
18079
|
-
caller_functionname: string;
|
|
18080
|
-
caller_filename: string;
|
|
18081
|
-
caller_lineno: number;
|
|
18082
|
-
}
|
|
18083
|
-
interface IsoAsyncLocalStorage<T> {
|
|
18340
|
+
interface GlobalHookAsyncLocalStorage<T> {
|
|
18084
18341
|
enterWith(store: T): void;
|
|
18085
18342
|
run<R>(store: T | undefined, callback: () => R): R;
|
|
18086
18343
|
getStore(): T | undefined;
|
|
18087
18344
|
}
|
|
18088
|
-
type
|
|
18089
|
-
type
|
|
18090
|
-
|
|
18091
|
-
* Channel interface matching the shared node:diagnostics_channel and dc-browser API.
|
|
18092
|
-
*/
|
|
18093
|
-
interface IsoChannel<M = any, N extends string | symbol = string> {
|
|
18345
|
+
type GlobalHookMessageFunction<M = any, N extends string | symbol = string> = (message: M, name: N) => void;
|
|
18346
|
+
type GlobalHookTransformFunction<M, S> = (message: M) => S;
|
|
18347
|
+
interface GlobalHookChannel<M = any, N extends string | symbol = string> {
|
|
18094
18348
|
readonly name: N;
|
|
18095
18349
|
readonly hasSubscribers: boolean;
|
|
18096
|
-
subscribe(subscription:
|
|
18097
|
-
unsubscribe(subscription:
|
|
18098
|
-
bindStore<T>(store:
|
|
18099
|
-
unbindStore<T>(store:
|
|
18350
|
+
subscribe(subscription: GlobalHookMessageFunction<M, N>): void;
|
|
18351
|
+
unsubscribe(subscription: GlobalHookMessageFunction<M, N>): boolean;
|
|
18352
|
+
bindStore<T>(store: GlobalHookAsyncLocalStorage<T>, transform?: GlobalHookTransformFunction<M, T>): void;
|
|
18353
|
+
unbindStore<T>(store: GlobalHookAsyncLocalStorage<T>): boolean;
|
|
18100
18354
|
publish(message: M): void;
|
|
18101
18355
|
runStores<F extends (...args: any[]) => any>(message: M, fn: F, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
|
|
18102
18356
|
}
|
|
18103
|
-
|
|
18104
|
-
|
|
18105
|
-
|
|
18106
|
-
|
|
18107
|
-
|
|
18108
|
-
readonly
|
|
18109
|
-
readonly end?: IsoChannel<M>;
|
|
18110
|
-
readonly asyncStart?: IsoChannel<M>;
|
|
18111
|
-
readonly asyncEnd?: IsoChannel<M>;
|
|
18112
|
-
readonly error?: IsoChannel<M>;
|
|
18357
|
+
interface GlobalTracingChannelCollection<M = any> {
|
|
18358
|
+
readonly start?: GlobalHookChannel<M>;
|
|
18359
|
+
readonly end?: GlobalHookChannel<M>;
|
|
18360
|
+
readonly asyncStart?: GlobalHookChannel<M>;
|
|
18361
|
+
readonly asyncEnd?: GlobalHookChannel<M>;
|
|
18362
|
+
readonly error?: GlobalHookChannel<M>;
|
|
18113
18363
|
}
|
|
18114
|
-
interface
|
|
18115
|
-
readonly hasSubscribers: boolean;
|
|
18116
|
-
subscribe(handlers: IsoChannelHandlers<M>): void;
|
|
18117
|
-
unsubscribe(handlers: IsoChannelHandlers<M>): boolean;
|
|
18118
|
-
traceSync<F extends (...args: any[]) => any>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
|
|
18119
|
-
tracePromise<F extends (...args: any[]) => PromiseLike<any>>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
|
|
18120
|
-
traceCallback<F extends (...args: any[]) => any>(fn: F, position?: number, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
|
|
18121
|
-
}
|
|
18122
|
-
interface IsoChannelHandlers<M = any> {
|
|
18364
|
+
interface GlobalHookHandlers<M = any> {
|
|
18123
18365
|
start?: (context: M, name: string) => void;
|
|
18124
18366
|
end?: (context: M, name: string) => void;
|
|
18125
18367
|
asyncStart?: (context: M, name: string) => void;
|
|
18126
18368
|
asyncEnd?: (context: M, name: string) => void;
|
|
18127
18369
|
error?: (context: M, name: string) => void;
|
|
18128
18370
|
}
|
|
18371
|
+
type GlobalInvocationTarget = (this: any, ...args: any[]) => any;
|
|
18372
|
+
type GlobalInvocationInterceptor<A = any> = (target: GlobalInvocationTarget, thisArg: any, args: any[], additional: A) => any;
|
|
18373
|
+
interface GlobalInvocationHook<A = any> {
|
|
18374
|
+
readonly hasInterceptors: boolean;
|
|
18375
|
+
intercept(interceptor: GlobalInvocationInterceptor<A>): () => void;
|
|
18376
|
+
invoke<F extends GlobalInvocationTarget>(target: F, thisArg: ThisParameterType<F>, args: Parameters<F>, additional: A): ReturnType<F>;
|
|
18377
|
+
}
|
|
18378
|
+
type GlobalTraceOperator = "traceCallback" | "tracePromise" | "traceSync";
|
|
18379
|
+
interface GlobalTracingChannel<M = any, A = any> extends GlobalTracingChannelCollection<M>, GlobalInvocationHook<A> {
|
|
18380
|
+
readonly start: GlobalHookChannel<M>;
|
|
18381
|
+
readonly end: GlobalHookChannel<M>;
|
|
18382
|
+
readonly asyncStart: GlobalHookChannel<M>;
|
|
18383
|
+
readonly asyncEnd: GlobalHookChannel<M>;
|
|
18384
|
+
readonly error: GlobalHookChannel<M>;
|
|
18385
|
+
readonly hasSubscribers: boolean;
|
|
18386
|
+
subscribe(handlers: GlobalHookHandlers<M>): void;
|
|
18387
|
+
unsubscribe(handlers: GlobalHookHandlers<M>): boolean;
|
|
18388
|
+
traceSync<F extends (...args: any[]) => any>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
|
|
18389
|
+
tracePromise<F extends (...args: any[]) => PromiseLike<any>>(fn: F, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
|
|
18390
|
+
traceCallback<F extends (...args: any[]) => any>(fn: F, position?: number, message?: M, thisArg?: ThisParameterType<F>, ...args: Parameters<F>): ReturnType<F>;
|
|
18391
|
+
traceInvocation<F extends GlobalInvocationTarget>(operator: GlobalTraceOperator, target: F, thisArg: ThisParameterType<F>, args: Parameters<F>, additional: A, callbackIndex?: number): ReturnType<F>;
|
|
18392
|
+
}
|
|
18393
|
+
|
|
18394
|
+
interface CallerLocation {
|
|
18395
|
+
caller_functionname: string;
|
|
18396
|
+
caller_filename: string;
|
|
18397
|
+
caller_lineno: number;
|
|
18398
|
+
}
|
|
18399
|
+
type IsoAsyncLocalStorage<T> = GlobalHookAsyncLocalStorage<T>;
|
|
18400
|
+
type IsoTracingChannelCollection<M = any> = GlobalTracingChannelCollection<M>;
|
|
18401
|
+
type IsoTracingChannel<M = any> = GlobalTracingChannel<M>;
|
|
18129
18402
|
interface Common {
|
|
18130
18403
|
buildType: "browser" | "browser-js" | "node" | "edge-light" | "workerd" | "unknown";
|
|
18131
18404
|
getRepoInfo: (settings?: GitMetadataSettingsType) => Promise<RepoInfoType | undefined>;
|
|
@@ -20468,9 +20741,13 @@ type SetCurrentArg = {
|
|
|
20468
20741
|
};
|
|
20469
20742
|
type StartSpanEventArgs = ExperimentLogPartialArgs & Partial<IdField>;
|
|
20470
20743
|
declare const INITIAL_SPAN_WRITE_AS_MERGE: unique symbol;
|
|
20744
|
+
declare const INTERNAL_SPAN_CONTEXT: unique symbol;
|
|
20471
20745
|
type InitialSpanWriteAsMergeArg = {
|
|
20472
20746
|
readonly [INITIAL_SPAN_WRITE_AS_MERGE]?: true;
|
|
20473
20747
|
};
|
|
20748
|
+
type InternalSpanContextArg = {
|
|
20749
|
+
readonly [INTERNAL_SPAN_CONTEXT]?: Record<string, unknown>;
|
|
20750
|
+
};
|
|
20474
20751
|
type StartSpanArgs = {
|
|
20475
20752
|
name?: string;
|
|
20476
20753
|
type?: SpanType;
|
|
@@ -20654,7 +20931,7 @@ declare const BRAINTRUST_CURRENT_SPAN_STORE: unique symbol;
|
|
|
20654
20931
|
* - Default (`BraintrustContextManager`): stores a `Span`
|
|
20655
20932
|
* - OTEL compat (`OtelContextManager`): stores an OTEL `Context` object
|
|
20656
20933
|
*
|
|
20657
|
-
*
|
|
20934
|
+
* The global hook's `bindStore` transform (via `wrapSpanForStore`) produces the
|
|
20658
20935
|
* correct value type for whichever mode is active.
|
|
20659
20936
|
*/
|
|
20660
20937
|
type CurrentSpanStore = IsoAsyncLocalStorage<unknown>;
|
|
@@ -20663,7 +20940,7 @@ declare abstract class ContextManager {
|
|
|
20663
20940
|
abstract runInContext<R>(span: Span, callback: () => R): R;
|
|
20664
20941
|
abstract getCurrentSpan(): Span | undefined;
|
|
20665
20942
|
/**
|
|
20666
|
-
* Returns the value to store in the ALS bound to a
|
|
20943
|
+
* Returns the value to store in the ALS bound to a global hook's start event.
|
|
20667
20944
|
* In default mode this is the Span itself; in OTEL mode it is the OTEL Context
|
|
20668
20945
|
* containing the span so that OTEL's own ALS stores a proper Context object.
|
|
20669
20946
|
*/
|
|
@@ -22203,7 +22480,7 @@ declare class SpanImpl implements Span {
|
|
|
22203
22480
|
defaultRootType?: SpanType;
|
|
22204
22481
|
spanId?: string;
|
|
22205
22482
|
propagatedState?: PropagatedState | undefined;
|
|
22206
|
-
} & Omit<StartSpanArgs, "parent"> & InitialSpanWriteAsMergeArg);
|
|
22483
|
+
} & Omit<StartSpanArgs, "parent"> & InitialSpanWriteAsMergeArg & InternalSpanContextArg);
|
|
22207
22484
|
getParentInfo(): {
|
|
22208
22485
|
objectType: SpanObjectTypeV3;
|
|
22209
22486
|
objectId: LazyValue<string>;
|
|
@@ -23306,167 +23583,11 @@ interface WrapAISDKOptions {
|
|
|
23306
23583
|
declare function wrapAISDK<T>(aiSDK: T, options?: WrapAISDKOptions): T;
|
|
23307
23584
|
declare const wrapAgentClass: (AgentClass: any, options?: WrapAISDKOptions) => any;
|
|
23308
23585
|
|
|
23309
|
-
/**
|
|
23310
|
-
* Narrow AI SDK v7 telemetry types used by Braintrust.
|
|
23311
|
-
*
|
|
23312
|
-
* These mirror only the callback fields Braintrust reads. The public AI SDK
|
|
23313
|
-
* `Telemetry` type is structural, so users do not need `ai` installed as a
|
|
23314
|
-
* direct dependency for this package to type-check.
|
|
23315
|
-
*/
|
|
23316
|
-
interface AISDKV7TelemetryOptions {
|
|
23317
|
-
recordInputs?: boolean;
|
|
23318
|
-
recordOutputs?: boolean;
|
|
23319
|
-
functionId?: string;
|
|
23320
|
-
}
|
|
23321
|
-
declare const BRAINTRUST_AI_SDK_V7_OPERATION_KEY: unique symbol;
|
|
23322
|
-
interface AISDKV7ModelInfo {
|
|
23323
|
-
provider?: string;
|
|
23324
|
-
modelId?: string;
|
|
23325
|
-
}
|
|
23326
|
-
interface AISDKV7OperationEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
|
|
23327
|
-
callId: string;
|
|
23328
|
-
operationId: string;
|
|
23329
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23330
|
-
[key: string]: unknown;
|
|
23331
|
-
}
|
|
23332
|
-
interface AISDKV7LanguageModelCallStartEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
|
|
23333
|
-
callId: string;
|
|
23334
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23335
|
-
[key: string]: unknown;
|
|
23336
|
-
}
|
|
23337
|
-
interface AISDKV7LanguageModelCallEndEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
|
|
23338
|
-
callId: string;
|
|
23339
|
-
content?: unknown;
|
|
23340
|
-
finishReason?: unknown;
|
|
23341
|
-
responseId?: string;
|
|
23342
|
-
usage?: unknown;
|
|
23343
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23344
|
-
[key: string]: unknown;
|
|
23345
|
-
}
|
|
23346
|
-
interface AISDKV7ObjectStepStartEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
|
|
23347
|
-
callId: string;
|
|
23348
|
-
promptMessages?: unknown;
|
|
23349
|
-
stepNumber?: number;
|
|
23350
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23351
|
-
[key: string]: unknown;
|
|
23352
|
-
}
|
|
23353
|
-
interface AISDKV7ObjectStepEndEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
|
|
23354
|
-
callId: string;
|
|
23355
|
-
finishReason?: unknown;
|
|
23356
|
-
objectText?: string;
|
|
23357
|
-
providerMetadata?: unknown;
|
|
23358
|
-
reasoning?: unknown;
|
|
23359
|
-
request?: unknown;
|
|
23360
|
-
response?: unknown;
|
|
23361
|
-
usage?: unknown;
|
|
23362
|
-
warnings?: unknown;
|
|
23363
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23364
|
-
[key: string]: unknown;
|
|
23365
|
-
}
|
|
23366
|
-
interface AISDKV7EmbedStartEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
|
|
23367
|
-
callId: string;
|
|
23368
|
-
embedCallId: string;
|
|
23369
|
-
operationId: string;
|
|
23370
|
-
values: unknown[];
|
|
23371
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23372
|
-
[key: string]: unknown;
|
|
23373
|
-
}
|
|
23374
|
-
interface AISDKV7EmbedEndEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
|
|
23375
|
-
callId: string;
|
|
23376
|
-
embedCallId: string;
|
|
23377
|
-
operationId: string;
|
|
23378
|
-
embeddings?: unknown[];
|
|
23379
|
-
usage?: unknown;
|
|
23380
|
-
values?: unknown[];
|
|
23381
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23382
|
-
[key: string]: unknown;
|
|
23383
|
-
}
|
|
23384
|
-
interface AISDKV7RerankStartEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
|
|
23385
|
-
callId: string;
|
|
23386
|
-
documents?: unknown[];
|
|
23387
|
-
query?: string;
|
|
23388
|
-
topN?: number;
|
|
23389
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23390
|
-
[key: string]: unknown;
|
|
23391
|
-
}
|
|
23392
|
-
interface AISDKV7RerankEndEvent extends AISDKV7TelemetryOptions, AISDKV7ModelInfo {
|
|
23393
|
-
callId: string;
|
|
23394
|
-
ranking?: Array<{
|
|
23395
|
-
index?: number;
|
|
23396
|
-
relevanceScore?: number;
|
|
23397
|
-
}>;
|
|
23398
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23399
|
-
[key: string]: unknown;
|
|
23400
|
-
}
|
|
23401
|
-
interface AISDKV7ToolCall {
|
|
23402
|
-
toolCallId?: string;
|
|
23403
|
-
toolName?: string;
|
|
23404
|
-
input?: unknown;
|
|
23405
|
-
[key: string]: unknown;
|
|
23406
|
-
}
|
|
23407
|
-
interface AISDKV7ToolExecutionStartEvent extends AISDKV7TelemetryOptions {
|
|
23408
|
-
callId?: string;
|
|
23409
|
-
toolCall: AISDKV7ToolCall;
|
|
23410
|
-
toolContext?: unknown;
|
|
23411
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23412
|
-
[key: string]: unknown;
|
|
23413
|
-
}
|
|
23414
|
-
interface AISDKV7ToolOutput {
|
|
23415
|
-
type?: "tool-result" | "tool-error" | string;
|
|
23416
|
-
output?: unknown;
|
|
23417
|
-
error?: unknown;
|
|
23418
|
-
[key: string]: unknown;
|
|
23419
|
-
}
|
|
23420
|
-
interface AISDKV7ToolExecutionEndEvent extends AISDKV7TelemetryOptions {
|
|
23421
|
-
callId?: string;
|
|
23422
|
-
durationMs?: number;
|
|
23423
|
-
error?: unknown;
|
|
23424
|
-
output?: unknown;
|
|
23425
|
-
success?: boolean;
|
|
23426
|
-
toolCall: AISDKV7ToolCall;
|
|
23427
|
-
toolOutput?: AISDKV7ToolOutput;
|
|
23428
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23429
|
-
[key: string]: unknown;
|
|
23430
|
-
}
|
|
23431
|
-
interface AISDKV7ChunkEvent {
|
|
23432
|
-
chunk?: {
|
|
23433
|
-
type?: string;
|
|
23434
|
-
callId?: string;
|
|
23435
|
-
[key: string]: unknown;
|
|
23436
|
-
};
|
|
23437
|
-
}
|
|
23438
|
-
interface AISDKV7Telemetry {
|
|
23439
|
-
onStart?: (event: AISDKV7OperationEvent) => void | PromiseLike<void>;
|
|
23440
|
-
onStepStart?: (event: unknown) => void | PromiseLike<void>;
|
|
23441
|
-
onLanguageModelCallStart?: (event: AISDKV7LanguageModelCallStartEvent) => void | PromiseLike<void>;
|
|
23442
|
-
onLanguageModelCallEnd?: (event: AISDKV7LanguageModelCallEndEvent) => void | PromiseLike<void>;
|
|
23443
|
-
onObjectStepStart?: (event: AISDKV7ObjectStepStartEvent) => void | PromiseLike<void>;
|
|
23444
|
-
onObjectStepEnd?: (event: AISDKV7ObjectStepEndEvent) => void | PromiseLike<void>;
|
|
23445
|
-
onEmbedStart?: (event: AISDKV7EmbedStartEvent) => void | PromiseLike<void>;
|
|
23446
|
-
onEmbedEnd?: (event: AISDKV7EmbedEndEvent) => void | PromiseLike<void>;
|
|
23447
|
-
onRerankStart?: (event: AISDKV7RerankStartEvent) => void | PromiseLike<void>;
|
|
23448
|
-
onRerankEnd?: (event: AISDKV7RerankEndEvent) => void | PromiseLike<void>;
|
|
23449
|
-
onToolExecutionStart?: (event: AISDKV7ToolExecutionStartEvent) => void | PromiseLike<void>;
|
|
23450
|
-
onToolExecutionEnd?: (event: AISDKV7ToolExecutionEndEvent) => void | PromiseLike<void>;
|
|
23451
|
-
onChunk?: (event: AISDKV7ChunkEvent) => void | PromiseLike<void>;
|
|
23452
|
-
onStepEnd?: (event: unknown) => void | PromiseLike<void>;
|
|
23453
|
-
onStepFinish?: (event: unknown) => void | PromiseLike<void>;
|
|
23454
|
-
onEnd?: (event: AISDKV7OperationEvent) => void | PromiseLike<void>;
|
|
23455
|
-
onAbort?: (event: unknown) => void | PromiseLike<void>;
|
|
23456
|
-
onError?: (event: unknown) => void | PromiseLike<void>;
|
|
23457
|
-
executeTool?: <T>(options: {
|
|
23458
|
-
callId: string;
|
|
23459
|
-
toolCallId: string;
|
|
23460
|
-
execute: () => PromiseLike<T>;
|
|
23461
|
-
[BRAINTRUST_AI_SDK_V7_OPERATION_KEY]?: string;
|
|
23462
|
-
}) => PromiseLike<T>;
|
|
23463
|
-
}
|
|
23464
|
-
|
|
23465
23586
|
/**
|
|
23466
23587
|
* Creates a Braintrust telemetry integration for AI SDK v7's
|
|
23467
23588
|
* `registerTelemetry()` API.
|
|
23468
23589
|
*/
|
|
23469
|
-
declare function braintrustAISDKTelemetry():
|
|
23590
|
+
declare function braintrustAISDKTelemetry(): any;
|
|
23470
23591
|
|
|
23471
23592
|
/**
|
|
23472
23593
|
* Wrap an ai-sdk model (created with `.chat()`, `.completion()`, etc.) to add tracing. If Braintrust is
|
|
@@ -23938,11 +24059,26 @@ declare function braintrustEveInstrumentation(options: {
|
|
|
23938
24059
|
setup?: EveInstrumentationDefinition["setup"];
|
|
23939
24060
|
}): EveInstrumentationDefinition;
|
|
23940
24061
|
|
|
24062
|
+
/**
|
|
24063
|
+
* Collect a stream returned by `anthropic.beta.sessions.events.stream()` or
|
|
24064
|
+
* `anthropic.beta.sessions.threads.events.stream()`.
|
|
24065
|
+
*
|
|
24066
|
+
* The stream method must be auto-instrumented or called through a client
|
|
24067
|
+
* wrapped with `wrapAnthropic()`. Calling this function opts the stream into
|
|
24068
|
+
* Braintrust span collection and returns the original stream unchanged.
|
|
24069
|
+
*
|
|
24070
|
+
* @param stream The resolved Anthropic Sessions event stream.
|
|
24071
|
+
* @returns The same stream object.
|
|
24072
|
+
*/
|
|
24073
|
+
declare function collectAnthropicSession<T extends object>(stream: T): T;
|
|
24074
|
+
|
|
23941
24075
|
/**
|
|
23942
24076
|
* Wrap an `Anthropic` object (created with `new Anthropic(...)`) so calls emit
|
|
23943
24077
|
* tracing-channel events that Braintrust plugins can consume.
|
|
23944
24078
|
*
|
|
23945
|
-
* Currently, this only supports the `v4` API.
|
|
24079
|
+
* Currently, this only supports the `v4` API. Sessions streams are eligible
|
|
24080
|
+
* for collection only after being passed to `collectAnthropicSession()`;
|
|
24081
|
+
* wrapping and consuming a Sessions stream alone does not emit spans.
|
|
23946
24082
|
*
|
|
23947
24083
|
* @param anthropic
|
|
23948
24084
|
* @returns The wrapped `Anthropic` object.
|
|
@@ -24081,6 +24217,20 @@ declare function wrapMastraAgent<T>(agent: T, _options?: {
|
|
|
24081
24217
|
*/
|
|
24082
24218
|
declare function wrapClaudeAgentSDK<T extends object>(sdk: T): T;
|
|
24083
24219
|
|
|
24220
|
+
/**
|
|
24221
|
+
* Adds Braintrust tracing to an `@cloudflare/think` module when build-time
|
|
24222
|
+
* auto-instrumentation is unavailable.
|
|
24223
|
+
*
|
|
24224
|
+
* @example
|
|
24225
|
+
* ```ts
|
|
24226
|
+
* import * as cloudflareThink from "@cloudflare/think";
|
|
24227
|
+
* import { wrapCloudflareThink } from "braintrust";
|
|
24228
|
+
*
|
|
24229
|
+
* const { Think } = wrapCloudflareThink(cloudflareThink);
|
|
24230
|
+
* ```
|
|
24231
|
+
*/
|
|
24232
|
+
declare function wrapCloudflareThink<T>(sdk: T): T;
|
|
24233
|
+
|
|
24084
24234
|
/**
|
|
24085
24235
|
* Wraps the OpenAI Codex TypeScript SDK with Braintrust tracing. The wrapper
|
|
24086
24236
|
* emits diagnostics-channel events; the OpenAI Codex plugin owns span lifecycle.
|
|
@@ -24095,16 +24245,33 @@ declare function wrapCursorSDK<T>(sdk: T): T;
|
|
|
24095
24245
|
|
|
24096
24246
|
/**
|
|
24097
24247
|
* Wraps the Pi Coding Agent SDK with Braintrust tracing. The wrapper emits
|
|
24098
|
-
*
|
|
24248
|
+
* instrumentation hook calls; the Pi Coding Agent plugin owns span lifecycle.
|
|
24099
24249
|
*/
|
|
24100
24250
|
declare function wrapPiCodingAgentSDK<T>(sdk: T): T;
|
|
24101
24251
|
|
|
24252
|
+
/**
|
|
24253
|
+
* Adds Braintrust tracing to a Cloudflare Agents base `Agent` class.
|
|
24254
|
+
*
|
|
24255
|
+
* The returned value is the same class, patched in place so existing Durable
|
|
24256
|
+
* Object exports and inheritance continue to work unchanged.
|
|
24257
|
+
*/
|
|
24258
|
+
declare function wrapCloudflareAgent<T>(Agent: T): T;
|
|
24259
|
+
|
|
24102
24260
|
/**
|
|
24103
24261
|
* Wraps the Strands Agent SDK with Braintrust tracing. The wrapper emits
|
|
24104
24262
|
* diagnostics-channel events; the Strands plugin owns span lifecycle.
|
|
24105
24263
|
*/
|
|
24106
24264
|
declare function wrapStrandsAgentSDK<T>(sdk: T): T;
|
|
24107
24265
|
|
|
24266
|
+
/**
|
|
24267
|
+
* Wraps the @cloudflare/ai-chat module with Braintrust tracing.
|
|
24268
|
+
*
|
|
24269
|
+
* Pass the module namespace (`import * as aiChat from "@cloudflare/ai-chat"`)
|
|
24270
|
+
* and subclass the wrapped AIChatAgent export. The wrapper emits the same
|
|
24271
|
+
* diagnostic-channel events as automatic instrumentation.
|
|
24272
|
+
*/
|
|
24273
|
+
declare function wrapCloudflareAIChat<T>(module: T): T;
|
|
24274
|
+
|
|
24108
24275
|
/**
|
|
24109
24276
|
* Wrap a Google GenAI module (imported with `import * as googleGenAI from '@google/genai'`) to add tracing.
|
|
24110
24277
|
* If Braintrust is not configured, nothing will be traced.
|
|
@@ -24306,6 +24473,32 @@ declare function wrapHuggingFace(huggingFace: HuggingFaceModule): HuggingFaceMod
|
|
|
24306
24473
|
declare function wrapHuggingFace(huggingFace: HuggingFaceClient): HuggingFaceClient;
|
|
24307
24474
|
declare function wrapHuggingFace<T>(huggingFace: T): T;
|
|
24308
24475
|
|
|
24476
|
+
interface HuggingFaceTransformersModel {
|
|
24477
|
+
config?: Record<string, unknown>;
|
|
24478
|
+
name?: string;
|
|
24479
|
+
}
|
|
24480
|
+
interface HuggingFaceTransformersPipeline {
|
|
24481
|
+
(...args: unknown[]): Promise<unknown>;
|
|
24482
|
+
task?: string;
|
|
24483
|
+
model?: HuggingFaceTransformersModel;
|
|
24484
|
+
tokenizer?: unknown;
|
|
24485
|
+
}
|
|
24486
|
+
interface HuggingFaceTransformersPipelineConstructor {
|
|
24487
|
+
new (...args: unknown[]): HuggingFaceTransformersPipeline;
|
|
24488
|
+
}
|
|
24489
|
+
interface HuggingFaceTransformersModule {
|
|
24490
|
+
pipeline?: (task: string, model?: string | null, options?: Record<string, unknown>) => Promise<HuggingFaceTransformersPipeline>;
|
|
24491
|
+
TextGenerationPipeline?: HuggingFaceTransformersPipelineConstructor;
|
|
24492
|
+
Text2TextGenerationPipeline?: HuggingFaceTransformersPipelineConstructor;
|
|
24493
|
+
SummarizationPipeline?: HuggingFaceTransformersPipelineConstructor;
|
|
24494
|
+
FeatureExtractionPipeline?: HuggingFaceTransformersPipelineConstructor;
|
|
24495
|
+
QuestionAnsweringPipeline?: HuggingFaceTransformersPipelineConstructor;
|
|
24496
|
+
}
|
|
24497
|
+
|
|
24498
|
+
declare function wrapHuggingFaceTransformers(transformers: HuggingFaceTransformersModule): HuggingFaceTransformersModule;
|
|
24499
|
+
declare function wrapHuggingFaceTransformers(transformers: HuggingFaceTransformersPipeline): HuggingFaceTransformersPipeline;
|
|
24500
|
+
declare function wrapHuggingFaceTransformers<T>(transformers: T): T;
|
|
24501
|
+
|
|
24309
24502
|
/**
|
|
24310
24503
|
* Wrap an @openrouter/agent OpenRouter client so callModel() emits
|
|
24311
24504
|
* diagnostics-channel events consumed by the OpenRouter Agent plugin.
|
|
@@ -24323,6 +24516,12 @@ declare function wrapOpenRouter<T>(openrouter: T): T;
|
|
|
24323
24516
|
*/
|
|
24324
24517
|
declare function wrapMistral<T>(mistral: T): T;
|
|
24325
24518
|
|
|
24519
|
+
/**
|
|
24520
|
+
* Wrap an Ollama client so generation and embedding calls emit Braintrust
|
|
24521
|
+
* diagnostics-channel events.
|
|
24522
|
+
*/
|
|
24523
|
+
declare function wrapOllama<T>(ollama: T): T;
|
|
24524
|
+
|
|
24326
24525
|
/**
|
|
24327
24526
|
* Wrap a Cohere client so method calls emit diagnostics-channel events that
|
|
24328
24527
|
* Braintrust plugins can consume.
|
|
@@ -29462,6 +29661,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
29462
29661
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
29463
29662
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
29464
29663
|
position: z.ZodOptional<z.ZodString>;
|
|
29664
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
29465
29665
|
}, "strip", z.ZodTypeAny, {
|
|
29466
29666
|
params?: z.objectOutputType<{
|
|
29467
29667
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -29582,6 +29782,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
29582
29782
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
29583
29783
|
model?: string | undefined;
|
|
29584
29784
|
position?: string | undefined;
|
|
29785
|
+
endpoint_name?: string | null | undefined;
|
|
29585
29786
|
}, {
|
|
29586
29787
|
params?: z.objectInputType<{
|
|
29587
29788
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -29702,6 +29903,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
29702
29903
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
29703
29904
|
model?: string | undefined;
|
|
29704
29905
|
position?: string | undefined;
|
|
29906
|
+
endpoint_name?: string | null | undefined;
|
|
29705
29907
|
}>, z.ZodNull]>>;
|
|
29706
29908
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
29707
29909
|
type: z.ZodLiteral<"llm_classifier">;
|
|
@@ -29725,6 +29927,31 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
29725
29927
|
allow_no_match?: boolean | undefined;
|
|
29726
29928
|
allow_skip?: boolean | undefined;
|
|
29727
29929
|
}>, z.ZodNull]>>;
|
|
29930
|
+
preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
29931
|
+
type: z.ZodLiteral<"function">;
|
|
29932
|
+
id: z.ZodString;
|
|
29933
|
+
version: z.ZodOptional<z.ZodString>;
|
|
29934
|
+
}, "strip", z.ZodTypeAny, {
|
|
29935
|
+
type: "function";
|
|
29936
|
+
id: string;
|
|
29937
|
+
version?: string | undefined;
|
|
29938
|
+
}, {
|
|
29939
|
+
type: "function";
|
|
29940
|
+
id: string;
|
|
29941
|
+
version?: string | undefined;
|
|
29942
|
+
}>, z.ZodObject<{
|
|
29943
|
+
type: z.ZodLiteral<"global">;
|
|
29944
|
+
name: z.ZodString;
|
|
29945
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
|
|
29946
|
+
}, "strip", z.ZodTypeAny, {
|
|
29947
|
+
type: "global";
|
|
29948
|
+
name: string;
|
|
29949
|
+
function_type: "preprocessor";
|
|
29950
|
+
}, {
|
|
29951
|
+
type: "global";
|
|
29952
|
+
name: string;
|
|
29953
|
+
function_type?: "preprocessor" | undefined;
|
|
29954
|
+
}>, z.ZodNull]>>;
|
|
29728
29955
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
29729
29956
|
type: z.ZodLiteral<"function">;
|
|
29730
29957
|
id: z.ZodString;
|
|
@@ -29916,6 +30143,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
29916
30143
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
29917
30144
|
model?: string | undefined;
|
|
29918
30145
|
position?: string | undefined;
|
|
30146
|
+
endpoint_name?: string | null | undefined;
|
|
29919
30147
|
} | null | undefined;
|
|
29920
30148
|
prompt?: {
|
|
29921
30149
|
type: "chat";
|
|
@@ -30025,6 +30253,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
30025
30253
|
type: "completion";
|
|
30026
30254
|
content: string;
|
|
30027
30255
|
} | null | undefined;
|
|
30256
|
+
preprocessor?: {
|
|
30257
|
+
type: "function";
|
|
30258
|
+
id: string;
|
|
30259
|
+
version?: string | undefined;
|
|
30260
|
+
} | {
|
|
30261
|
+
type: "global";
|
|
30262
|
+
name: string;
|
|
30263
|
+
function_type: "preprocessor";
|
|
30264
|
+
} | null | undefined;
|
|
30028
30265
|
origin?: {
|
|
30029
30266
|
project_id?: string | undefined;
|
|
30030
30267
|
prompt_id?: string | undefined;
|
|
@@ -30180,6 +30417,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
30180
30417
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
30181
30418
|
model?: string | undefined;
|
|
30182
30419
|
position?: string | undefined;
|
|
30420
|
+
endpoint_name?: string | null | undefined;
|
|
30183
30421
|
} | null | undefined;
|
|
30184
30422
|
prompt?: {
|
|
30185
30423
|
type: "chat";
|
|
@@ -30289,6 +30527,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
30289
30527
|
type: "completion";
|
|
30290
30528
|
content: string;
|
|
30291
30529
|
} | null | undefined;
|
|
30530
|
+
preprocessor?: {
|
|
30531
|
+
type: "function";
|
|
30532
|
+
id: string;
|
|
30533
|
+
version?: string | undefined;
|
|
30534
|
+
} | {
|
|
30535
|
+
type: "global";
|
|
30536
|
+
name: string;
|
|
30537
|
+
function_type?: "preprocessor" | undefined;
|
|
30538
|
+
} | null | undefined;
|
|
30292
30539
|
origin?: {
|
|
30293
30540
|
project_id?: string | undefined;
|
|
30294
30541
|
prompt_id?: string | undefined;
|
|
@@ -30449,6 +30696,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
30449
30696
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
30450
30697
|
model?: string | undefined;
|
|
30451
30698
|
position?: string | undefined;
|
|
30699
|
+
endpoint_name?: string | null | undefined;
|
|
30452
30700
|
} | null | undefined;
|
|
30453
30701
|
prompt?: {
|
|
30454
30702
|
type: "chat";
|
|
@@ -30558,6 +30806,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
30558
30806
|
type: "completion";
|
|
30559
30807
|
content: string;
|
|
30560
30808
|
} | null | undefined;
|
|
30809
|
+
preprocessor?: {
|
|
30810
|
+
type: "function";
|
|
30811
|
+
id: string;
|
|
30812
|
+
version?: string | undefined;
|
|
30813
|
+
} | {
|
|
30814
|
+
type: "global";
|
|
30815
|
+
name: string;
|
|
30816
|
+
function_type: "preprocessor";
|
|
30817
|
+
} | null | undefined;
|
|
30561
30818
|
origin?: {
|
|
30562
30819
|
project_id?: string | undefined;
|
|
30563
30820
|
prompt_id?: string | undefined;
|
|
@@ -30717,6 +30974,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
30717
30974
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
30718
30975
|
model?: string | undefined;
|
|
30719
30976
|
position?: string | undefined;
|
|
30977
|
+
endpoint_name?: string | null | undefined;
|
|
30720
30978
|
} | null | undefined;
|
|
30721
30979
|
prompt?: {
|
|
30722
30980
|
type: "chat";
|
|
@@ -30826,6 +31084,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
30826
31084
|
type: "completion";
|
|
30827
31085
|
content: string;
|
|
30828
31086
|
} | null | undefined;
|
|
31087
|
+
preprocessor?: {
|
|
31088
|
+
type: "function";
|
|
31089
|
+
id: string;
|
|
31090
|
+
version?: string | undefined;
|
|
31091
|
+
} | {
|
|
31092
|
+
type: "global";
|
|
31093
|
+
name: string;
|
|
31094
|
+
function_type?: "preprocessor" | undefined;
|
|
31095
|
+
} | null | undefined;
|
|
30829
31096
|
origin?: {
|
|
30830
31097
|
project_id?: string | undefined;
|
|
30831
31098
|
prompt_id?: string | undefined;
|
|
@@ -32057,6 +32324,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
32057
32324
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
32058
32325
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
32059
32326
|
position: z.ZodOptional<z.ZodString>;
|
|
32327
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
32060
32328
|
}, "strip", z.ZodTypeAny, {
|
|
32061
32329
|
params?: z.objectOutputType<{
|
|
32062
32330
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -32177,6 +32445,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
32177
32445
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
32178
32446
|
model?: string | undefined;
|
|
32179
32447
|
position?: string | undefined;
|
|
32448
|
+
endpoint_name?: string | null | undefined;
|
|
32180
32449
|
}, {
|
|
32181
32450
|
params?: z.objectInputType<{
|
|
32182
32451
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -32297,6 +32566,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
32297
32566
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
32298
32567
|
model?: string | undefined;
|
|
32299
32568
|
position?: string | undefined;
|
|
32569
|
+
endpoint_name?: string | null | undefined;
|
|
32300
32570
|
}>, z.ZodNull]>>;
|
|
32301
32571
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
32302
32572
|
type: z.ZodLiteral<"llm_classifier">;
|
|
@@ -32320,6 +32590,31 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
32320
32590
|
allow_no_match?: boolean | undefined;
|
|
32321
32591
|
allow_skip?: boolean | undefined;
|
|
32322
32592
|
}>, z.ZodNull]>>;
|
|
32593
|
+
preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
32594
|
+
type: z.ZodLiteral<"function">;
|
|
32595
|
+
id: z.ZodString;
|
|
32596
|
+
version: z.ZodOptional<z.ZodString>;
|
|
32597
|
+
}, "strip", z.ZodTypeAny, {
|
|
32598
|
+
type: "function";
|
|
32599
|
+
id: string;
|
|
32600
|
+
version?: string | undefined;
|
|
32601
|
+
}, {
|
|
32602
|
+
type: "function";
|
|
32603
|
+
id: string;
|
|
32604
|
+
version?: string | undefined;
|
|
32605
|
+
}>, z.ZodObject<{
|
|
32606
|
+
type: z.ZodLiteral<"global">;
|
|
32607
|
+
name: z.ZodString;
|
|
32608
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
|
|
32609
|
+
}, "strip", z.ZodTypeAny, {
|
|
32610
|
+
type: "global";
|
|
32611
|
+
name: string;
|
|
32612
|
+
function_type: "preprocessor";
|
|
32613
|
+
}, {
|
|
32614
|
+
type: "global";
|
|
32615
|
+
name: string;
|
|
32616
|
+
function_type?: "preprocessor" | undefined;
|
|
32617
|
+
}>, z.ZodNull]>>;
|
|
32323
32618
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
32324
32619
|
type: z.ZodLiteral<"function">;
|
|
32325
32620
|
id: z.ZodString;
|
|
@@ -32511,6 +32806,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
32511
32806
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
32512
32807
|
model?: string | undefined;
|
|
32513
32808
|
position?: string | undefined;
|
|
32809
|
+
endpoint_name?: string | null | undefined;
|
|
32514
32810
|
} | null | undefined;
|
|
32515
32811
|
prompt?: {
|
|
32516
32812
|
type: "chat";
|
|
@@ -32620,6 +32916,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
32620
32916
|
type: "completion";
|
|
32621
32917
|
content: string;
|
|
32622
32918
|
} | null | undefined;
|
|
32919
|
+
preprocessor?: {
|
|
32920
|
+
type: "function";
|
|
32921
|
+
id: string;
|
|
32922
|
+
version?: string | undefined;
|
|
32923
|
+
} | {
|
|
32924
|
+
type: "global";
|
|
32925
|
+
name: string;
|
|
32926
|
+
function_type: "preprocessor";
|
|
32927
|
+
} | null | undefined;
|
|
32623
32928
|
origin?: {
|
|
32624
32929
|
project_id?: string | undefined;
|
|
32625
32930
|
prompt_id?: string | undefined;
|
|
@@ -32775,6 +33080,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
32775
33080
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
32776
33081
|
model?: string | undefined;
|
|
32777
33082
|
position?: string | undefined;
|
|
33083
|
+
endpoint_name?: string | null | undefined;
|
|
32778
33084
|
} | null | undefined;
|
|
32779
33085
|
prompt?: {
|
|
32780
33086
|
type: "chat";
|
|
@@ -32884,6 +33190,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
32884
33190
|
type: "completion";
|
|
32885
33191
|
content: string;
|
|
32886
33192
|
} | null | undefined;
|
|
33193
|
+
preprocessor?: {
|
|
33194
|
+
type: "function";
|
|
33195
|
+
id: string;
|
|
33196
|
+
version?: string | undefined;
|
|
33197
|
+
} | {
|
|
33198
|
+
type: "global";
|
|
33199
|
+
name: string;
|
|
33200
|
+
function_type?: "preprocessor" | undefined;
|
|
33201
|
+
} | null | undefined;
|
|
32887
33202
|
origin?: {
|
|
32888
33203
|
project_id?: string | undefined;
|
|
32889
33204
|
prompt_id?: string | undefined;
|
|
@@ -33044,6 +33359,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
33044
33359
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
33045
33360
|
model?: string | undefined;
|
|
33046
33361
|
position?: string | undefined;
|
|
33362
|
+
endpoint_name?: string | null | undefined;
|
|
33047
33363
|
} | null | undefined;
|
|
33048
33364
|
prompt?: {
|
|
33049
33365
|
type: "chat";
|
|
@@ -33153,6 +33469,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
33153
33469
|
type: "completion";
|
|
33154
33470
|
content: string;
|
|
33155
33471
|
} | null | undefined;
|
|
33472
|
+
preprocessor?: {
|
|
33473
|
+
type: "function";
|
|
33474
|
+
id: string;
|
|
33475
|
+
version?: string | undefined;
|
|
33476
|
+
} | {
|
|
33477
|
+
type: "global";
|
|
33478
|
+
name: string;
|
|
33479
|
+
function_type: "preprocessor";
|
|
33480
|
+
} | null | undefined;
|
|
33156
33481
|
origin?: {
|
|
33157
33482
|
project_id?: string | undefined;
|
|
33158
33483
|
prompt_id?: string | undefined;
|
|
@@ -33312,6 +33637,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
33312
33637
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
33313
33638
|
model?: string | undefined;
|
|
33314
33639
|
position?: string | undefined;
|
|
33640
|
+
endpoint_name?: string | null | undefined;
|
|
33315
33641
|
} | null | undefined;
|
|
33316
33642
|
prompt?: {
|
|
33317
33643
|
type: "chat";
|
|
@@ -33421,6 +33747,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
33421
33747
|
type: "completion";
|
|
33422
33748
|
content: string;
|
|
33423
33749
|
} | null | undefined;
|
|
33750
|
+
preprocessor?: {
|
|
33751
|
+
type: "function";
|
|
33752
|
+
id: string;
|
|
33753
|
+
version?: string | undefined;
|
|
33754
|
+
} | {
|
|
33755
|
+
type: "global";
|
|
33756
|
+
name: string;
|
|
33757
|
+
function_type?: "preprocessor" | undefined;
|
|
33758
|
+
} | null | undefined;
|
|
33424
33759
|
origin?: {
|
|
33425
33760
|
project_id?: string | undefined;
|
|
33426
33761
|
prompt_id?: string | undefined;
|
|
@@ -33611,6 +33946,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
33611
33946
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
33612
33947
|
model?: string | undefined;
|
|
33613
33948
|
position?: string | undefined;
|
|
33949
|
+
endpoint_name?: string | null | undefined;
|
|
33614
33950
|
} | null | undefined;
|
|
33615
33951
|
prompt?: {
|
|
33616
33952
|
type: "chat";
|
|
@@ -33720,6 +34056,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
33720
34056
|
type: "completion";
|
|
33721
34057
|
content: string;
|
|
33722
34058
|
} | null | undefined;
|
|
34059
|
+
preprocessor?: {
|
|
34060
|
+
type: "function";
|
|
34061
|
+
id: string;
|
|
34062
|
+
version?: string | undefined;
|
|
34063
|
+
} | {
|
|
34064
|
+
type: "global";
|
|
34065
|
+
name: string;
|
|
34066
|
+
function_type: "preprocessor";
|
|
34067
|
+
} | null | undefined;
|
|
33723
34068
|
origin?: {
|
|
33724
34069
|
project_id?: string | undefined;
|
|
33725
34070
|
prompt_id?: string | undefined;
|
|
@@ -33892,6 +34237,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
33892
34237
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
33893
34238
|
model?: string | undefined;
|
|
33894
34239
|
position?: string | undefined;
|
|
34240
|
+
endpoint_name?: string | null | undefined;
|
|
33895
34241
|
} | null | undefined;
|
|
33896
34242
|
prompt?: {
|
|
33897
34243
|
type: "chat";
|
|
@@ -34001,6 +34347,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
34001
34347
|
type: "completion";
|
|
34002
34348
|
content: string;
|
|
34003
34349
|
} | null | undefined;
|
|
34350
|
+
preprocessor?: {
|
|
34351
|
+
type: "function";
|
|
34352
|
+
id: string;
|
|
34353
|
+
version?: string | undefined;
|
|
34354
|
+
} | {
|
|
34355
|
+
type: "global";
|
|
34356
|
+
name: string;
|
|
34357
|
+
function_type?: "preprocessor" | undefined;
|
|
34358
|
+
} | null | undefined;
|
|
34004
34359
|
origin?: {
|
|
34005
34360
|
project_id?: string | undefined;
|
|
34006
34361
|
prompt_id?: string | undefined;
|
|
@@ -35124,6 +35479,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
35124
35479
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
35125
35480
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
35126
35481
|
position: z.ZodOptional<z.ZodString>;
|
|
35482
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
35127
35483
|
}, "strip", z.ZodTypeAny, {
|
|
35128
35484
|
params?: z.objectOutputType<{
|
|
35129
35485
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -35244,6 +35600,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
35244
35600
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
35245
35601
|
model?: string | undefined;
|
|
35246
35602
|
position?: string | undefined;
|
|
35603
|
+
endpoint_name?: string | null | undefined;
|
|
35247
35604
|
}, {
|
|
35248
35605
|
params?: z.objectInputType<{
|
|
35249
35606
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -35364,6 +35721,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
35364
35721
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
35365
35722
|
model?: string | undefined;
|
|
35366
35723
|
position?: string | undefined;
|
|
35724
|
+
endpoint_name?: string | null | undefined;
|
|
35367
35725
|
}>, z.ZodNull]>>;
|
|
35368
35726
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
35369
35727
|
type: z.ZodLiteral<"llm_classifier">;
|
|
@@ -35387,6 +35745,31 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
35387
35745
|
allow_no_match?: boolean | undefined;
|
|
35388
35746
|
allow_skip?: boolean | undefined;
|
|
35389
35747
|
}>, z.ZodNull]>>;
|
|
35748
|
+
preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
35749
|
+
type: z.ZodLiteral<"function">;
|
|
35750
|
+
id: z.ZodString;
|
|
35751
|
+
version: z.ZodOptional<z.ZodString>;
|
|
35752
|
+
}, "strip", z.ZodTypeAny, {
|
|
35753
|
+
type: "function";
|
|
35754
|
+
id: string;
|
|
35755
|
+
version?: string | undefined;
|
|
35756
|
+
}, {
|
|
35757
|
+
type: "function";
|
|
35758
|
+
id: string;
|
|
35759
|
+
version?: string | undefined;
|
|
35760
|
+
}>, z.ZodObject<{
|
|
35761
|
+
type: z.ZodLiteral<"global">;
|
|
35762
|
+
name: z.ZodString;
|
|
35763
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
|
|
35764
|
+
}, "strip", z.ZodTypeAny, {
|
|
35765
|
+
type: "global";
|
|
35766
|
+
name: string;
|
|
35767
|
+
function_type: "preprocessor";
|
|
35768
|
+
}, {
|
|
35769
|
+
type: "global";
|
|
35770
|
+
name: string;
|
|
35771
|
+
function_type?: "preprocessor" | undefined;
|
|
35772
|
+
}>, z.ZodNull]>>;
|
|
35390
35773
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
35391
35774
|
type: z.ZodLiteral<"function">;
|
|
35392
35775
|
id: z.ZodString;
|
|
@@ -35578,6 +35961,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
35578
35961
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
35579
35962
|
model?: string | undefined;
|
|
35580
35963
|
position?: string | undefined;
|
|
35964
|
+
endpoint_name?: string | null | undefined;
|
|
35581
35965
|
} | null | undefined;
|
|
35582
35966
|
prompt?: {
|
|
35583
35967
|
type: "chat";
|
|
@@ -35687,6 +36071,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
35687
36071
|
type: "completion";
|
|
35688
36072
|
content: string;
|
|
35689
36073
|
} | null | undefined;
|
|
36074
|
+
preprocessor?: {
|
|
36075
|
+
type: "function";
|
|
36076
|
+
id: string;
|
|
36077
|
+
version?: string | undefined;
|
|
36078
|
+
} | {
|
|
36079
|
+
type: "global";
|
|
36080
|
+
name: string;
|
|
36081
|
+
function_type: "preprocessor";
|
|
36082
|
+
} | null | undefined;
|
|
35690
36083
|
origin?: {
|
|
35691
36084
|
project_id?: string | undefined;
|
|
35692
36085
|
prompt_id?: string | undefined;
|
|
@@ -35842,6 +36235,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
35842
36235
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
35843
36236
|
model?: string | undefined;
|
|
35844
36237
|
position?: string | undefined;
|
|
36238
|
+
endpoint_name?: string | null | undefined;
|
|
35845
36239
|
} | null | undefined;
|
|
35846
36240
|
prompt?: {
|
|
35847
36241
|
type: "chat";
|
|
@@ -35951,6 +36345,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
35951
36345
|
type: "completion";
|
|
35952
36346
|
content: string;
|
|
35953
36347
|
} | null | undefined;
|
|
36348
|
+
preprocessor?: {
|
|
36349
|
+
type: "function";
|
|
36350
|
+
id: string;
|
|
36351
|
+
version?: string | undefined;
|
|
36352
|
+
} | {
|
|
36353
|
+
type: "global";
|
|
36354
|
+
name: string;
|
|
36355
|
+
function_type?: "preprocessor" | undefined;
|
|
36356
|
+
} | null | undefined;
|
|
35954
36357
|
origin?: {
|
|
35955
36358
|
project_id?: string | undefined;
|
|
35956
36359
|
prompt_id?: string | undefined;
|
|
@@ -36111,6 +36514,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
36111
36514
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
36112
36515
|
model?: string | undefined;
|
|
36113
36516
|
position?: string | undefined;
|
|
36517
|
+
endpoint_name?: string | null | undefined;
|
|
36114
36518
|
} | null | undefined;
|
|
36115
36519
|
prompt?: {
|
|
36116
36520
|
type: "chat";
|
|
@@ -36220,6 +36624,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
36220
36624
|
type: "completion";
|
|
36221
36625
|
content: string;
|
|
36222
36626
|
} | null | undefined;
|
|
36627
|
+
preprocessor?: {
|
|
36628
|
+
type: "function";
|
|
36629
|
+
id: string;
|
|
36630
|
+
version?: string | undefined;
|
|
36631
|
+
} | {
|
|
36632
|
+
type: "global";
|
|
36633
|
+
name: string;
|
|
36634
|
+
function_type: "preprocessor";
|
|
36635
|
+
} | null | undefined;
|
|
36223
36636
|
origin?: {
|
|
36224
36637
|
project_id?: string | undefined;
|
|
36225
36638
|
prompt_id?: string | undefined;
|
|
@@ -36379,6 +36792,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
36379
36792
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
36380
36793
|
model?: string | undefined;
|
|
36381
36794
|
position?: string | undefined;
|
|
36795
|
+
endpoint_name?: string | null | undefined;
|
|
36382
36796
|
} | null | undefined;
|
|
36383
36797
|
prompt?: {
|
|
36384
36798
|
type: "chat";
|
|
@@ -36488,6 +36902,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
36488
36902
|
type: "completion";
|
|
36489
36903
|
content: string;
|
|
36490
36904
|
} | null | undefined;
|
|
36905
|
+
preprocessor?: {
|
|
36906
|
+
type: "function";
|
|
36907
|
+
id: string;
|
|
36908
|
+
version?: string | undefined;
|
|
36909
|
+
} | {
|
|
36910
|
+
type: "global";
|
|
36911
|
+
name: string;
|
|
36912
|
+
function_type?: "preprocessor" | undefined;
|
|
36913
|
+
} | null | undefined;
|
|
36491
36914
|
origin?: {
|
|
36492
36915
|
project_id?: string | undefined;
|
|
36493
36916
|
prompt_id?: string | undefined;
|
|
@@ -36690,6 +37113,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
36690
37113
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
36691
37114
|
model?: string | undefined;
|
|
36692
37115
|
position?: string | undefined;
|
|
37116
|
+
endpoint_name?: string | null | undefined;
|
|
36693
37117
|
} | null | undefined;
|
|
36694
37118
|
prompt?: {
|
|
36695
37119
|
type: "chat";
|
|
@@ -36799,6 +37223,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
36799
37223
|
type: "completion";
|
|
36800
37224
|
content: string;
|
|
36801
37225
|
} | null | undefined;
|
|
37226
|
+
preprocessor?: {
|
|
37227
|
+
type: "function";
|
|
37228
|
+
id: string;
|
|
37229
|
+
version?: string | undefined;
|
|
37230
|
+
} | {
|
|
37231
|
+
type: "global";
|
|
37232
|
+
name: string;
|
|
37233
|
+
function_type: "preprocessor";
|
|
37234
|
+
} | null | undefined;
|
|
36802
37235
|
origin?: {
|
|
36803
37236
|
project_id?: string | undefined;
|
|
36804
37237
|
prompt_id?: string | undefined;
|
|
@@ -36984,6 +37417,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
36984
37417
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
36985
37418
|
model?: string | undefined;
|
|
36986
37419
|
position?: string | undefined;
|
|
37420
|
+
endpoint_name?: string | null | undefined;
|
|
36987
37421
|
} | null | undefined;
|
|
36988
37422
|
prompt?: {
|
|
36989
37423
|
type: "chat";
|
|
@@ -37093,6 +37527,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
37093
37527
|
type: "completion";
|
|
37094
37528
|
content: string;
|
|
37095
37529
|
} | null | undefined;
|
|
37530
|
+
preprocessor?: {
|
|
37531
|
+
type: "function";
|
|
37532
|
+
id: string;
|
|
37533
|
+
version?: string | undefined;
|
|
37534
|
+
} | {
|
|
37535
|
+
type: "global";
|
|
37536
|
+
name: string;
|
|
37537
|
+
function_type: "preprocessor";
|
|
37538
|
+
} | null | undefined;
|
|
37096
37539
|
origin?: {
|
|
37097
37540
|
project_id?: string | undefined;
|
|
37098
37541
|
prompt_id?: string | undefined;
|
|
@@ -37271,6 +37714,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
37271
37714
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
37272
37715
|
model?: string | undefined;
|
|
37273
37716
|
position?: string | undefined;
|
|
37717
|
+
endpoint_name?: string | null | undefined;
|
|
37274
37718
|
} | null | undefined;
|
|
37275
37719
|
prompt?: {
|
|
37276
37720
|
type: "chat";
|
|
@@ -37380,6 +37824,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
37380
37824
|
type: "completion";
|
|
37381
37825
|
content: string;
|
|
37382
37826
|
} | null | undefined;
|
|
37827
|
+
preprocessor?: {
|
|
37828
|
+
type: "function";
|
|
37829
|
+
id: string;
|
|
37830
|
+
version?: string | undefined;
|
|
37831
|
+
} | {
|
|
37832
|
+
type: "global";
|
|
37833
|
+
name: string;
|
|
37834
|
+
function_type?: "preprocessor" | undefined;
|
|
37835
|
+
} | null | undefined;
|
|
37383
37836
|
origin?: {
|
|
37384
37837
|
project_id?: string | undefined;
|
|
37385
37838
|
prompt_id?: string | undefined;
|
|
@@ -37565,6 +38018,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
37565
38018
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
37566
38019
|
model?: string | undefined;
|
|
37567
38020
|
position?: string | undefined;
|
|
38021
|
+
endpoint_name?: string | null | undefined;
|
|
37568
38022
|
} | null | undefined;
|
|
37569
38023
|
prompt?: {
|
|
37570
38024
|
type: "chat";
|
|
@@ -37674,6 +38128,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
37674
38128
|
type: "completion";
|
|
37675
38129
|
content: string;
|
|
37676
38130
|
} | null | undefined;
|
|
38131
|
+
preprocessor?: {
|
|
38132
|
+
type: "function";
|
|
38133
|
+
id: string;
|
|
38134
|
+
version?: string | undefined;
|
|
38135
|
+
} | {
|
|
38136
|
+
type: "global";
|
|
38137
|
+
name: string;
|
|
38138
|
+
function_type?: "preprocessor" | undefined;
|
|
38139
|
+
} | null | undefined;
|
|
37677
38140
|
origin?: {
|
|
37678
38141
|
project_id?: string | undefined;
|
|
37679
38142
|
prompt_id?: string | undefined;
|
|
@@ -38876,6 +39339,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
38876
39339
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
38877
39340
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
38878
39341
|
position: z.ZodOptional<z.ZodString>;
|
|
39342
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
38879
39343
|
}, "strip", z.ZodTypeAny, {
|
|
38880
39344
|
params?: z.objectOutputType<{
|
|
38881
39345
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -38996,6 +39460,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
38996
39460
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
38997
39461
|
model?: string | undefined;
|
|
38998
39462
|
position?: string | undefined;
|
|
39463
|
+
endpoint_name?: string | null | undefined;
|
|
38999
39464
|
}, {
|
|
39000
39465
|
params?: z.objectInputType<{
|
|
39001
39466
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -39116,6 +39581,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
39116
39581
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
39117
39582
|
model?: string | undefined;
|
|
39118
39583
|
position?: string | undefined;
|
|
39584
|
+
endpoint_name?: string | null | undefined;
|
|
39119
39585
|
}>, z.ZodNull]>>;
|
|
39120
39586
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
39121
39587
|
type: z.ZodLiteral<"llm_classifier">;
|
|
@@ -39139,6 +39605,31 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
39139
39605
|
allow_no_match?: boolean | undefined;
|
|
39140
39606
|
allow_skip?: boolean | undefined;
|
|
39141
39607
|
}>, z.ZodNull]>>;
|
|
39608
|
+
preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
39609
|
+
type: z.ZodLiteral<"function">;
|
|
39610
|
+
id: z.ZodString;
|
|
39611
|
+
version: z.ZodOptional<z.ZodString>;
|
|
39612
|
+
}, "strip", z.ZodTypeAny, {
|
|
39613
|
+
type: "function";
|
|
39614
|
+
id: string;
|
|
39615
|
+
version?: string | undefined;
|
|
39616
|
+
}, {
|
|
39617
|
+
type: "function";
|
|
39618
|
+
id: string;
|
|
39619
|
+
version?: string | undefined;
|
|
39620
|
+
}>, z.ZodObject<{
|
|
39621
|
+
type: z.ZodLiteral<"global">;
|
|
39622
|
+
name: z.ZodString;
|
|
39623
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
|
|
39624
|
+
}, "strip", z.ZodTypeAny, {
|
|
39625
|
+
type: "global";
|
|
39626
|
+
name: string;
|
|
39627
|
+
function_type: "preprocessor";
|
|
39628
|
+
}, {
|
|
39629
|
+
type: "global";
|
|
39630
|
+
name: string;
|
|
39631
|
+
function_type?: "preprocessor" | undefined;
|
|
39632
|
+
}>, z.ZodNull]>>;
|
|
39142
39633
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
39143
39634
|
type: z.ZodLiteral<"function">;
|
|
39144
39635
|
id: z.ZodString;
|
|
@@ -39330,6 +39821,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
39330
39821
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
39331
39822
|
model?: string | undefined;
|
|
39332
39823
|
position?: string | undefined;
|
|
39824
|
+
endpoint_name?: string | null | undefined;
|
|
39333
39825
|
} | null | undefined;
|
|
39334
39826
|
prompt?: {
|
|
39335
39827
|
type: "chat";
|
|
@@ -39439,6 +39931,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
39439
39931
|
type: "completion";
|
|
39440
39932
|
content: string;
|
|
39441
39933
|
} | null | undefined;
|
|
39934
|
+
preprocessor?: {
|
|
39935
|
+
type: "function";
|
|
39936
|
+
id: string;
|
|
39937
|
+
version?: string | undefined;
|
|
39938
|
+
} | {
|
|
39939
|
+
type: "global";
|
|
39940
|
+
name: string;
|
|
39941
|
+
function_type: "preprocessor";
|
|
39942
|
+
} | null | undefined;
|
|
39442
39943
|
origin?: {
|
|
39443
39944
|
project_id?: string | undefined;
|
|
39444
39945
|
prompt_id?: string | undefined;
|
|
@@ -39594,6 +40095,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
39594
40095
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
39595
40096
|
model?: string | undefined;
|
|
39596
40097
|
position?: string | undefined;
|
|
40098
|
+
endpoint_name?: string | null | undefined;
|
|
39597
40099
|
} | null | undefined;
|
|
39598
40100
|
prompt?: {
|
|
39599
40101
|
type: "chat";
|
|
@@ -39703,6 +40205,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
39703
40205
|
type: "completion";
|
|
39704
40206
|
content: string;
|
|
39705
40207
|
} | null | undefined;
|
|
40208
|
+
preprocessor?: {
|
|
40209
|
+
type: "function";
|
|
40210
|
+
id: string;
|
|
40211
|
+
version?: string | undefined;
|
|
40212
|
+
} | {
|
|
40213
|
+
type: "global";
|
|
40214
|
+
name: string;
|
|
40215
|
+
function_type?: "preprocessor" | undefined;
|
|
40216
|
+
} | null | undefined;
|
|
39706
40217
|
origin?: {
|
|
39707
40218
|
project_id?: string | undefined;
|
|
39708
40219
|
prompt_id?: string | undefined;
|
|
@@ -39863,6 +40374,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
39863
40374
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
39864
40375
|
model?: string | undefined;
|
|
39865
40376
|
position?: string | undefined;
|
|
40377
|
+
endpoint_name?: string | null | undefined;
|
|
39866
40378
|
} | null | undefined;
|
|
39867
40379
|
prompt?: {
|
|
39868
40380
|
type: "chat";
|
|
@@ -39972,6 +40484,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
39972
40484
|
type: "completion";
|
|
39973
40485
|
content: string;
|
|
39974
40486
|
} | null | undefined;
|
|
40487
|
+
preprocessor?: {
|
|
40488
|
+
type: "function";
|
|
40489
|
+
id: string;
|
|
40490
|
+
version?: string | undefined;
|
|
40491
|
+
} | {
|
|
40492
|
+
type: "global";
|
|
40493
|
+
name: string;
|
|
40494
|
+
function_type: "preprocessor";
|
|
40495
|
+
} | null | undefined;
|
|
39975
40496
|
origin?: {
|
|
39976
40497
|
project_id?: string | undefined;
|
|
39977
40498
|
prompt_id?: string | undefined;
|
|
@@ -40131,6 +40652,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
40131
40652
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
40132
40653
|
model?: string | undefined;
|
|
40133
40654
|
position?: string | undefined;
|
|
40655
|
+
endpoint_name?: string | null | undefined;
|
|
40134
40656
|
} | null | undefined;
|
|
40135
40657
|
prompt?: {
|
|
40136
40658
|
type: "chat";
|
|
@@ -40240,6 +40762,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
40240
40762
|
type: "completion";
|
|
40241
40763
|
content: string;
|
|
40242
40764
|
} | null | undefined;
|
|
40765
|
+
preprocessor?: {
|
|
40766
|
+
type: "function";
|
|
40767
|
+
id: string;
|
|
40768
|
+
version?: string | undefined;
|
|
40769
|
+
} | {
|
|
40770
|
+
type: "global";
|
|
40771
|
+
name: string;
|
|
40772
|
+
function_type?: "preprocessor" | undefined;
|
|
40773
|
+
} | null | undefined;
|
|
40243
40774
|
origin?: {
|
|
40244
40775
|
project_id?: string | undefined;
|
|
40245
40776
|
prompt_id?: string | undefined;
|
|
@@ -40430,6 +40961,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
40430
40961
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
40431
40962
|
model?: string | undefined;
|
|
40432
40963
|
position?: string | undefined;
|
|
40964
|
+
endpoint_name?: string | null | undefined;
|
|
40433
40965
|
} | null | undefined;
|
|
40434
40966
|
prompt?: {
|
|
40435
40967
|
type: "chat";
|
|
@@ -40539,6 +41071,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
40539
41071
|
type: "completion";
|
|
40540
41072
|
content: string;
|
|
40541
41073
|
} | null | undefined;
|
|
41074
|
+
preprocessor?: {
|
|
41075
|
+
type: "function";
|
|
41076
|
+
id: string;
|
|
41077
|
+
version?: string | undefined;
|
|
41078
|
+
} | {
|
|
41079
|
+
type: "global";
|
|
41080
|
+
name: string;
|
|
41081
|
+
function_type: "preprocessor";
|
|
41082
|
+
} | null | undefined;
|
|
40542
41083
|
origin?: {
|
|
40543
41084
|
project_id?: string | undefined;
|
|
40544
41085
|
prompt_id?: string | undefined;
|
|
@@ -40711,6 +41252,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
40711
41252
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
40712
41253
|
model?: string | undefined;
|
|
40713
41254
|
position?: string | undefined;
|
|
41255
|
+
endpoint_name?: string | null | undefined;
|
|
40714
41256
|
} | null | undefined;
|
|
40715
41257
|
prompt?: {
|
|
40716
41258
|
type: "chat";
|
|
@@ -40820,6 +41362,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
40820
41362
|
type: "completion";
|
|
40821
41363
|
content: string;
|
|
40822
41364
|
} | null | undefined;
|
|
41365
|
+
preprocessor?: {
|
|
41366
|
+
type: "function";
|
|
41367
|
+
id: string;
|
|
41368
|
+
version?: string | undefined;
|
|
41369
|
+
} | {
|
|
41370
|
+
type: "global";
|
|
41371
|
+
name: string;
|
|
41372
|
+
function_type?: "preprocessor" | undefined;
|
|
41373
|
+
} | null | undefined;
|
|
40823
41374
|
origin?: {
|
|
40824
41375
|
project_id?: string | undefined;
|
|
40825
41376
|
prompt_id?: string | undefined;
|
|
@@ -41943,6 +42494,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
41943
42494
|
reasoning_budget: z.ZodOptional<z.ZodNumber>;
|
|
41944
42495
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
41945
42496
|
position: z.ZodOptional<z.ZodString>;
|
|
42497
|
+
endpoint_name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
41946
42498
|
}, "strip", z.ZodTypeAny, {
|
|
41947
42499
|
params?: z.objectOutputType<{
|
|
41948
42500
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -42063,6 +42615,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
42063
42615
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
42064
42616
|
model?: string | undefined;
|
|
42065
42617
|
position?: string | undefined;
|
|
42618
|
+
endpoint_name?: string | null | undefined;
|
|
42066
42619
|
}, {
|
|
42067
42620
|
params?: z.objectInputType<{
|
|
42068
42621
|
use_cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -42183,6 +42736,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
42183
42736
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
42184
42737
|
model?: string | undefined;
|
|
42185
42738
|
position?: string | undefined;
|
|
42739
|
+
endpoint_name?: string | null | undefined;
|
|
42186
42740
|
}>, z.ZodNull]>>;
|
|
42187
42741
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
42188
42742
|
type: z.ZodLiteral<"llm_classifier">;
|
|
@@ -42206,6 +42760,31 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
42206
42760
|
allow_no_match?: boolean | undefined;
|
|
42207
42761
|
allow_skip?: boolean | undefined;
|
|
42208
42762
|
}>, z.ZodNull]>>;
|
|
42763
|
+
preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
42764
|
+
type: z.ZodLiteral<"function">;
|
|
42765
|
+
id: z.ZodString;
|
|
42766
|
+
version: z.ZodOptional<z.ZodString>;
|
|
42767
|
+
}, "strip", z.ZodTypeAny, {
|
|
42768
|
+
type: "function";
|
|
42769
|
+
id: string;
|
|
42770
|
+
version?: string | undefined;
|
|
42771
|
+
}, {
|
|
42772
|
+
type: "function";
|
|
42773
|
+
id: string;
|
|
42774
|
+
version?: string | undefined;
|
|
42775
|
+
}>, z.ZodObject<{
|
|
42776
|
+
type: z.ZodLiteral<"global">;
|
|
42777
|
+
name: z.ZodString;
|
|
42778
|
+
function_type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"preprocessor">>>;
|
|
42779
|
+
}, "strip", z.ZodTypeAny, {
|
|
42780
|
+
type: "global";
|
|
42781
|
+
name: string;
|
|
42782
|
+
function_type: "preprocessor";
|
|
42783
|
+
}, {
|
|
42784
|
+
type: "global";
|
|
42785
|
+
name: string;
|
|
42786
|
+
function_type?: "preprocessor" | undefined;
|
|
42787
|
+
}>, z.ZodNull]>>;
|
|
42209
42788
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
42210
42789
|
type: z.ZodLiteral<"function">;
|
|
42211
42790
|
id: z.ZodString;
|
|
@@ -42397,6 +42976,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
42397
42976
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
42398
42977
|
model?: string | undefined;
|
|
42399
42978
|
position?: string | undefined;
|
|
42979
|
+
endpoint_name?: string | null | undefined;
|
|
42400
42980
|
} | null | undefined;
|
|
42401
42981
|
prompt?: {
|
|
42402
42982
|
type: "chat";
|
|
@@ -42506,6 +43086,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
42506
43086
|
type: "completion";
|
|
42507
43087
|
content: string;
|
|
42508
43088
|
} | null | undefined;
|
|
43089
|
+
preprocessor?: {
|
|
43090
|
+
type: "function";
|
|
43091
|
+
id: string;
|
|
43092
|
+
version?: string | undefined;
|
|
43093
|
+
} | {
|
|
43094
|
+
type: "global";
|
|
43095
|
+
name: string;
|
|
43096
|
+
function_type: "preprocessor";
|
|
43097
|
+
} | null | undefined;
|
|
42509
43098
|
origin?: {
|
|
42510
43099
|
project_id?: string | undefined;
|
|
42511
43100
|
prompt_id?: string | undefined;
|
|
@@ -42661,6 +43250,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
42661
43250
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
42662
43251
|
model?: string | undefined;
|
|
42663
43252
|
position?: string | undefined;
|
|
43253
|
+
endpoint_name?: string | null | undefined;
|
|
42664
43254
|
} | null | undefined;
|
|
42665
43255
|
prompt?: {
|
|
42666
43256
|
type: "chat";
|
|
@@ -42770,6 +43360,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
42770
43360
|
type: "completion";
|
|
42771
43361
|
content: string;
|
|
42772
43362
|
} | null | undefined;
|
|
43363
|
+
preprocessor?: {
|
|
43364
|
+
type: "function";
|
|
43365
|
+
id: string;
|
|
43366
|
+
version?: string | undefined;
|
|
43367
|
+
} | {
|
|
43368
|
+
type: "global";
|
|
43369
|
+
name: string;
|
|
43370
|
+
function_type?: "preprocessor" | undefined;
|
|
43371
|
+
} | null | undefined;
|
|
42773
43372
|
origin?: {
|
|
42774
43373
|
project_id?: string | undefined;
|
|
42775
43374
|
prompt_id?: string | undefined;
|
|
@@ -42930,6 +43529,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
42930
43529
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
42931
43530
|
model?: string | undefined;
|
|
42932
43531
|
position?: string | undefined;
|
|
43532
|
+
endpoint_name?: string | null | undefined;
|
|
42933
43533
|
} | null | undefined;
|
|
42934
43534
|
prompt?: {
|
|
42935
43535
|
type: "chat";
|
|
@@ -43039,6 +43639,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
43039
43639
|
type: "completion";
|
|
43040
43640
|
content: string;
|
|
43041
43641
|
} | null | undefined;
|
|
43642
|
+
preprocessor?: {
|
|
43643
|
+
type: "function";
|
|
43644
|
+
id: string;
|
|
43645
|
+
version?: string | undefined;
|
|
43646
|
+
} | {
|
|
43647
|
+
type: "global";
|
|
43648
|
+
name: string;
|
|
43649
|
+
function_type: "preprocessor";
|
|
43650
|
+
} | null | undefined;
|
|
43042
43651
|
origin?: {
|
|
43043
43652
|
project_id?: string | undefined;
|
|
43044
43653
|
prompt_id?: string | undefined;
|
|
@@ -43198,6 +43807,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
43198
43807
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
43199
43808
|
model?: string | undefined;
|
|
43200
43809
|
position?: string | undefined;
|
|
43810
|
+
endpoint_name?: string | null | undefined;
|
|
43201
43811
|
} | null | undefined;
|
|
43202
43812
|
prompt?: {
|
|
43203
43813
|
type: "chat";
|
|
@@ -43307,6 +43917,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
43307
43917
|
type: "completion";
|
|
43308
43918
|
content: string;
|
|
43309
43919
|
} | null | undefined;
|
|
43920
|
+
preprocessor?: {
|
|
43921
|
+
type: "function";
|
|
43922
|
+
id: string;
|
|
43923
|
+
version?: string | undefined;
|
|
43924
|
+
} | {
|
|
43925
|
+
type: "global";
|
|
43926
|
+
name: string;
|
|
43927
|
+
function_type?: "preprocessor" | undefined;
|
|
43928
|
+
} | null | undefined;
|
|
43310
43929
|
origin?: {
|
|
43311
43930
|
project_id?: string | undefined;
|
|
43312
43931
|
prompt_id?: string | undefined;
|
|
@@ -43509,6 +44128,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
43509
44128
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
43510
44129
|
model?: string | undefined;
|
|
43511
44130
|
position?: string | undefined;
|
|
44131
|
+
endpoint_name?: string | null | undefined;
|
|
43512
44132
|
} | null | undefined;
|
|
43513
44133
|
prompt?: {
|
|
43514
44134
|
type: "chat";
|
|
@@ -43618,6 +44238,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
43618
44238
|
type: "completion";
|
|
43619
44239
|
content: string;
|
|
43620
44240
|
} | null | undefined;
|
|
44241
|
+
preprocessor?: {
|
|
44242
|
+
type: "function";
|
|
44243
|
+
id: string;
|
|
44244
|
+
version?: string | undefined;
|
|
44245
|
+
} | {
|
|
44246
|
+
type: "global";
|
|
44247
|
+
name: string;
|
|
44248
|
+
function_type: "preprocessor";
|
|
44249
|
+
} | null | undefined;
|
|
43621
44250
|
origin?: {
|
|
43622
44251
|
project_id?: string | undefined;
|
|
43623
44252
|
prompt_id?: string | undefined;
|
|
@@ -43803,6 +44432,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
43803
44432
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
43804
44433
|
model?: string | undefined;
|
|
43805
44434
|
position?: string | undefined;
|
|
44435
|
+
endpoint_name?: string | null | undefined;
|
|
43806
44436
|
} | null | undefined;
|
|
43807
44437
|
prompt?: {
|
|
43808
44438
|
type: "chat";
|
|
@@ -43912,6 +44542,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
43912
44542
|
type: "completion";
|
|
43913
44543
|
content: string;
|
|
43914
44544
|
} | null | undefined;
|
|
44545
|
+
preprocessor?: {
|
|
44546
|
+
type: "function";
|
|
44547
|
+
id: string;
|
|
44548
|
+
version?: string | undefined;
|
|
44549
|
+
} | {
|
|
44550
|
+
type: "global";
|
|
44551
|
+
name: string;
|
|
44552
|
+
function_type: "preprocessor";
|
|
44553
|
+
} | null | undefined;
|
|
43915
44554
|
origin?: {
|
|
43916
44555
|
project_id?: string | undefined;
|
|
43917
44556
|
prompt_id?: string | undefined;
|
|
@@ -44090,6 +44729,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
44090
44729
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
44091
44730
|
model?: string | undefined;
|
|
44092
44731
|
position?: string | undefined;
|
|
44732
|
+
endpoint_name?: string | null | undefined;
|
|
44093
44733
|
} | null | undefined;
|
|
44094
44734
|
prompt?: {
|
|
44095
44735
|
type: "chat";
|
|
@@ -44199,6 +44839,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
44199
44839
|
type: "completion";
|
|
44200
44840
|
content: string;
|
|
44201
44841
|
} | null | undefined;
|
|
44842
|
+
preprocessor?: {
|
|
44843
|
+
type: "function";
|
|
44844
|
+
id: string;
|
|
44845
|
+
version?: string | undefined;
|
|
44846
|
+
} | {
|
|
44847
|
+
type: "global";
|
|
44848
|
+
name: string;
|
|
44849
|
+
function_type?: "preprocessor" | undefined;
|
|
44850
|
+
} | null | undefined;
|
|
44202
44851
|
origin?: {
|
|
44203
44852
|
project_id?: string | undefined;
|
|
44204
44853
|
prompt_id?: string | undefined;
|
|
@@ -44384,6 +45033,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
44384
45033
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
44385
45034
|
model?: string | undefined;
|
|
44386
45035
|
position?: string | undefined;
|
|
45036
|
+
endpoint_name?: string | null | undefined;
|
|
44387
45037
|
} | null | undefined;
|
|
44388
45038
|
prompt?: {
|
|
44389
45039
|
type: "chat";
|
|
@@ -44493,6 +45143,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
44493
45143
|
type: "completion";
|
|
44494
45144
|
content: string;
|
|
44495
45145
|
} | null | undefined;
|
|
45146
|
+
preprocessor?: {
|
|
45147
|
+
type: "function";
|
|
45148
|
+
id: string;
|
|
45149
|
+
version?: string | undefined;
|
|
45150
|
+
} | {
|
|
45151
|
+
type: "global";
|
|
45152
|
+
name: string;
|
|
45153
|
+
function_type?: "preprocessor" | undefined;
|
|
45154
|
+
} | null | undefined;
|
|
44496
45155
|
origin?: {
|
|
44497
45156
|
project_id?: string | undefined;
|
|
44498
45157
|
prompt_id?: string | undefined;
|
|
@@ -45397,6 +46056,8 @@ interface InstrumentationIntegrationsConfig {
|
|
|
45397
46056
|
googleADK?: boolean;
|
|
45398
46057
|
huggingface?: boolean;
|
|
45399
46058
|
claudeAgentSDK?: boolean;
|
|
46059
|
+
cloudflareAIChat?: boolean;
|
|
46060
|
+
cloudflareThink?: boolean;
|
|
45400
46061
|
cursor?: boolean;
|
|
45401
46062
|
cursorSDK?: boolean;
|
|
45402
46063
|
flue?: boolean;
|
|
@@ -45405,6 +46066,7 @@ interface InstrumentationIntegrationsConfig {
|
|
|
45405
46066
|
openrouter?: boolean;
|
|
45406
46067
|
openrouterAgent?: boolean;
|
|
45407
46068
|
mistral?: boolean;
|
|
46069
|
+
ollama?: boolean;
|
|
45408
46070
|
cohere?: boolean;
|
|
45409
46071
|
groq?: boolean;
|
|
45410
46072
|
bedrock?: boolean;
|
|
@@ -45415,6 +46077,7 @@ interface InstrumentationIntegrationsConfig {
|
|
|
45415
46077
|
openaiCodexSDK?: boolean;
|
|
45416
46078
|
piCodingAgent?: boolean;
|
|
45417
46079
|
strandsAgentSDK?: boolean;
|
|
46080
|
+
cloudflareAgents?: boolean;
|
|
45418
46081
|
langchain?: boolean;
|
|
45419
46082
|
langgraph?: boolean;
|
|
45420
46083
|
langsmith?: boolean;
|
|
@@ -45458,6 +46121,9 @@ type FlueExecutionOperation = {
|
|
|
45458
46121
|
} | {
|
|
45459
46122
|
type: "task";
|
|
45460
46123
|
taskId: string;
|
|
46124
|
+
} | {
|
|
46125
|
+
type: "coordinator";
|
|
46126
|
+
phase: "reconcile";
|
|
45461
46127
|
};
|
|
45462
46128
|
interface FlueTraceCarrier {
|
|
45463
46129
|
traceparent: string;
|
|
@@ -45739,6 +46405,7 @@ declare const exports$1_braintrustFlueInstrumentation: typeof braintrustFlueInst
|
|
|
45739
46405
|
declare const exports$1_braintrustFlueObserver: typeof braintrustFlueObserver;
|
|
45740
46406
|
declare const exports$1_braintrustStreamChunkSchema: typeof braintrustStreamChunkSchema;
|
|
45741
46407
|
declare const exports$1_buildLocalSummary: typeof buildLocalSummary;
|
|
46408
|
+
declare const exports$1_collectAnthropicSession: typeof collectAnthropicSession;
|
|
45742
46409
|
declare const exports$1_configureInstrumentation: typeof configureInstrumentation;
|
|
45743
46410
|
declare const exports$1_constructLogs3OverflowRequest: typeof constructLogs3OverflowRequest;
|
|
45744
46411
|
declare const exports$1_createFinalValuePassThroughStream: typeof createFinalValuePassThroughStream;
|
|
@@ -45814,6 +46481,9 @@ declare const exports$1_wrapAgentClass: typeof wrapAgentClass;
|
|
|
45814
46481
|
declare const exports$1_wrapAnthropic: typeof wrapAnthropic;
|
|
45815
46482
|
declare const exports$1_wrapBedrockRuntime: typeof wrapBedrockRuntime;
|
|
45816
46483
|
declare const exports$1_wrapClaudeAgentSDK: typeof wrapClaudeAgentSDK;
|
|
46484
|
+
declare const exports$1_wrapCloudflareAIChat: typeof wrapCloudflareAIChat;
|
|
46485
|
+
declare const exports$1_wrapCloudflareAgent: typeof wrapCloudflareAgent;
|
|
46486
|
+
declare const exports$1_wrapCloudflareThink: typeof wrapCloudflareThink;
|
|
45817
46487
|
declare const exports$1_wrapCohere: typeof wrapCohere;
|
|
45818
46488
|
declare const exports$1_wrapCopilotClient: typeof wrapCopilotClient;
|
|
45819
46489
|
declare const exports$1_wrapCursorSDK: typeof wrapCursorSDK;
|
|
@@ -45822,11 +46492,13 @@ declare const exports$1_wrapGoogleADK: typeof wrapGoogleADK;
|
|
|
45822
46492
|
declare const exports$1_wrapGoogleGenAI: typeof wrapGoogleGenAI;
|
|
45823
46493
|
declare const exports$1_wrapGroq: typeof wrapGroq;
|
|
45824
46494
|
declare const exports$1_wrapHuggingFace: typeof wrapHuggingFace;
|
|
46495
|
+
declare const exports$1_wrapHuggingFaceTransformers: typeof wrapHuggingFaceTransformers;
|
|
45825
46496
|
declare const exports$1_wrapLangSmithClient: typeof wrapLangSmithClient;
|
|
45826
46497
|
declare const exports$1_wrapLangSmithRunTrees: typeof wrapLangSmithRunTrees;
|
|
45827
46498
|
declare const exports$1_wrapLangSmithTraceable: typeof wrapLangSmithTraceable;
|
|
45828
46499
|
declare const exports$1_wrapMastraAgent: typeof wrapMastraAgent;
|
|
45829
46500
|
declare const exports$1_wrapMistral: typeof wrapMistral;
|
|
46501
|
+
declare const exports$1_wrapOllama: typeof wrapOllama;
|
|
45830
46502
|
declare const exports$1_wrapOpenAI: typeof wrapOpenAI;
|
|
45831
46503
|
declare const exports$1_wrapOpenAICodexSDK: typeof wrapOpenAICodexSDK;
|
|
45832
46504
|
declare const exports$1_wrapOpenAIv4: typeof wrapOpenAIv4;
|
|
@@ -45837,7 +46509,7 @@ declare const exports$1_wrapStrandsAgentSDK: typeof wrapStrandsAgentSDK;
|
|
|
45837
46509
|
declare const exports$1_wrapTraced: typeof wrapTraced;
|
|
45838
46510
|
declare const exports$1_wrapVitest: typeof wrapVitest;
|
|
45839
46511
|
declare namespace exports$1 {
|
|
45840
|
-
export { type exports$1_AnyDataset as AnyDataset, exports$1_Attachment as Attachment, type exports$1_AttachmentParams as AttachmentParams, exports$1_AttachmentReference as AttachmentReference, exports$1_BAGGAGE_HEADER as BAGGAGE_HEADER, exports$1_BRAINTRUST_CURRENT_SPAN_STORE as BRAINTRUST_CURRENT_SPAN_STORE, exports$1_BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME as BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME, exports$1_BRAINTRUST_PARENT_KEY as BRAINTRUST_PARENT_KEY, type exports$1_BackgroundLoggerOpts as BackgroundLoggerOpts, exports$1_BaseAttachment as BaseAttachment, exports$1_BaseExperiment as BaseExperiment, type exports$1_BaseMetadata as BaseMetadata, exports$1_BraintrustLangChainCallbackHandler as BraintrustLangChainCallbackHandler, exports$1_BraintrustMiddleware as BraintrustMiddleware, exports$1_BraintrustObservabilityExporter as BraintrustObservabilityExporter, exports$1_BraintrustState as BraintrustState, exports$1_BraintrustStream as BraintrustStream, type exports$1_BraintrustStreamChunk as BraintrustStreamChunk, exports$1_CachedSpanFetcher as CachedSpanFetcher, type exports$1_ChatPrompt as ChatPrompt, exports$1_CodeFunction as CodeFunction, type exports$1_CodeOpts as CodeOpts, exports$1_CodePrompt as CodePrompt, type exports$1_CommentEvent as CommentEvent, type exports$1_CompiledPrompt as CompiledPrompt, type exports$1_CompiledPromptParams as CompiledPromptParams, type exports$1_CompletionPrompt as CompletionPrompt, exports$1_ContextManager as ContextManager, type exports$1_ContextParentSpanIds as ContextParentSpanIds, type exports$1_CreateProjectOpts as CreateProjectOpts, type exports$1_CurrentSpanStore as CurrentSpanStore, exports$1_DEFAULT_FETCH_BATCH_SIZE as DEFAULT_FETCH_BATCH_SIZE, exports$1_DEFAULT_MAX_REQUEST_SIZE as DEFAULT_MAX_REQUEST_SIZE, type exports$1_DataSummary as DataSummary, exports$1_Dataset as Dataset, exports$1_DatasetPipeline as DatasetPipeline, type exports$1_DatasetRecord as DatasetRecord, type exports$1_DatasetRestorePreviewResult as DatasetRestorePreviewResult, type exports$1_DatasetRestoreResult as DatasetRestoreResult, type DatasetSnapshotType as DatasetSnapshot, type exports$1_DatasetSummary as DatasetSummary, type exports$1_DefaultMetadataType as DefaultMetadataType, type exports$1_DefaultPromptArgs as DefaultPromptArgs, exports$1_ERR_PERMALINK as ERR_PERMALINK, type exports$1_EndSpanArgs as EndSpanArgs, exports$1_Eval as Eval, type exports$1_EvalCase as EvalCase, type exports$1_EvalClassifier as EvalClassifier, type exports$1_EvalHooks as EvalHooks, type exports$1_EvalParameterSerializedSchema as EvalParameterSerializedSchema, type exports$1_EvalParameters as EvalParameters, type exports$1_EvalResult as EvalResult, exports$1_EvalResultWithSummary as EvalResultWithSummary, type exports$1_EvalScorer as EvalScorer, type exports$1_EvalScorerArgs as EvalScorerArgs, type exports$1_EvalTask as EvalTask, type exports$1_Evaluator as Evaluator, type exports$1_EvaluatorDef as EvaluatorDef, type exports$1_EvaluatorDefinition as EvaluatorDefinition, type exports$1_EvaluatorDefinitions as EvaluatorDefinitions, type exports$1_EvaluatorFile as EvaluatorFile, type exports$1_EvaluatorManifest as EvaluatorManifest, exports$1_Experiment as Experiment, type exports$1_ExperimentLogFullArgs as ExperimentLogFullArgs, type exports$1_ExperimentLogPartialArgs as ExperimentLogPartialArgs, type exports$1_ExperimentSummary as ExperimentSummary, type exports$1_Exportable as Exportable, exports$1_ExternalAttachment as ExternalAttachment, type exports$1_ExternalAttachmentParams as ExternalAttachmentParams, exports$1_FailedHTTPResponse as FailedHTTPResponse, type exports$1_FullInitDatasetOptions as FullInitDatasetOptions, type exports$1_FullInitOptions as FullInitOptions, type exports$1_FullLoginOptions as FullLoginOptions, type exports$1_FunctionEvent as FunctionEvent, type exports$1_GetThreadOptions as GetThreadOptions, exports$1_IDGenerator as IDGenerator, type exports$1_IdField as IdField, type exports$1_InitDatasetOptions as InitDatasetOptions, type exports$1_InitLoggerOptions as InitLoggerOptions, type exports$1_InitOptions as InitOptions, type exports$1_InputField as InputField, type exports$1_InstrumentationConfig as InstrumentationConfig, type exports$1_InvokeFunctionArgs as InvokeFunctionArgs, type exports$1_InvokeReturn as InvokeReturn, exports$1_JSONAttachment as JSONAttachment, exports$1_LEGACY_CACHED_HEADER as LEGACY_CACHED_HEADER, exports$1_LOGS3_OVERFLOW_REFERENCE_TYPE as LOGS3_OVERFLOW_REFERENCE_TYPE, type exports$1_LangChainCallbackHandlerOptions as LangChainCallbackHandlerOptions, exports$1_LazyValue as LazyValue, type exports$1_LoadPromptOptions as LoadPromptOptions, exports$1_LocalTrace as LocalTrace, type exports$1_LogCommentFullArgs as LogCommentFullArgs, type exports$1_LogFeedbackFullArgs as LogFeedbackFullArgs, type exports$1_LogOptions as LogOptions, exports$1_Logger as Logger, exports$1_LoginInvalidOrgError as LoginInvalidOrgError, type exports$1_LoginOptions as LoginOptions, type exports$1_Logs3OverflowInputRow as Logs3OverflowInputRow, type exports$1_Logs3OverflowUpload as Logs3OverflowUpload, type exports$1_MastraObservabilityExporter as MastraObservabilityExporter, type exports$1_MetricSummary as MetricSummary, exports$1_NOOP_SPAN as NOOP_SPAN, exports$1_NOOP_SPAN_PERMALINK as NOOP_SPAN_PERMALINK, exports$1_NoopSpan as NoopSpan, exports$1_OTELIDGenerator as OTELIDGenerator, exports$1_ObjectFetcher as ObjectFetcher, type exports$1_ObjectMetadata as ObjectMetadata, type exports$1_OtherExperimentLogFields as OtherExperimentLogFields, type exports$1_ParametersSource as ParametersSource, type exports$1_ParentExperimentIds as ParentExperimentIds, type exports$1_ParentProjectLogIds as ParentProjectLogIds, type exports$1_ParsedTraceparent as ParsedTraceparent, exports$1_Project as Project, exports$1_ProjectNameIdMap as ProjectNameIdMap, type exports$1_PromiseUnless as PromiseUnless, exports$1_Prompt as Prompt, exports$1_PromptBuilder as PromptBuilder, type exports$1_PromptContents as PromptContents, type exports$1_PromptDefinition as PromptDefinition, type exports$1_PromptDefinitionWithTools as PromptDefinitionWithTools, type exports$1_PromptOpts as PromptOpts, type exports$1_PromptRowWithId as PromptRowWithId, type exports$1_PropagatedState as PropagatedState, type exports$1_PropagationContext as PropagationContext, exports$1_ReadonlyAttachment as ReadonlyAttachment, exports$1_ReadonlyExperiment as ReadonlyExperiment, type exports$1_RegisterSandboxOptions as RegisterSandboxOptions, type exports$1_RegisterSandboxResult as RegisterSandboxResult, exports$1_Reporter as Reporter, type exports$1_ReporterBody as ReporterBody, type exports$1_SandboxConfig as SandboxConfig, type exports$1_ScoreSummary as ScoreSummary, exports$1_ScorerBuilder as ScorerBuilder, type exports$1_ScorerOpts as ScorerOpts, type exports$1_SerializedBraintrustState as SerializedBraintrustState, type exports$1_SetCurrentArg as SetCurrentArg, type exports$1_Span as Span, type exports$1_SpanContext as SpanContext, type exports$1_SpanData as SpanData, exports$1_SpanFetcher as SpanFetcher, exports$1_SpanImpl as SpanImpl, type exports$1_StartSpanArgs as StartSpanArgs, exports$1_TRACEPARENT_HEADER as TRACEPARENT_HEADER, exports$1_TRACESTATE_HEADER as TRACESTATE_HEADER, type exports$1_TemplateFormat as TemplateFormat, type exports$1_TemplateRenderer as TemplateRenderer, type exports$1_TemplateRendererPlugin as TemplateRendererPlugin, exports$1_TestBackgroundLogger as TestBackgroundLogger, exports$1_ToolBuilder as ToolBuilder, type exports$1_Trace as Trace, type exports$1_TraceContextCarrier as TraceContextCarrier, type exports$1_TraceContextHeaders as TraceContextHeaders, exports$1_UUIDGenerator as UUIDGenerator, type exports$1_WithTransactionId as WithTransactionId, exports$1_X_CACHED_HEADER as X_CACHED_HEADER, exports$1__exportsForTestingOnly as _exportsForTestingOnly, exports$1__internalGetGlobalState as _internalGetGlobalState, iso as _internalIso, exports$1__internalSetInitialState as _internalSetInitialState, exports$1_addAzureBlobHeaders as addAzureBlobHeaders, exports$1_agentAssertionScorer as agentAssertionScorer, exports$1_braintrustAISDKTelemetry as braintrustAISDKTelemetry, exports$1_braintrustEveHook as braintrustEveHook, exports$1_braintrustEveInstrumentation as braintrustEveInstrumentation, exports$1_braintrustFlueInstrumentation as braintrustFlueInstrumentation, exports$1_braintrustFlueObserver as braintrustFlueObserver, exports$1_braintrustStreamChunkSchema as braintrustStreamChunkSchema, exports$1_buildLocalSummary as buildLocalSummary, exports$1_configureInstrumentation as configureInstrumentation, exports$1_constructLogs3OverflowRequest as constructLogs3OverflowRequest, exports$1_createFinalValuePassThroughStream as createFinalValuePassThroughStream, exports$1_currentExperiment as currentExperiment, exports$1_currentLogger as currentLogger, exports$1_currentSpan as currentSpan, exports$1_deepCopyEvent as deepCopyEvent, exports$1_defaultErrorScoreHandler as defaultErrorScoreHandler, exports$1_deserializePlainStringAsJSON as deserializePlainStringAsJSON, exports$1_devNullWritableStream as devNullWritableStream, exports$1_evaluatorDefinitionSchema as evaluatorDefinitionSchema, exports$1_evaluatorDefinitionsSchema as evaluatorDefinitionsSchema, exports$1_extractTraceContextFromHeaders as extractTraceContextFromHeaders, exports$1_flush as flush, exports$1_getContextManager as getContextManager, exports$1_getIdGenerator as getIdGenerator, exports$1_getPromptVersions as getPromptVersions, exports$1_getSpanParentObject as getSpanParentObject, exports$1_getTemplateRenderer as getTemplateRenderer, graphFramework as graph, exports$1_init as init, exports$1_initDataset as initDataset, exports$1_initExperiment as initExperiment, exports$1_initFunction as initFunction, exports$1_initLogger as initLogger, exports$1_initNodeTestSuite as initNodeTestSuite, exports$1_injectTraceContext as injectTraceContext, exports$1_invoke as invoke, exports$1_isTemplateFormat as isTemplateFormat, exports$1_loadParameters as loadParameters, exports$1_loadPrompt as loadPrompt, exports$1_log as log, exports$1_logError as logError, exports$1_login as login, exports$1_loginToState as loginToState, exports$1_logs3OverflowUploadSchema as logs3OverflowUploadSchema, exports$1_newId as newId, exports$1_parseCachedHeader as parseCachedHeader, exports$1_parseTemplateFormat as parseTemplateFormat, exports$1_permalink as permalink, exports$1_pickLogs3OverflowObjectIds as pickLogs3OverflowObjectIds, exports$1_projects as projects, exports$1_promptContentsSchema as promptContentsSchema, exports$1_promptDefinitionSchema as promptDefinitionSchema, exports$1_promptDefinitionToPromptData as promptDefinitionToPromptData, exports$1_promptDefinitionWithToolsSchema as promptDefinitionWithToolsSchema, exports$1_registerOtelFlush as registerOtelFlush, exports$1_registerSandbox as registerSandbox, exports$1_registerTemplatePlugin as registerTemplatePlugin, exports$1_renderMessage as renderMessage, exports$1_renderPromptParams as renderPromptParams, exports$1_renderTemplateContent as renderTemplateContent, exports$1_reportFailures as reportFailures, exports$1_runEvaluator as runEvaluator, exports$1_setFetch as setFetch, exports$1_setMaskingFunction as setMaskingFunction, exports$1_spanComponentsToObjectId as spanComponentsToObjectId, exports$1_startSpan as startSpan, exports$1_summarize as summarize, exports$1_templateRegistry as templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, exports$1_traceable as traceable, exports$1_traced as traced, exports$1_updateSpan as updateSpan, exports$1_uploadLogs3OverflowPayload as uploadLogs3OverflowPayload, exports$1_utf8ByteLength as utf8ByteLength, exports$1_withCurrent as withCurrent, exports$1_withDataset as withDataset, exports$1_withExperiment as withExperiment, exports$1_withLogger as withLogger, exports$1_withParent as withParent, exports$1_wrapAISDK as wrapAISDK, exports$1_wrapAISDKModel as wrapAISDKModel, exports$1_wrapAgentClass as wrapAgentClass, exports$1_wrapAnthropic as wrapAnthropic, exports$1_wrapBedrockRuntime as wrapBedrockRuntime, exports$1_wrapClaudeAgentSDK as wrapClaudeAgentSDK, exports$1_wrapCohere as wrapCohere, exports$1_wrapCopilotClient as wrapCopilotClient, exports$1_wrapCursorSDK as wrapCursorSDK, exports$1_wrapGenkit as wrapGenkit, exports$1_wrapGoogleADK as wrapGoogleADK, exports$1_wrapGoogleGenAI as wrapGoogleGenAI, exports$1_wrapGroq as wrapGroq, exports$1_wrapHuggingFace as wrapHuggingFace, exports$1_wrapLangSmithClient as wrapLangSmithClient, exports$1_wrapLangSmithRunTrees as wrapLangSmithRunTrees, exports$1_wrapLangSmithTraceable as wrapLangSmithTraceable, exports$1_wrapMastraAgent as wrapMastraAgent, exports$1_wrapMistral as wrapMistral, exports$1_wrapOpenAI as wrapOpenAI, exports$1_wrapOpenAICodexSDK as wrapOpenAICodexSDK, exports$1_wrapOpenAIv4 as wrapOpenAIv4, exports$1_wrapOpenRouter as wrapOpenRouter, exports$1_wrapOpenRouterAgent as wrapOpenRouterAgent, exports$1_wrapPiCodingAgentSDK as wrapPiCodingAgentSDK, exports$1_wrapStrandsAgentSDK as wrapStrandsAgentSDK, exports$1_wrapTraced as wrapTraced, exports$1_wrapVitest as wrapVitest };
|
|
46512
|
+
export { type exports$1_AnyDataset as AnyDataset, exports$1_Attachment as Attachment, type exports$1_AttachmentParams as AttachmentParams, exports$1_AttachmentReference as AttachmentReference, exports$1_BAGGAGE_HEADER as BAGGAGE_HEADER, exports$1_BRAINTRUST_CURRENT_SPAN_STORE as BRAINTRUST_CURRENT_SPAN_STORE, exports$1_BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME as BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME, exports$1_BRAINTRUST_PARENT_KEY as BRAINTRUST_PARENT_KEY, type exports$1_BackgroundLoggerOpts as BackgroundLoggerOpts, exports$1_BaseAttachment as BaseAttachment, exports$1_BaseExperiment as BaseExperiment, type exports$1_BaseMetadata as BaseMetadata, exports$1_BraintrustLangChainCallbackHandler as BraintrustLangChainCallbackHandler, exports$1_BraintrustMiddleware as BraintrustMiddleware, exports$1_BraintrustObservabilityExporter as BraintrustObservabilityExporter, exports$1_BraintrustState as BraintrustState, exports$1_BraintrustStream as BraintrustStream, type exports$1_BraintrustStreamChunk as BraintrustStreamChunk, exports$1_CachedSpanFetcher as CachedSpanFetcher, type exports$1_ChatPrompt as ChatPrompt, exports$1_CodeFunction as CodeFunction, type exports$1_CodeOpts as CodeOpts, exports$1_CodePrompt as CodePrompt, type exports$1_CommentEvent as CommentEvent, type exports$1_CompiledPrompt as CompiledPrompt, type exports$1_CompiledPromptParams as CompiledPromptParams, type exports$1_CompletionPrompt as CompletionPrompt, exports$1_ContextManager as ContextManager, type exports$1_ContextParentSpanIds as ContextParentSpanIds, type exports$1_CreateProjectOpts as CreateProjectOpts, type exports$1_CurrentSpanStore as CurrentSpanStore, exports$1_DEFAULT_FETCH_BATCH_SIZE as DEFAULT_FETCH_BATCH_SIZE, exports$1_DEFAULT_MAX_REQUEST_SIZE as DEFAULT_MAX_REQUEST_SIZE, type exports$1_DataSummary as DataSummary, exports$1_Dataset as Dataset, exports$1_DatasetPipeline as DatasetPipeline, type exports$1_DatasetRecord as DatasetRecord, type exports$1_DatasetRestorePreviewResult as DatasetRestorePreviewResult, type exports$1_DatasetRestoreResult as DatasetRestoreResult, type DatasetSnapshotType as DatasetSnapshot, type exports$1_DatasetSummary as DatasetSummary, type exports$1_DefaultMetadataType as DefaultMetadataType, type exports$1_DefaultPromptArgs as DefaultPromptArgs, exports$1_ERR_PERMALINK as ERR_PERMALINK, type exports$1_EndSpanArgs as EndSpanArgs, exports$1_Eval as Eval, type exports$1_EvalCase as EvalCase, type exports$1_EvalClassifier as EvalClassifier, type exports$1_EvalHooks as EvalHooks, type exports$1_EvalParameterSerializedSchema as EvalParameterSerializedSchema, type exports$1_EvalParameters as EvalParameters, type exports$1_EvalResult as EvalResult, exports$1_EvalResultWithSummary as EvalResultWithSummary, type exports$1_EvalScorer as EvalScorer, type exports$1_EvalScorerArgs as EvalScorerArgs, type exports$1_EvalTask as EvalTask, type exports$1_Evaluator as Evaluator, type exports$1_EvaluatorDef as EvaluatorDef, type exports$1_EvaluatorDefinition as EvaluatorDefinition, type exports$1_EvaluatorDefinitions as EvaluatorDefinitions, type exports$1_EvaluatorFile as EvaluatorFile, type exports$1_EvaluatorManifest as EvaluatorManifest, exports$1_Experiment as Experiment, type exports$1_ExperimentLogFullArgs as ExperimentLogFullArgs, type exports$1_ExperimentLogPartialArgs as ExperimentLogPartialArgs, type exports$1_ExperimentSummary as ExperimentSummary, type exports$1_Exportable as Exportable, exports$1_ExternalAttachment as ExternalAttachment, type exports$1_ExternalAttachmentParams as ExternalAttachmentParams, exports$1_FailedHTTPResponse as FailedHTTPResponse, type exports$1_FullInitDatasetOptions as FullInitDatasetOptions, type exports$1_FullInitOptions as FullInitOptions, type exports$1_FullLoginOptions as FullLoginOptions, type exports$1_FunctionEvent as FunctionEvent, type exports$1_GetThreadOptions as GetThreadOptions, exports$1_IDGenerator as IDGenerator, type exports$1_IdField as IdField, type exports$1_InitDatasetOptions as InitDatasetOptions, type exports$1_InitLoggerOptions as InitLoggerOptions, type exports$1_InitOptions as InitOptions, type exports$1_InputField as InputField, type exports$1_InstrumentationConfig as InstrumentationConfig, type exports$1_InvokeFunctionArgs as InvokeFunctionArgs, type exports$1_InvokeReturn as InvokeReturn, exports$1_JSONAttachment as JSONAttachment, exports$1_LEGACY_CACHED_HEADER as LEGACY_CACHED_HEADER, exports$1_LOGS3_OVERFLOW_REFERENCE_TYPE as LOGS3_OVERFLOW_REFERENCE_TYPE, type exports$1_LangChainCallbackHandlerOptions as LangChainCallbackHandlerOptions, exports$1_LazyValue as LazyValue, type exports$1_LoadPromptOptions as LoadPromptOptions, exports$1_LocalTrace as LocalTrace, type exports$1_LogCommentFullArgs as LogCommentFullArgs, type exports$1_LogFeedbackFullArgs as LogFeedbackFullArgs, type exports$1_LogOptions as LogOptions, exports$1_Logger as Logger, exports$1_LoginInvalidOrgError as LoginInvalidOrgError, type exports$1_LoginOptions as LoginOptions, type exports$1_Logs3OverflowInputRow as Logs3OverflowInputRow, type exports$1_Logs3OverflowUpload as Logs3OverflowUpload, type exports$1_MastraObservabilityExporter as MastraObservabilityExporter, type exports$1_MetricSummary as MetricSummary, exports$1_NOOP_SPAN as NOOP_SPAN, exports$1_NOOP_SPAN_PERMALINK as NOOP_SPAN_PERMALINK, exports$1_NoopSpan as NoopSpan, exports$1_OTELIDGenerator as OTELIDGenerator, exports$1_ObjectFetcher as ObjectFetcher, type exports$1_ObjectMetadata as ObjectMetadata, type exports$1_OtherExperimentLogFields as OtherExperimentLogFields, type exports$1_ParametersSource as ParametersSource, type exports$1_ParentExperimentIds as ParentExperimentIds, type exports$1_ParentProjectLogIds as ParentProjectLogIds, type exports$1_ParsedTraceparent as ParsedTraceparent, exports$1_Project as Project, exports$1_ProjectNameIdMap as ProjectNameIdMap, type exports$1_PromiseUnless as PromiseUnless, exports$1_Prompt as Prompt, exports$1_PromptBuilder as PromptBuilder, type exports$1_PromptContents as PromptContents, type exports$1_PromptDefinition as PromptDefinition, type exports$1_PromptDefinitionWithTools as PromptDefinitionWithTools, type exports$1_PromptOpts as PromptOpts, type exports$1_PromptRowWithId as PromptRowWithId, type exports$1_PropagatedState as PropagatedState, type exports$1_PropagationContext as PropagationContext, exports$1_ReadonlyAttachment as ReadonlyAttachment, exports$1_ReadonlyExperiment as ReadonlyExperiment, type exports$1_RegisterSandboxOptions as RegisterSandboxOptions, type exports$1_RegisterSandboxResult as RegisterSandboxResult, exports$1_Reporter as Reporter, type exports$1_ReporterBody as ReporterBody, type exports$1_SandboxConfig as SandboxConfig, type exports$1_ScoreSummary as ScoreSummary, exports$1_ScorerBuilder as ScorerBuilder, type exports$1_ScorerOpts as ScorerOpts, type exports$1_SerializedBraintrustState as SerializedBraintrustState, type exports$1_SetCurrentArg as SetCurrentArg, type exports$1_Span as Span, type exports$1_SpanContext as SpanContext, type exports$1_SpanData as SpanData, exports$1_SpanFetcher as SpanFetcher, exports$1_SpanImpl as SpanImpl, type exports$1_StartSpanArgs as StartSpanArgs, exports$1_TRACEPARENT_HEADER as TRACEPARENT_HEADER, exports$1_TRACESTATE_HEADER as TRACESTATE_HEADER, type exports$1_TemplateFormat as TemplateFormat, type exports$1_TemplateRenderer as TemplateRenderer, type exports$1_TemplateRendererPlugin as TemplateRendererPlugin, exports$1_TestBackgroundLogger as TestBackgroundLogger, exports$1_ToolBuilder as ToolBuilder, type exports$1_Trace as Trace, type exports$1_TraceContextCarrier as TraceContextCarrier, type exports$1_TraceContextHeaders as TraceContextHeaders, exports$1_UUIDGenerator as UUIDGenerator, type exports$1_WithTransactionId as WithTransactionId, exports$1_X_CACHED_HEADER as X_CACHED_HEADER, exports$1__exportsForTestingOnly as _exportsForTestingOnly, exports$1__internalGetGlobalState as _internalGetGlobalState, iso as _internalIso, exports$1__internalSetInitialState as _internalSetInitialState, exports$1_addAzureBlobHeaders as addAzureBlobHeaders, exports$1_agentAssertionScorer as agentAssertionScorer, exports$1_braintrustAISDKTelemetry as braintrustAISDKTelemetry, exports$1_braintrustEveHook as braintrustEveHook, exports$1_braintrustEveInstrumentation as braintrustEveInstrumentation, exports$1_braintrustFlueInstrumentation as braintrustFlueInstrumentation, exports$1_braintrustFlueObserver as braintrustFlueObserver, exports$1_braintrustStreamChunkSchema as braintrustStreamChunkSchema, exports$1_buildLocalSummary as buildLocalSummary, exports$1_collectAnthropicSession as collectAnthropicSession, exports$1_configureInstrumentation as configureInstrumentation, exports$1_constructLogs3OverflowRequest as constructLogs3OverflowRequest, exports$1_createFinalValuePassThroughStream as createFinalValuePassThroughStream, exports$1_currentExperiment as currentExperiment, exports$1_currentLogger as currentLogger, exports$1_currentSpan as currentSpan, exports$1_deepCopyEvent as deepCopyEvent, exports$1_defaultErrorScoreHandler as defaultErrorScoreHandler, exports$1_deserializePlainStringAsJSON as deserializePlainStringAsJSON, exports$1_devNullWritableStream as devNullWritableStream, exports$1_evaluatorDefinitionSchema as evaluatorDefinitionSchema, exports$1_evaluatorDefinitionsSchema as evaluatorDefinitionsSchema, exports$1_extractTraceContextFromHeaders as extractTraceContextFromHeaders, exports$1_flush as flush, exports$1_getContextManager as getContextManager, exports$1_getIdGenerator as getIdGenerator, exports$1_getPromptVersions as getPromptVersions, exports$1_getSpanParentObject as getSpanParentObject, exports$1_getTemplateRenderer as getTemplateRenderer, graphFramework as graph, exports$1_init as init, exports$1_initDataset as initDataset, exports$1_initExperiment as initExperiment, exports$1_initFunction as initFunction, exports$1_initLogger as initLogger, exports$1_initNodeTestSuite as initNodeTestSuite, exports$1_injectTraceContext as injectTraceContext, exports$1_invoke as invoke, exports$1_isTemplateFormat as isTemplateFormat, exports$1_loadParameters as loadParameters, exports$1_loadPrompt as loadPrompt, exports$1_log as log, exports$1_logError as logError, exports$1_login as login, exports$1_loginToState as loginToState, exports$1_logs3OverflowUploadSchema as logs3OverflowUploadSchema, exports$1_newId as newId, exports$1_parseCachedHeader as parseCachedHeader, exports$1_parseTemplateFormat as parseTemplateFormat, exports$1_permalink as permalink, exports$1_pickLogs3OverflowObjectIds as pickLogs3OverflowObjectIds, exports$1_projects as projects, exports$1_promptContentsSchema as promptContentsSchema, exports$1_promptDefinitionSchema as promptDefinitionSchema, exports$1_promptDefinitionToPromptData as promptDefinitionToPromptData, exports$1_promptDefinitionWithToolsSchema as promptDefinitionWithToolsSchema, exports$1_registerOtelFlush as registerOtelFlush, exports$1_registerSandbox as registerSandbox, exports$1_registerTemplatePlugin as registerTemplatePlugin, exports$1_renderMessage as renderMessage, exports$1_renderPromptParams as renderPromptParams, exports$1_renderTemplateContent as renderTemplateContent, exports$1_reportFailures as reportFailures, exports$1_runEvaluator as runEvaluator, exports$1_setFetch as setFetch, exports$1_setMaskingFunction as setMaskingFunction, exports$1_spanComponentsToObjectId as spanComponentsToObjectId, exports$1_startSpan as startSpan, exports$1_summarize as summarize, exports$1_templateRegistry as templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, exports$1_traceable as traceable, exports$1_traced as traced, exports$1_updateSpan as updateSpan, exports$1_uploadLogs3OverflowPayload as uploadLogs3OverflowPayload, exports$1_utf8ByteLength as utf8ByteLength, exports$1_withCurrent as withCurrent, exports$1_withDataset as withDataset, exports$1_withExperiment as withExperiment, exports$1_withLogger as withLogger, exports$1_withParent as withParent, exports$1_wrapAISDK as wrapAISDK, exports$1_wrapAISDKModel as wrapAISDKModel, exports$1_wrapAgentClass as wrapAgentClass, exports$1_wrapAnthropic as wrapAnthropic, exports$1_wrapBedrockRuntime as wrapBedrockRuntime, exports$1_wrapClaudeAgentSDK as wrapClaudeAgentSDK, exports$1_wrapCloudflareAIChat as wrapCloudflareAIChat, exports$1_wrapCloudflareAgent as wrapCloudflareAgent, exports$1_wrapCloudflareThink as wrapCloudflareThink, exports$1_wrapCohere as wrapCohere, exports$1_wrapCopilotClient as wrapCopilotClient, exports$1_wrapCursorSDK as wrapCursorSDK, exports$1_wrapGenkit as wrapGenkit, exports$1_wrapGoogleADK as wrapGoogleADK, exports$1_wrapGoogleGenAI as wrapGoogleGenAI, exports$1_wrapGroq as wrapGroq, exports$1_wrapHuggingFace as wrapHuggingFace, exports$1_wrapHuggingFaceTransformers as wrapHuggingFaceTransformers, exports$1_wrapLangSmithClient as wrapLangSmithClient, exports$1_wrapLangSmithRunTrees as wrapLangSmithRunTrees, exports$1_wrapLangSmithTraceable as wrapLangSmithTraceable, exports$1_wrapMastraAgent as wrapMastraAgent, exports$1_wrapMistral as wrapMistral, exports$1_wrapOllama as wrapOllama, exports$1_wrapOpenAI as wrapOpenAI, exports$1_wrapOpenAICodexSDK as wrapOpenAICodexSDK, exports$1_wrapOpenAIv4 as wrapOpenAIv4, exports$1_wrapOpenRouter as wrapOpenRouter, exports$1_wrapOpenRouterAgent as wrapOpenRouterAgent, exports$1_wrapPiCodingAgentSDK as wrapPiCodingAgentSDK, exports$1_wrapStrandsAgentSDK as wrapStrandsAgentSDK, exports$1_wrapTraced as wrapTraced, exports$1_wrapVitest as wrapVitest };
|
|
45841
46513
|
}
|
|
45842
46514
|
|
|
45843
|
-
export { type AnyDataset, Attachment, type AttachmentParams, AttachmentReference, BAGGAGE_HEADER, BRAINTRUST_CURRENT_SPAN_STORE, BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME, BRAINTRUST_PARENT_KEY, type BackgroundLoggerOpts, BaseAttachment, BaseExperiment, type BaseMetadata, BraintrustLangChainCallbackHandler, BraintrustMiddleware, BraintrustObservabilityExporter, BraintrustState, BraintrustStream, type BraintrustStreamChunk, CachedSpanFetcher, type ChatPrompt, CodeFunction, type CodeOpts, CodePrompt, type CommentEvent, type CompiledPrompt, type CompiledPromptParams, type CompletionPrompt, ContextManager, type ContextParentSpanIds, type CreateProjectOpts, type CurrentSpanStore, DEFAULT_FETCH_BATCH_SIZE, DEFAULT_MAX_REQUEST_SIZE, type DataSummary, Dataset, DatasetPipeline, type DatasetRecord, type DatasetRestorePreviewResult, type DatasetRestoreResult, type DatasetSnapshotType as DatasetSnapshot, type DatasetSummary, type DefaultMetadataType, type DefaultPromptArgs, ERR_PERMALINK, type EndSpanArgs, Eval, type EvalCase, type EvalClassifier, type EvalHooks, type EvalParameterSerializedSchema, type EvalParameters, type EvalResult, EvalResultWithSummary, type EvalScorer, type EvalScorerArgs, type EvalTask, type Evaluator, type EvaluatorDef, type EvaluatorDefinition, type EvaluatorDefinitions, type EvaluatorFile, type EvaluatorManifest, Experiment, type ExperimentLogFullArgs, type ExperimentLogPartialArgs, type ExperimentSummary, type Exportable, ExternalAttachment, type ExternalAttachmentParams, FailedHTTPResponse, type FullInitDatasetOptions, type FullInitOptions, type FullLoginOptions, type FunctionEvent, type GetThreadOptions, IDGenerator, type IdField, type InitDatasetOptions, type InitLoggerOptions, type InitOptions, type InputField, type InstrumentationConfig, type InvokeFunctionArgs, type InvokeReturn, JSONAttachment, LEGACY_CACHED_HEADER, LOGS3_OVERFLOW_REFERENCE_TYPE, type LangChainCallbackHandlerOptions, LazyValue, type LoadPromptOptions, LocalTrace, type LogCommentFullArgs, type LogFeedbackFullArgs, type LogOptions, Logger, LoginInvalidOrgError, type LoginOptions, type Logs3OverflowInputRow, type Logs3OverflowUpload, type MastraObservabilityExporter, type MetricSummary, NOOP_SPAN, NOOP_SPAN_PERMALINK, NoopSpan, OTELIDGenerator, ObjectFetcher, type ObjectMetadata, type OtherExperimentLogFields, type ParametersSource, type ParentExperimentIds, type ParentProjectLogIds, type ParsedTraceparent, Project, ProjectNameIdMap, type PromiseUnless, Prompt, PromptBuilder, type PromptContents, type PromptDefinition, type PromptDefinitionWithTools, type PromptOpts, type PromptRowWithId, type PropagatedState, type PropagationContext, ReadonlyAttachment, ReadonlyExperiment, type RegisterSandboxOptions, type RegisterSandboxResult, Reporter, type ReporterBody, type SandboxConfig, type ScoreSummary, ScorerBuilder, type ScorerOpts, type SerializedBraintrustState, type SetCurrentArg, type Span, type SpanContext, type SpanData, SpanFetcher, SpanImpl, type StartSpanArgs, TRACEPARENT_HEADER, TRACESTATE_HEADER, type TemplateFormat, type TemplateRenderer, type TemplateRendererPlugin, TestBackgroundLogger, ToolBuilder, type Trace, type TraceContextCarrier, type TraceContextHeaders, UUIDGenerator, type WithTransactionId, X_CACHED_HEADER, _exportsForTestingOnly, _internalGetGlobalState, iso as _internalIso, _internalSetInitialState, addAzureBlobHeaders, agentAssertionScorer, braintrustAISDKTelemetry, braintrustEveHook, braintrustEveInstrumentation, braintrustFlueInstrumentation, braintrustFlueObserver, braintrustStreamChunkSchema, buildLocalSummary, configureInstrumentation, constructLogs3OverflowRequest, createFinalValuePassThroughStream, currentExperiment, currentLogger, currentSpan, deepCopyEvent, exports$1 as default, defaultErrorScoreHandler, deserializePlainStringAsJSON, devNullWritableStream, evaluatorDefinitionSchema, evaluatorDefinitionsSchema, extractTraceContextFromHeaders, flush, getContextManager, getIdGenerator, getPromptVersions, getSpanParentObject, getTemplateRenderer, graphFramework as graph, init, initDataset, initExperiment, initFunction, initLogger, initNodeTestSuite, injectTraceContext, invoke, isTemplateFormat, loadParameters, loadPrompt, log, logError, login, loginToState, logs3OverflowUploadSchema, newId, parseCachedHeader, parseTemplateFormat, permalink, pickLogs3OverflowObjectIds, projects, promptContentsSchema, promptDefinitionSchema, promptDefinitionToPromptData, promptDefinitionWithToolsSchema, registerOtelFlush, registerSandbox, registerTemplatePlugin, renderMessage, renderPromptParams, renderTemplateContent, reportFailures, runEvaluator, setFetch, setMaskingFunction, spanComponentsToObjectId, startSpan, summarize, templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, traceable, traced, updateSpan, uploadLogs3OverflowPayload, utf8ByteLength, withCurrent, withDataset, withExperiment, withLogger, withParent, wrapAISDK, wrapAISDKModel, wrapAgentClass, wrapAnthropic, wrapBedrockRuntime, wrapClaudeAgentSDK, wrapCohere, wrapCopilotClient, wrapCursorSDK, wrapGenkit, wrapGoogleADK, wrapGoogleGenAI, wrapGroq, wrapHuggingFace, wrapLangSmithClient, wrapLangSmithRunTrees, wrapLangSmithTraceable, wrapMastraAgent, wrapMistral, wrapOpenAI, wrapOpenAICodexSDK, wrapOpenAIv4, wrapOpenRouter, wrapOpenRouterAgent, wrapPiCodingAgentSDK, wrapStrandsAgentSDK, wrapTraced, wrapVitest };
|
|
46515
|
+
export { type AnyDataset, Attachment, type AttachmentParams, AttachmentReference, BAGGAGE_HEADER, BRAINTRUST_CURRENT_SPAN_STORE, BRAINTRUST_LANGCHAIN_CALLBACK_HANDLER_NAME, BRAINTRUST_PARENT_KEY, type BackgroundLoggerOpts, BaseAttachment, BaseExperiment, type BaseMetadata, BraintrustLangChainCallbackHandler, BraintrustMiddleware, BraintrustObservabilityExporter, BraintrustState, BraintrustStream, type BraintrustStreamChunk, CachedSpanFetcher, type ChatPrompt, CodeFunction, type CodeOpts, CodePrompt, type CommentEvent, type CompiledPrompt, type CompiledPromptParams, type CompletionPrompt, ContextManager, type ContextParentSpanIds, type CreateProjectOpts, type CurrentSpanStore, DEFAULT_FETCH_BATCH_SIZE, DEFAULT_MAX_REQUEST_SIZE, type DataSummary, Dataset, DatasetPipeline, type DatasetRecord, type DatasetRestorePreviewResult, type DatasetRestoreResult, type DatasetSnapshotType as DatasetSnapshot, type DatasetSummary, type DefaultMetadataType, type DefaultPromptArgs, ERR_PERMALINK, type EndSpanArgs, Eval, type EvalCase, type EvalClassifier, type EvalHooks, type EvalParameterSerializedSchema, type EvalParameters, type EvalResult, EvalResultWithSummary, type EvalScorer, type EvalScorerArgs, type EvalTask, type Evaluator, type EvaluatorDef, type EvaluatorDefinition, type EvaluatorDefinitions, type EvaluatorFile, type EvaluatorManifest, Experiment, type ExperimentLogFullArgs, type ExperimentLogPartialArgs, type ExperimentSummary, type Exportable, ExternalAttachment, type ExternalAttachmentParams, FailedHTTPResponse, type FullInitDatasetOptions, type FullInitOptions, type FullLoginOptions, type FunctionEvent, type GetThreadOptions, IDGenerator, type IdField, type InitDatasetOptions, type InitLoggerOptions, type InitOptions, type InputField, type InstrumentationConfig, type InvokeFunctionArgs, type InvokeReturn, JSONAttachment, LEGACY_CACHED_HEADER, LOGS3_OVERFLOW_REFERENCE_TYPE, type LangChainCallbackHandlerOptions, LazyValue, type LoadPromptOptions, LocalTrace, type LogCommentFullArgs, type LogFeedbackFullArgs, type LogOptions, Logger, LoginInvalidOrgError, type LoginOptions, type Logs3OverflowInputRow, type Logs3OverflowUpload, type MastraObservabilityExporter, type MetricSummary, NOOP_SPAN, NOOP_SPAN_PERMALINK, NoopSpan, OTELIDGenerator, ObjectFetcher, type ObjectMetadata, type OtherExperimentLogFields, type ParametersSource, type ParentExperimentIds, type ParentProjectLogIds, type ParsedTraceparent, Project, ProjectNameIdMap, type PromiseUnless, Prompt, PromptBuilder, type PromptContents, type PromptDefinition, type PromptDefinitionWithTools, type PromptOpts, type PromptRowWithId, type PropagatedState, type PropagationContext, ReadonlyAttachment, ReadonlyExperiment, type RegisterSandboxOptions, type RegisterSandboxResult, Reporter, type ReporterBody, type SandboxConfig, type ScoreSummary, ScorerBuilder, type ScorerOpts, type SerializedBraintrustState, type SetCurrentArg, type Span, type SpanContext, type SpanData, SpanFetcher, SpanImpl, type StartSpanArgs, TRACEPARENT_HEADER, TRACESTATE_HEADER, type TemplateFormat, type TemplateRenderer, type TemplateRendererPlugin, TestBackgroundLogger, ToolBuilder, type Trace, type TraceContextCarrier, type TraceContextHeaders, UUIDGenerator, type WithTransactionId, X_CACHED_HEADER, _exportsForTestingOnly, _internalGetGlobalState, iso as _internalIso, _internalSetInitialState, addAzureBlobHeaders, agentAssertionScorer, braintrustAISDKTelemetry, braintrustEveHook, braintrustEveInstrumentation, braintrustFlueInstrumentation, braintrustFlueObserver, braintrustStreamChunkSchema, buildLocalSummary, collectAnthropicSession, configureInstrumentation, constructLogs3OverflowRequest, createFinalValuePassThroughStream, currentExperiment, currentLogger, currentSpan, deepCopyEvent, exports$1 as default, defaultErrorScoreHandler, deserializePlainStringAsJSON, devNullWritableStream, evaluatorDefinitionSchema, evaluatorDefinitionsSchema, extractTraceContextFromHeaders, flush, getContextManager, getIdGenerator, getPromptVersions, getSpanParentObject, getTemplateRenderer, graphFramework as graph, init, initDataset, initExperiment, initFunction, initLogger, initNodeTestSuite, injectTraceContext, invoke, isTemplateFormat, loadParameters, loadPrompt, log, logError, login, loginToState, logs3OverflowUploadSchema, newId, parseCachedHeader, parseTemplateFormat, permalink, pickLogs3OverflowObjectIds, projects, promptContentsSchema, promptDefinitionSchema, promptDefinitionToPromptData, promptDefinitionWithToolsSchema, registerOtelFlush, registerSandbox, registerTemplatePlugin, renderMessage, renderPromptParams, renderTemplateContent, reportFailures, runEvaluator, setFetch, setMaskingFunction, spanComponentsToObjectId, startSpan, summarize, templateRegistry, ToolFunctionDefinition as toolFunctionDefinitionSchema, traceable, traced, updateSpan, uploadLogs3OverflowPayload, utf8ByteLength, withCurrent, withDataset, withExperiment, withLogger, withParent, wrapAISDK, wrapAISDKModel, wrapAgentClass, wrapAnthropic, wrapBedrockRuntime, wrapClaudeAgentSDK, wrapCloudflareAIChat, wrapCloudflareAgent, wrapCloudflareThink, wrapCohere, wrapCopilotClient, wrapCursorSDK, wrapGenkit, wrapGoogleADK, wrapGoogleGenAI, wrapGroq, wrapHuggingFace, wrapHuggingFaceTransformers, wrapLangSmithClient, wrapLangSmithRunTrees, wrapLangSmithTraceable, wrapMastraAgent, wrapMistral, wrapOllama, wrapOpenAI, wrapOpenAICodexSDK, wrapOpenAIv4, wrapOpenRouter, wrapOpenRouterAgent, wrapPiCodingAgentSDK, wrapStrandsAgentSDK, wrapTraced, wrapVitest };
|