braintrust 1.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev/dist/index.d.mts +29 -6
- package/dev/dist/index.d.ts +29 -6
- package/dev/dist/index.js +66 -10
- package/dev/dist/index.mjs +66 -10
- package/dist/browser.d.mts +107 -18
- package/dist/browser.d.ts +107 -18
- package/dist/browser.js +201 -101
- package/dist/browser.mjs +138 -38
- package/dist/cli.js +74 -19
- package/dist/index.d.mts +107 -18
- package/dist/index.d.ts +107 -18
- package/dist/index.js +201 -101
- package/dist/index.mjs +138 -38
- package/package.json +8 -6
- package/util/dist/index.d.mts +10 -1
- package/util/dist/index.d.ts +10 -1
- package/util/dist/index.js +9 -1
- package/util/dist/index.mjs +8 -0
package/dist/browser.d.ts
CHANGED
|
@@ -1981,12 +1981,15 @@ declare const SavedFunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
1981
1981
|
}>, z.ZodObject<{
|
|
1982
1982
|
type: z.ZodLiteral<"global">;
|
|
1983
1983
|
name: z.ZodString;
|
|
1984
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
1984
1985
|
}, "strip", z.ZodTypeAny, {
|
|
1985
1986
|
type: "global";
|
|
1986
1987
|
name: string;
|
|
1988
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
1987
1989
|
}, {
|
|
1988
1990
|
type: "global";
|
|
1989
1991
|
name: string;
|
|
1992
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
1990
1993
|
}>]>;
|
|
1991
1994
|
type SavedFunctionIdType = z.infer<typeof SavedFunctionId>;
|
|
1992
1995
|
declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
@@ -6719,14 +6722,17 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
6719
6722
|
}>, z.ZodObject<{
|
|
6720
6723
|
type: z.ZodLiteral<"global">;
|
|
6721
6724
|
name: z.ZodString;
|
|
6725
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
6722
6726
|
config: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodNull]>>;
|
|
6723
6727
|
}, "strip", z.ZodTypeAny, {
|
|
6724
6728
|
type: "global";
|
|
6725
6729
|
name: string;
|
|
6730
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
6726
6731
|
config?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
6727
6732
|
}, {
|
|
6728
6733
|
type: "global";
|
|
6729
6734
|
name: string;
|
|
6735
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
6730
6736
|
config?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
6731
6737
|
}>, z.ZodObject<{
|
|
6732
6738
|
type: z.ZodLiteral<"facet">;
|
|
@@ -6742,12 +6748,15 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
6742
6748
|
}>, z.ZodObject<{
|
|
6743
6749
|
type: z.ZodLiteral<"global">;
|
|
6744
6750
|
name: z.ZodString;
|
|
6751
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
6745
6752
|
}, "strip", z.ZodTypeAny, {
|
|
6746
6753
|
type: "global";
|
|
6747
6754
|
name: string;
|
|
6755
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
6748
6756
|
}, {
|
|
6749
6757
|
type: "global";
|
|
6750
6758
|
name: string;
|
|
6759
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
6751
6760
|
}>, z.ZodNull]>, z.ZodUnknown>>;
|
|
6752
6761
|
prompt: z.ZodString;
|
|
6753
6762
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -6762,6 +6771,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
6762
6771
|
} | {
|
|
6763
6772
|
type: "global";
|
|
6764
6773
|
name: string;
|
|
6774
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
6765
6775
|
} | null | undefined;
|
|
6766
6776
|
no_match_pattern?: string | undefined;
|
|
6767
6777
|
}, {
|
|
@@ -6774,6 +6784,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
6774
6784
|
} | {
|
|
6775
6785
|
type: "global";
|
|
6776
6786
|
name: string;
|
|
6787
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
6777
6788
|
} | null | undefined;
|
|
6778
6789
|
no_match_pattern?: string | undefined;
|
|
6779
6790
|
}>]>;
|
|
@@ -8000,12 +8011,15 @@ declare const PromptData: z.ZodObject<{
|
|
|
8000
8011
|
}>, z.ZodObject<{
|
|
8001
8012
|
type: z.ZodLiteral<"global">;
|
|
8002
8013
|
name: z.ZodString;
|
|
8014
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
8003
8015
|
}, "strip", z.ZodTypeAny, {
|
|
8004
8016
|
type: "global";
|
|
8005
8017
|
name: string;
|
|
8018
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
8006
8019
|
}, {
|
|
8007
8020
|
type: "global";
|
|
8008
8021
|
name: string;
|
|
8022
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
8009
8023
|
}>]>, "many">, z.ZodNull]>>;
|
|
8010
8024
|
template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
|
|
8011
8025
|
mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -8284,6 +8298,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
8284
8298
|
} | {
|
|
8285
8299
|
type: "global";
|
|
8286
8300
|
name: string;
|
|
8301
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
8287
8302
|
})[] | null | undefined;
|
|
8288
8303
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
8289
8304
|
mcp?: Record<string, {
|
|
@@ -8529,6 +8544,7 @@ declare const PromptData: z.ZodObject<{
|
|
|
8529
8544
|
} | {
|
|
8530
8545
|
type: "global";
|
|
8531
8546
|
name: string;
|
|
8547
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
8532
8548
|
})[] | null | undefined;
|
|
8533
8549
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
8534
8550
|
mcp?: Record<string, {
|
|
@@ -8569,10 +8585,13 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
8569
8585
|
version?: string | undefined;
|
|
8570
8586
|
}>, z.ZodObject<{
|
|
8571
8587
|
global_function: z.ZodString;
|
|
8588
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
8572
8589
|
}, "strip", z.ZodTypeAny, {
|
|
8573
8590
|
global_function: string;
|
|
8591
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
8574
8592
|
}, {
|
|
8575
8593
|
global_function: string;
|
|
8594
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
8576
8595
|
}>, z.ZodObject<{
|
|
8577
8596
|
prompt_session_id: z.ZodString;
|
|
8578
8597
|
prompt_session_function_id: z.ZodString;
|
|
@@ -9836,12 +9855,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
9836
9855
|
}>, z.ZodObject<{
|
|
9837
9856
|
type: z.ZodLiteral<"global">;
|
|
9838
9857
|
name: z.ZodString;
|
|
9858
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
9839
9859
|
}, "strip", z.ZodTypeAny, {
|
|
9840
9860
|
type: "global";
|
|
9841
9861
|
name: string;
|
|
9862
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
9842
9863
|
}, {
|
|
9843
9864
|
type: "global";
|
|
9844
9865
|
name: string;
|
|
9866
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
9845
9867
|
}>]>, "many">, z.ZodNull]>>;
|
|
9846
9868
|
template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
|
|
9847
9869
|
mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -10120,6 +10142,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
10120
10142
|
} | {
|
|
10121
10143
|
type: "global";
|
|
10122
10144
|
name: string;
|
|
10145
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
10123
10146
|
})[] | null | undefined;
|
|
10124
10147
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
10125
10148
|
mcp?: Record<string, {
|
|
@@ -10365,6 +10388,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
10365
10388
|
} | {
|
|
10366
10389
|
type: "global";
|
|
10367
10390
|
name: string;
|
|
10391
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
10368
10392
|
})[] | null | undefined;
|
|
10369
10393
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
10370
10394
|
mcp?: Record<string, {
|
|
@@ -10387,7 +10411,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
10387
10411
|
[k: string]: unknown;
|
|
10388
10412
|
};
|
|
10389
10413
|
name?: string | null | undefined;
|
|
10390
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "
|
|
10414
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | undefined;
|
|
10391
10415
|
inline_prompt?: {
|
|
10392
10416
|
options?: {
|
|
10393
10417
|
params?: z.objectOutputType<{
|
|
@@ -10620,6 +10644,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
10620
10644
|
} | {
|
|
10621
10645
|
type: "global";
|
|
10622
10646
|
name: string;
|
|
10647
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
10623
10648
|
})[] | null | undefined;
|
|
10624
10649
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
10625
10650
|
mcp?: Record<string, {
|
|
@@ -10639,7 +10664,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
10639
10664
|
[k: string]: unknown;
|
|
10640
10665
|
};
|
|
10641
10666
|
name?: string | null | undefined;
|
|
10642
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "
|
|
10667
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | undefined;
|
|
10643
10668
|
inline_prompt?: {
|
|
10644
10669
|
options?: {
|
|
10645
10670
|
params?: z.objectInputType<{
|
|
@@ -10872,6 +10897,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
10872
10897
|
} | {
|
|
10873
10898
|
type: "global";
|
|
10874
10899
|
name: string;
|
|
10900
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
10875
10901
|
})[] | null | undefined;
|
|
10876
10902
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
10877
10903
|
mcp?: Record<string, {
|
|
@@ -12110,12 +12136,15 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
12110
12136
|
}>, z.ZodObject<{
|
|
12111
12137
|
type: z.ZodLiteral<"global">;
|
|
12112
12138
|
name: z.ZodString;
|
|
12139
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
12113
12140
|
}, "strip", z.ZodTypeAny, {
|
|
12114
12141
|
type: "global";
|
|
12115
12142
|
name: string;
|
|
12143
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
12116
12144
|
}, {
|
|
12117
12145
|
type: "global";
|
|
12118
12146
|
name: string;
|
|
12147
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
12119
12148
|
}>]>, "many">, z.ZodNull]>>;
|
|
12120
12149
|
template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
|
|
12121
12150
|
mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -12394,6 +12423,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
12394
12423
|
} | {
|
|
12395
12424
|
type: "global";
|
|
12396
12425
|
name: string;
|
|
12426
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
12397
12427
|
})[] | null | undefined;
|
|
12398
12428
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
12399
12429
|
mcp?: Record<string, {
|
|
@@ -12639,6 +12669,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
12639
12669
|
} | {
|
|
12640
12670
|
type: "global";
|
|
12641
12671
|
name: string;
|
|
12672
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
12642
12673
|
})[] | null | undefined;
|
|
12643
12674
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
12644
12675
|
mcp?: Record<string, {
|
|
@@ -12888,6 +12919,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
12888
12919
|
} | {
|
|
12889
12920
|
type: "global";
|
|
12890
12921
|
name: string;
|
|
12922
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
12891
12923
|
})[] | null | undefined;
|
|
12892
12924
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
12893
12925
|
mcp?: Record<string, {
|
|
@@ -12903,7 +12935,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
12903
12935
|
}> | null | undefined;
|
|
12904
12936
|
};
|
|
12905
12937
|
name?: string | null | undefined;
|
|
12906
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "
|
|
12938
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | undefined;
|
|
12907
12939
|
}, {
|
|
12908
12940
|
inline_prompt: {
|
|
12909
12941
|
options?: {
|
|
@@ -13137,6 +13169,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
13137
13169
|
} | {
|
|
13138
13170
|
type: "global";
|
|
13139
13171
|
name: string;
|
|
13172
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
13140
13173
|
})[] | null | undefined;
|
|
13141
13174
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
13142
13175
|
mcp?: Record<string, {
|
|
@@ -13152,7 +13185,7 @@ declare const FunctionId: z.ZodUnion<[z.ZodObject<{
|
|
|
13152
13185
|
}> | null | undefined;
|
|
13153
13186
|
};
|
|
13154
13187
|
name?: string | null | undefined;
|
|
13155
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "
|
|
13188
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | undefined;
|
|
13156
13189
|
}>]>;
|
|
13157
13190
|
type FunctionIdType = z.infer<typeof FunctionId>;
|
|
13158
13191
|
declare const GitMetadataSettings: z.ZodObject<{
|
|
@@ -13193,10 +13226,13 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
13193
13226
|
version?: string | undefined;
|
|
13194
13227
|
}>, z.ZodObject<{
|
|
13195
13228
|
global_function: z.ZodString;
|
|
13229
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
13196
13230
|
}, "strip", z.ZodTypeAny, {
|
|
13197
13231
|
global_function: string;
|
|
13232
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
13198
13233
|
}, {
|
|
13199
13234
|
global_function: string;
|
|
13235
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
13200
13236
|
}>, z.ZodObject<{
|
|
13201
13237
|
prompt_session_id: z.ZodString;
|
|
13202
13238
|
prompt_session_function_id: z.ZodString;
|
|
@@ -14460,12 +14496,15 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
14460
14496
|
}>, z.ZodObject<{
|
|
14461
14497
|
type: z.ZodLiteral<"global">;
|
|
14462
14498
|
name: z.ZodString;
|
|
14499
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
14463
14500
|
}, "strip", z.ZodTypeAny, {
|
|
14464
14501
|
type: "global";
|
|
14465
14502
|
name: string;
|
|
14503
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
14466
14504
|
}, {
|
|
14467
14505
|
type: "global";
|
|
14468
14506
|
name: string;
|
|
14507
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
14469
14508
|
}>]>, "many">, z.ZodNull]>>;
|
|
14470
14509
|
template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
|
|
14471
14510
|
mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -14744,6 +14783,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
14744
14783
|
} | {
|
|
14745
14784
|
type: "global";
|
|
14746
14785
|
name: string;
|
|
14786
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
14747
14787
|
})[] | null | undefined;
|
|
14748
14788
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
14749
14789
|
mcp?: Record<string, {
|
|
@@ -14989,6 +15029,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
14989
15029
|
} | {
|
|
14990
15030
|
type: "global";
|
|
14991
15031
|
name: string;
|
|
15032
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
14992
15033
|
})[] | null | undefined;
|
|
14993
15034
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
14994
15035
|
mcp?: Record<string, {
|
|
@@ -15011,7 +15052,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
15011
15052
|
[k: string]: unknown;
|
|
15012
15053
|
};
|
|
15013
15054
|
name?: string | null | undefined;
|
|
15014
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "
|
|
15055
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | undefined;
|
|
15015
15056
|
inline_prompt?: {
|
|
15016
15057
|
options?: {
|
|
15017
15058
|
params?: z.objectOutputType<{
|
|
@@ -15244,6 +15285,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
15244
15285
|
} | {
|
|
15245
15286
|
type: "global";
|
|
15246
15287
|
name: string;
|
|
15288
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
15247
15289
|
})[] | null | undefined;
|
|
15248
15290
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
15249
15291
|
mcp?: Record<string, {
|
|
@@ -15263,7 +15305,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
15263
15305
|
[k: string]: unknown;
|
|
15264
15306
|
};
|
|
15265
15307
|
name?: string | null | undefined;
|
|
15266
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "
|
|
15308
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | undefined;
|
|
15267
15309
|
inline_prompt?: {
|
|
15268
15310
|
options?: {
|
|
15269
15311
|
params?: z.objectInputType<{
|
|
@@ -15496,6 +15538,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
15496
15538
|
} | {
|
|
15497
15539
|
type: "global";
|
|
15498
15540
|
name: string;
|
|
15541
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
15499
15542
|
})[] | null | undefined;
|
|
15500
15543
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
15501
15544
|
mcp?: Record<string, {
|
|
@@ -16734,12 +16777,15 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
16734
16777
|
}>, z.ZodObject<{
|
|
16735
16778
|
type: z.ZodLiteral<"global">;
|
|
16736
16779
|
name: z.ZodString;
|
|
16780
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
16737
16781
|
}, "strip", z.ZodTypeAny, {
|
|
16738
16782
|
type: "global";
|
|
16739
16783
|
name: string;
|
|
16784
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
16740
16785
|
}, {
|
|
16741
16786
|
type: "global";
|
|
16742
16787
|
name: string;
|
|
16788
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
16743
16789
|
}>]>, "many">, z.ZodNull]>>;
|
|
16744
16790
|
template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
|
|
16745
16791
|
mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -17018,6 +17064,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
17018
17064
|
} | {
|
|
17019
17065
|
type: "global";
|
|
17020
17066
|
name: string;
|
|
17067
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
17021
17068
|
})[] | null | undefined;
|
|
17022
17069
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
17023
17070
|
mcp?: Record<string, {
|
|
@@ -17263,6 +17310,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
17263
17310
|
} | {
|
|
17264
17311
|
type: "global";
|
|
17265
17312
|
name: string;
|
|
17313
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
17266
17314
|
})[] | null | undefined;
|
|
17267
17315
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
17268
17316
|
mcp?: Record<string, {
|
|
@@ -17512,6 +17560,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
17512
17560
|
} | {
|
|
17513
17561
|
type: "global";
|
|
17514
17562
|
name: string;
|
|
17563
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
17515
17564
|
})[] | null | undefined;
|
|
17516
17565
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
17517
17566
|
mcp?: Record<string, {
|
|
@@ -17527,7 +17576,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
17527
17576
|
}> | null | undefined;
|
|
17528
17577
|
};
|
|
17529
17578
|
name?: string | null | undefined;
|
|
17530
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "
|
|
17579
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | undefined;
|
|
17531
17580
|
}, {
|
|
17532
17581
|
inline_prompt: {
|
|
17533
17582
|
options?: {
|
|
@@ -17761,6 +17810,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
17761
17810
|
} | {
|
|
17762
17811
|
type: "global";
|
|
17763
17812
|
name: string;
|
|
17813
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
17764
17814
|
})[] | null | undefined;
|
|
17765
17815
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
17766
17816
|
mcp?: Record<string, {
|
|
@@ -17776,7 +17826,7 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
17776
17826
|
}> | null | undefined;
|
|
17777
17827
|
};
|
|
17778
17828
|
name?: string | null | undefined;
|
|
17779
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "
|
|
17829
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | undefined;
|
|
17780
17830
|
}>]>, z.ZodObject<{
|
|
17781
17831
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
17782
17832
|
expected: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -19785,12 +19835,15 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
19785
19835
|
}>, z.ZodObject<{
|
|
19786
19836
|
type: z.ZodLiteral<"global">;
|
|
19787
19837
|
name: z.ZodString;
|
|
19838
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
19788
19839
|
}, "strip", z.ZodTypeAny, {
|
|
19789
19840
|
type: "global";
|
|
19790
19841
|
name: string;
|
|
19842
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
19791
19843
|
}, {
|
|
19792
19844
|
type: "global";
|
|
19793
19845
|
name: string;
|
|
19846
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
19794
19847
|
}>]>, "many">, z.ZodNull]>>;
|
|
19795
19848
|
template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
|
|
19796
19849
|
mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -20069,6 +20122,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
20069
20122
|
} | {
|
|
20070
20123
|
type: "global";
|
|
20071
20124
|
name: string;
|
|
20125
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
20072
20126
|
})[] | null | undefined;
|
|
20073
20127
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
20074
20128
|
mcp?: Record<string, {
|
|
@@ -20314,6 +20368,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
20314
20368
|
} | {
|
|
20315
20369
|
type: "global";
|
|
20316
20370
|
name: string;
|
|
20371
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
20317
20372
|
})[] | null | undefined;
|
|
20318
20373
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
20319
20374
|
mcp?: Record<string, {
|
|
@@ -20343,6 +20398,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
20343
20398
|
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
20344
20399
|
description?: string | null | undefined;
|
|
20345
20400
|
tags?: string[] | null | undefined;
|
|
20401
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
20346
20402
|
prompt_data?: {
|
|
20347
20403
|
options?: {
|
|
20348
20404
|
params?: z.objectOutputType<{
|
|
@@ -20575,6 +20631,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
20575
20631
|
} | {
|
|
20576
20632
|
type: "global";
|
|
20577
20633
|
name: string;
|
|
20634
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
20578
20635
|
})[] | null | undefined;
|
|
20579
20636
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
20580
20637
|
mcp?: Record<string, {
|
|
@@ -20589,7 +20646,6 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
20589
20646
|
enabled_tools?: string[] | null | undefined;
|
|
20590
20647
|
}> | null | undefined;
|
|
20591
20648
|
} | null | undefined;
|
|
20592
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "facet" | "preprocessor" | "custom_view" | null | undefined;
|
|
20593
20649
|
}, {
|
|
20594
20650
|
id: string;
|
|
20595
20651
|
org_id: string;
|
|
@@ -20602,6 +20658,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
20602
20658
|
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
20603
20659
|
description?: string | null | undefined;
|
|
20604
20660
|
tags?: string[] | null | undefined;
|
|
20661
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
20605
20662
|
prompt_data?: {
|
|
20606
20663
|
options?: {
|
|
20607
20664
|
params?: z.objectInputType<{
|
|
@@ -20834,6 +20891,7 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
20834
20891
|
} | {
|
|
20835
20892
|
type: "global";
|
|
20836
20893
|
name: string;
|
|
20894
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
20837
20895
|
})[] | null | undefined;
|
|
20838
20896
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
20839
20897
|
mcp?: Record<string, {
|
|
@@ -20848,7 +20906,6 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
20848
20906
|
enabled_tools?: string[] | null | undefined;
|
|
20849
20907
|
}> | null | undefined;
|
|
20850
20908
|
} | null | undefined;
|
|
20851
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "facet" | "preprocessor" | "custom_view" | null | undefined;
|
|
20852
20909
|
}>;
|
|
20853
20910
|
type PromptType = z.infer<typeof Prompt$1>;
|
|
20854
20911
|
declare const PromptSessionEvent: z.ZodObject<{
|
|
@@ -20873,9 +20930,9 @@ declare const PromptSessionEvent: z.ZodObject<{
|
|
|
20873
20930
|
prompt_session_id: string;
|
|
20874
20931
|
_pagination_key?: string | null | undefined;
|
|
20875
20932
|
tags?: string[] | null | undefined;
|
|
20933
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
20876
20934
|
completion?: unknown;
|
|
20877
20935
|
prompt_data?: unknown;
|
|
20878
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "facet" | "preprocessor" | "custom_view" | null | undefined;
|
|
20879
20936
|
function_data?: unknown;
|
|
20880
20937
|
prompt_session_data?: unknown;
|
|
20881
20938
|
object_data?: unknown;
|
|
@@ -20887,9 +20944,9 @@ declare const PromptSessionEvent: z.ZodObject<{
|
|
|
20887
20944
|
prompt_session_id: string;
|
|
20888
20945
|
_pagination_key?: string | null | undefined;
|
|
20889
20946
|
tags?: string[] | null | undefined;
|
|
20947
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
20890
20948
|
completion?: unknown;
|
|
20891
20949
|
prompt_data?: unknown;
|
|
20892
|
-
function_type?: "tool" | "task" | "scorer" | "llm" | "facet" | "preprocessor" | "custom_view" | null | undefined;
|
|
20893
20950
|
function_data?: unknown;
|
|
20894
20951
|
prompt_session_data?: unknown;
|
|
20895
20952
|
object_data?: unknown;
|
|
@@ -20924,7 +20981,7 @@ declare const SSEProgressEventData: z.ZodObject<{
|
|
|
20924
20981
|
data: z.ZodString;
|
|
20925
20982
|
}, "strip", z.ZodTypeAny, {
|
|
20926
20983
|
id: string;
|
|
20927
|
-
object_type: "prompt" | "tool" | "task" | "scorer" | "
|
|
20984
|
+
object_type: "prompt" | "tool" | "task" | "scorer" | "custom_view" | "preprocessor" | "facet" | "agent";
|
|
20928
20985
|
name: string;
|
|
20929
20986
|
data: string;
|
|
20930
20987
|
event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
|
|
@@ -20939,7 +20996,7 @@ declare const SSEProgressEventData: z.ZodObject<{
|
|
|
20939
20996
|
} | null | undefined;
|
|
20940
20997
|
}, {
|
|
20941
20998
|
id: string;
|
|
20942
|
-
object_type: "prompt" | "tool" | "task" | "scorer" | "
|
|
20999
|
+
object_type: "prompt" | "tool" | "task" | "scorer" | "custom_view" | "preprocessor" | "facet" | "agent";
|
|
20943
21000
|
name: string;
|
|
20944
21001
|
data: string;
|
|
20945
21002
|
event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
|
|
@@ -22967,7 +23024,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
22967
23024
|
data: z.ZodString;
|
|
22968
23025
|
}, "strip", z.ZodTypeAny, {
|
|
22969
23026
|
id: string;
|
|
22970
|
-
object_type: "prompt" | "tool" | "task" | "scorer" | "
|
|
23027
|
+
object_type: "prompt" | "tool" | "task" | "scorer" | "custom_view" | "preprocessor" | "facet" | "agent";
|
|
22971
23028
|
name: string;
|
|
22972
23029
|
data: string;
|
|
22973
23030
|
event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
|
|
@@ -22982,7 +23039,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
22982
23039
|
} | null | undefined;
|
|
22983
23040
|
}, {
|
|
22984
23041
|
id: string;
|
|
22985
|
-
object_type: "prompt" | "tool" | "task" | "scorer" | "
|
|
23042
|
+
object_type: "prompt" | "tool" | "task" | "scorer" | "custom_view" | "preprocessor" | "facet" | "agent";
|
|
22986
23043
|
name: string;
|
|
22987
23044
|
data: string;
|
|
22988
23045
|
event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
|
|
@@ -23000,7 +23057,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
23000
23057
|
type: "progress";
|
|
23001
23058
|
data: {
|
|
23002
23059
|
id: string;
|
|
23003
|
-
object_type: "prompt" | "tool" | "task" | "scorer" | "
|
|
23060
|
+
object_type: "prompt" | "tool" | "task" | "scorer" | "custom_view" | "preprocessor" | "facet" | "agent";
|
|
23004
23061
|
name: string;
|
|
23005
23062
|
data: string;
|
|
23006
23063
|
event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
|
|
@@ -23018,7 +23075,7 @@ declare const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
23018
23075
|
type: "progress";
|
|
23019
23076
|
data: {
|
|
23020
23077
|
id: string;
|
|
23021
|
-
object_type: "prompt" | "tool" | "task" | "scorer" | "
|
|
23078
|
+
object_type: "prompt" | "tool" | "task" | "scorer" | "custom_view" | "preprocessor" | "facet" | "agent";
|
|
23022
23079
|
name: string;
|
|
23023
23080
|
data: string;
|
|
23024
23081
|
event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
|
|
@@ -23147,6 +23204,10 @@ interface InvokeFunctionArgs<Input, Output, Stream extends boolean = false> {
|
|
|
23147
23204
|
* The name of the global function to invoke.
|
|
23148
23205
|
*/
|
|
23149
23206
|
globalFunction?: string;
|
|
23207
|
+
/**
|
|
23208
|
+
* The type of the global function to invoke. If unspecified, defaults to 'scorer' for backward compatibility.
|
|
23209
|
+
*/
|
|
23210
|
+
functionType?: FunctionTypeEnumType;
|
|
23150
23211
|
/**
|
|
23151
23212
|
* The ID of the prompt session to invoke the function from.
|
|
23152
23213
|
*/
|
|
@@ -23376,6 +23437,8 @@ interface MiddlewareConfig {
|
|
|
23376
23437
|
* @param config - Configuration options for the middleware
|
|
23377
23438
|
* @returns A middleware object compatible with AI SDK v2's wrapLanguageModel
|
|
23378
23439
|
*
|
|
23440
|
+
* @deprecated The new `wrapAISDK` replaces this middleware.
|
|
23441
|
+
*
|
|
23379
23442
|
* @example
|
|
23380
23443
|
* ```typescript
|
|
23381
23444
|
* import { wrapLanguageModel } from "ai";
|
|
@@ -23387,6 +23450,7 @@ interface MiddlewareConfig {
|
|
|
23387
23450
|
* middleware: BraintrustMiddleware({ debug: true, name: "MyMiddleware" })
|
|
23388
23451
|
* });
|
|
23389
23452
|
* ```
|
|
23453
|
+
*
|
|
23390
23454
|
*/
|
|
23391
23455
|
declare function BraintrustMiddleware(config?: MiddlewareConfig): LanguageModelV2Middleware<any, any>;
|
|
23392
23456
|
|
|
@@ -30032,12 +30096,15 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
30032
30096
|
}>, z.ZodObject<{
|
|
30033
30097
|
type: z.ZodLiteral<"global">;
|
|
30034
30098
|
name: z.ZodString;
|
|
30099
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
30035
30100
|
}, "strip", z.ZodTypeAny, {
|
|
30036
30101
|
type: "global";
|
|
30037
30102
|
name: string;
|
|
30103
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
30038
30104
|
}, {
|
|
30039
30105
|
type: "global";
|
|
30040
30106
|
name: string;
|
|
30107
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
30041
30108
|
}>]>, "many">, z.ZodNull]>>;
|
|
30042
30109
|
template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
|
|
30043
30110
|
mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -30316,6 +30383,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
30316
30383
|
} | {
|
|
30317
30384
|
type: "global";
|
|
30318
30385
|
name: string;
|
|
30386
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
30319
30387
|
})[] | null | undefined;
|
|
30320
30388
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
30321
30389
|
mcp?: Record<string, {
|
|
@@ -30561,6 +30629,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
30561
30629
|
} | {
|
|
30562
30630
|
type: "global";
|
|
30563
30631
|
name: string;
|
|
30632
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
30564
30633
|
})[] | null | undefined;
|
|
30565
30634
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
30566
30635
|
mcp?: Record<string, {
|
|
@@ -30811,6 +30880,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
30811
30880
|
} | {
|
|
30812
30881
|
type: "global";
|
|
30813
30882
|
name: string;
|
|
30883
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
30814
30884
|
})[] | null | undefined;
|
|
30815
30885
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
30816
30886
|
mcp?: Record<string, {
|
|
@@ -31060,6 +31130,7 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
31060
31130
|
} | {
|
|
31061
31131
|
type: "global";
|
|
31062
31132
|
name: string;
|
|
31133
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
31063
31134
|
})[] | null | undefined;
|
|
31064
31135
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
31065
31136
|
mcp?: Record<string, {
|
|
@@ -32317,12 +32388,15 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
32317
32388
|
}>, z.ZodObject<{
|
|
32318
32389
|
type: z.ZodLiteral<"global">;
|
|
32319
32390
|
name: z.ZodString;
|
|
32391
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
32320
32392
|
}, "strip", z.ZodTypeAny, {
|
|
32321
32393
|
type: "global";
|
|
32322
32394
|
name: string;
|
|
32395
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
32323
32396
|
}, {
|
|
32324
32397
|
type: "global";
|
|
32325
32398
|
name: string;
|
|
32399
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
32326
32400
|
}>]>, "many">, z.ZodNull]>>;
|
|
32327
32401
|
template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
|
|
32328
32402
|
mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -32601,6 +32675,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
32601
32675
|
} | {
|
|
32602
32676
|
type: "global";
|
|
32603
32677
|
name: string;
|
|
32678
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
32604
32679
|
})[] | null | undefined;
|
|
32605
32680
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
32606
32681
|
mcp?: Record<string, {
|
|
@@ -32846,6 +32921,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
32846
32921
|
} | {
|
|
32847
32922
|
type: "global";
|
|
32848
32923
|
name: string;
|
|
32924
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
32849
32925
|
})[] | null | undefined;
|
|
32850
32926
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
32851
32927
|
mcp?: Record<string, {
|
|
@@ -33096,6 +33172,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
33096
33172
|
} | {
|
|
33097
33173
|
type: "global";
|
|
33098
33174
|
name: string;
|
|
33175
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
33099
33176
|
})[] | null | undefined;
|
|
33100
33177
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
33101
33178
|
mcp?: Record<string, {
|
|
@@ -33345,6 +33422,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
33345
33422
|
} | {
|
|
33346
33423
|
type: "global";
|
|
33347
33424
|
name: string;
|
|
33425
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
33348
33426
|
})[] | null | undefined;
|
|
33349
33427
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
33350
33428
|
mcp?: Record<string, {
|
|
@@ -33611,6 +33689,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
33611
33689
|
} | {
|
|
33612
33690
|
type: "global";
|
|
33613
33691
|
name: string;
|
|
33692
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
33614
33693
|
})[] | null | undefined;
|
|
33615
33694
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
33616
33695
|
mcp?: Record<string, {
|
|
@@ -33867,6 +33946,7 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
33867
33946
|
} | {
|
|
33868
33947
|
type: "global";
|
|
33869
33948
|
name: string;
|
|
33949
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
33870
33950
|
})[] | null | undefined;
|
|
33871
33951
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
33872
33952
|
mcp?: Record<string, {
|
|
@@ -35115,12 +35195,15 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
35115
35195
|
}>, z.ZodObject<{
|
|
35116
35196
|
type: z.ZodLiteral<"global">;
|
|
35117
35197
|
name: z.ZodString;
|
|
35198
|
+
function_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet"]>, z.ZodNull]>>;
|
|
35118
35199
|
}, "strip", z.ZodTypeAny, {
|
|
35119
35200
|
type: "global";
|
|
35120
35201
|
name: string;
|
|
35202
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
35121
35203
|
}, {
|
|
35122
35204
|
type: "global";
|
|
35123
35205
|
name: string;
|
|
35206
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
35124
35207
|
}>]>, "many">, z.ZodNull]>>;
|
|
35125
35208
|
template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
|
|
35126
35209
|
mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -35399,6 +35482,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
35399
35482
|
} | {
|
|
35400
35483
|
type: "global";
|
|
35401
35484
|
name: string;
|
|
35485
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
35402
35486
|
})[] | null | undefined;
|
|
35403
35487
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
35404
35488
|
mcp?: Record<string, {
|
|
@@ -35644,6 +35728,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
35644
35728
|
} | {
|
|
35645
35729
|
type: "global";
|
|
35646
35730
|
name: string;
|
|
35731
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
35647
35732
|
})[] | null | undefined;
|
|
35648
35733
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
35649
35734
|
mcp?: Record<string, {
|
|
@@ -35894,6 +35979,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
35894
35979
|
} | {
|
|
35895
35980
|
type: "global";
|
|
35896
35981
|
name: string;
|
|
35982
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
35897
35983
|
})[] | null | undefined;
|
|
35898
35984
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
35899
35985
|
mcp?: Record<string, {
|
|
@@ -36143,6 +36229,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
36143
36229
|
} | {
|
|
36144
36230
|
type: "global";
|
|
36145
36231
|
name: string;
|
|
36232
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
36146
36233
|
})[] | null | undefined;
|
|
36147
36234
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
36148
36235
|
mcp?: Record<string, {
|
|
@@ -36409,6 +36496,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
36409
36496
|
} | {
|
|
36410
36497
|
type: "global";
|
|
36411
36498
|
name: string;
|
|
36499
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
36412
36500
|
})[] | null | undefined;
|
|
36413
36501
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
36414
36502
|
mcp?: Record<string, {
|
|
@@ -36665,6 +36753,7 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
36665
36753
|
} | {
|
|
36666
36754
|
type: "global";
|
|
36667
36755
|
name: string;
|
|
36756
|
+
function_type?: "tool" | "task" | "scorer" | "llm" | "custom_view" | "preprocessor" | "facet" | null | undefined;
|
|
36668
36757
|
})[] | null | undefined;
|
|
36669
36758
|
template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
|
|
36670
36759
|
mcp?: Record<string, {
|