promptfoo 0.78.3 → 0.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/dist/package.json +13 -10
- package/dist/src/assertions/AssertionsResult.js +1 -1
- package/dist/src/assertions/AssertionsResult.js.map +1 -1
- package/dist/src/assertions.d.ts.map +1 -1
- package/dist/src/assertions.js +17 -19
- package/dist/src/assertions.js.map +1 -1
- package/dist/src/commands/eval/filterTests.js +2 -2
- package/dist/src/commands/eval/filterTests.js.map +1 -1
- package/dist/src/commands/eval.d.ts.map +1 -1
- package/dist/src/commands/eval.js +28 -15
- package/dist/src/commands/eval.js.map +1 -1
- package/dist/src/commands/generate/dataset.js +2 -2
- package/dist/src/commands/generate/dataset.js.map +1 -1
- package/dist/src/commands/generate/redteam.d.ts.map +1 -1
- package/dist/src/commands/generate/redteam.js +5 -2
- package/dist/src/commands/generate/redteam.js.map +1 -1
- package/dist/src/commands/redteam.d.ts.map +1 -1
- package/dist/src/commands/redteam.js +81 -16
- package/dist/src/commands/redteam.js.map +1 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +5 -3
- package/dist/src/config.js.map +1 -1
- package/dist/src/csv.js +2 -2
- package/dist/src/csv.js.map +1 -1
- package/dist/src/database/tables.d.ts +45 -42
- package/dist/src/database/tables.d.ts.map +1 -1
- package/dist/src/envars.d.ts +25 -24
- package/dist/src/envars.d.ts.map +1 -1
- package/dist/src/envars.js +4 -4
- package/dist/src/envars.js.map +1 -1
- package/dist/src/evaluator.d.ts.map +1 -1
- package/dist/src/evaluator.js +14 -58
- package/dist/src/evaluator.js.map +1 -1
- package/dist/src/evaluatorHelpers.js +7 -7
- package/dist/src/evaluatorHelpers.js.map +1 -1
- package/dist/src/fetch.js +1 -1
- package/dist/src/fetch.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/integrations/helicone.js +5 -5
- package/dist/src/integrations/helicone.js.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/main.js +6 -10
- package/dist/src/main.js.map +1 -1
- package/dist/src/matchers.d.ts.map +1 -1
- package/dist/src/matchers.js +10 -8
- package/dist/src/matchers.js.map +1 -1
- package/dist/src/onboarding.d.ts +2 -2
- package/dist/src/onboarding.d.ts.map +1 -1
- package/dist/src/onboarding.js +5 -7
- package/dist/src/onboarding.js.map +1 -1
- package/dist/src/providers/azureopenai.js +2 -2
- package/dist/src/providers/azureopenai.js.map +1 -1
- package/dist/src/providers/bedrock.js +2 -2
- package/dist/src/providers/bedrock.js.map +1 -1
- package/dist/src/providers/groq.d.ts +40 -0
- package/dist/src/providers/groq.d.ts.map +1 -0
- package/dist/src/providers/groq.js +118 -0
- package/dist/src/providers/groq.js.map +1 -0
- package/dist/src/providers/huggingface.js +1 -1
- package/dist/src/providers/huggingface.js.map +1 -1
- package/dist/src/providers/openai.d.ts.map +1 -1
- package/dist/src/providers/openai.js +7 -5
- package/dist/src/providers/openai.js.map +1 -1
- package/dist/src/providers/pythonCompletion.js +1 -1
- package/dist/src/providers/pythonCompletion.js.map +1 -1
- package/dist/src/providers.d.ts +2 -0
- package/dist/src/providers.d.ts.map +1 -1
- package/dist/src/providers.js +6 -0
- package/dist/src/providers.js.map +1 -1
- package/dist/src/redteam/constants.d.ts +4 -4
- package/dist/src/redteam/constants.d.ts.map +1 -1
- package/dist/src/redteam/constants.js +6 -1
- package/dist/src/redteam/constants.js.map +1 -1
- package/dist/src/redteam/graders.d.ts.map +1 -1
- package/dist/src/redteam/graders.js +2 -0
- package/dist/src/redteam/graders.js.map +1 -1
- package/dist/src/redteam/index.d.ts +6 -1
- package/dist/src/redteam/index.d.ts.map +1 -1
- package/dist/src/redteam/index.js +109 -41
- package/dist/src/redteam/index.js.map +1 -1
- package/dist/src/redteam/plugins/base.d.ts.map +1 -1
- package/dist/src/redteam/plugins/base.js +1 -3
- package/dist/src/redteam/plugins/base.js.map +1 -1
- package/dist/src/redteam/plugins/harmful.d.ts.map +1 -1
- package/dist/src/redteam/plugins/harmful.js +77 -63
- package/dist/src/redteam/plugins/harmful.js.map +1 -1
- package/dist/src/redteam/plugins/index.d.ts.map +1 -1
- package/dist/src/redteam/plugins/index.js +5 -0
- package/dist/src/redteam/plugins/index.js.map +1 -1
- package/dist/src/redteam/plugins/policy.d.ts.map +1 -1
- package/dist/src/redteam/plugins/policy.js +2 -4
- package/dist/src/redteam/plugins/policy.js.map +1 -1
- package/dist/src/redteam/plugins/promptExtraction.d.ts +21 -0
- package/dist/src/redteam/plugins/promptExtraction.d.ts.map +1 -0
- package/dist/src/redteam/plugins/promptExtraction.js +113 -0
- package/dist/src/redteam/plugins/promptExtraction.js.map +1 -0
- package/dist/src/redteam/plugins/sqlInjection.d.ts.map +1 -1
- package/dist/src/redteam/plugins/sqlInjection.js +1 -1
- package/dist/src/redteam/plugins/sqlInjection.js.map +1 -1
- package/dist/src/redteam/providers/constants.d.ts +1 -0
- package/dist/src/redteam/providers/constants.d.ts.map +1 -1
- package/dist/src/redteam/providers/constants.js +3 -2
- package/dist/src/redteam/providers/constants.js.map +1 -1
- package/dist/src/redteam/providers/crescendo/index.js +2 -2
- package/dist/src/redteam/providers/crescendo/index.js.map +1 -1
- package/dist/src/redteam/providers/iterative.js +1 -1
- package/dist/src/redteam/providers/iterative.js.map +1 -1
- package/dist/src/redteam/providers/iterativeImage.js +1 -1
- package/dist/src/redteam/providers/iterativeImage.js.map +1 -1
- package/dist/src/redteam/strategies/index.d.ts +1 -1
- package/dist/src/redteam/strategies/index.d.ts.map +1 -1
- package/dist/src/redteam/strategies/index.js +19 -9
- package/dist/src/redteam/strategies/index.js.map +1 -1
- package/dist/src/redteam/strategies/multilingual.d.ts +4 -0
- package/dist/src/redteam/strategies/multilingual.d.ts.map +1 -0
- package/dist/src/redteam/strategies/multilingual.js +50 -0
- package/dist/src/redteam/strategies/multilingual.js.map +1 -0
- package/dist/src/redteam/strategies/{injections.d.ts → promptInjections.d.ts} +1 -1
- package/dist/src/redteam/strategies/promptInjections.d.ts.map +1 -0
- package/dist/src/redteam/strategies/{injections.js → promptInjections.js} +1 -1
- package/dist/src/redteam/strategies/promptInjections.js.map +1 -0
- package/dist/src/types/index.d.ts +232 -190
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/index.js +23 -11
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/types/providers.d.ts +1 -0
- package/dist/src/types/providers.d.ts.map +1 -1
- package/dist/src/types/providers.js.map +1 -1
- package/dist/src/types/redteam.d.ts +5 -2
- package/dist/src/types/redteam.d.ts.map +1 -1
- package/dist/src/validators/redteam.d.ts +21 -0
- package/dist/src/validators/redteam.d.ts.map +1 -1
- package/dist/src/validators/redteam.js +13 -0
- package/dist/src/validators/redteam.js.map +1 -1
- package/dist/src/web/nextui/404/index.html +1 -1
- package/dist/src/web/nextui/404.html +1 -1
- package/dist/src/web/nextui/_next/static/chunks/{485-d94c512bab4204ef.js → 132-d6bea93785831786.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/148-f6a1a312ab2d360a.js +97 -0
- package/dist/src/web/nextui/_next/static/chunks/{916-b92fea2ab6136411.js → 193-fbb29b23a7b3df82.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/258-9d586b1d0e004d05.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/{476-0afb5eb266c57b7f.js → 264-f97b27096cb02f29.js} +3 -3
- package/dist/src/web/nextui/_next/static/chunks/276-b1a73ab92831c2f8.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/{856-808babe20420dc5b.js → 325-07eac9e397582e87.js} +2 -2
- package/dist/src/web/nextui/_next/static/chunks/391-9f6f260597339469.js +2 -0
- package/dist/src/web/nextui/_next/static/chunks/577-f9ba150349bd60d0.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/65-d3958feb29430005.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/654-7ef84f69b226e6ab.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/734-d2ca9e7d051c494c.js +28 -0
- package/dist/src/web/nextui/_next/static/chunks/{216-41f093798f2200fe.js → 798-b5823c11472542e4.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/854-c18aaae33bccdc36.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/874-66f90697795eddbc.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/{983-9c47c398e832cf0b.js → 947-94ff53974301d426.js} +13 -13
- package/dist/src/web/nextui/_next/static/chunks/962-3281929f7790c813.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/972-cbb6d905c3a19e41.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/975-db84f98b8dd028ab.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/auth/login/page-252a14bf379f74d0.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/auth/signup/page-f98e3b4d3b58f5f5.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/datasets/page-1fa704bf80a58a79.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/{page-9bc768bf1e13119e.js → page-e24502f7b480ebd4.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/{page-acc3dae78a7a9e91.js → page-b57c790219de0e23.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/{layout-bece9e53b5d250aa.js → layout-289d49f5059afb54.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/page-81e3b8fee37eaf67.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/progress/page-ea10abd41ddd664a.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/prompts/page-70ba6f08425e6551.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/report/page-08095713de946c4b.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/setup/page-1e593de415907683.js +1 -0
- package/dist/src/web/nextui/auth/login/index.html +1 -1
- package/dist/src/web/nextui/auth/login/index.txt +3 -3
- package/dist/src/web/nextui/auth/signup/index.html +1 -1
- package/dist/src/web/nextui/auth/signup/index.txt +3 -3
- package/dist/src/web/nextui/datasets/index.html +1 -1
- package/dist/src/web/nextui/datasets/index.txt +3 -3
- package/dist/src/web/nextui/eval/index.html +1 -1
- package/dist/src/web/nextui/eval/index.txt +3 -3
- package/dist/src/web/nextui/index.html +1 -1
- package/dist/src/web/nextui/index.txt +2 -2
- package/dist/src/web/nextui/progress/index.html +1 -1
- package/dist/src/web/nextui/progress/index.txt +3 -3
- package/dist/src/web/nextui/prompts/index.html +1 -1
- package/dist/src/web/nextui/prompts/index.txt +3 -3
- package/dist/src/web/nextui/report/index.html +1 -1
- package/dist/src/web/nextui/report/index.txt +3 -3
- package/dist/src/web/nextui/setup/index.html +1 -1
- package/dist/src/web/nextui/setup/index.txt +3 -3
- package/dist/test/assertions.test.js +167 -0
- package/dist/test/assertions.test.js.map +1 -1
- package/dist/test/main.test.d.ts +2 -0
- package/dist/test/main.test.d.ts.map +1 -0
- package/dist/test/main.test.js +49 -0
- package/dist/test/main.test.js.map +1 -0
- package/dist/test/providers.groq.test.d.ts +2 -0
- package/dist/test/providers.groq.test.d.ts.map +1 -0
- package/dist/test/providers.groq.test.js +264 -0
- package/dist/test/providers.groq.test.js.map +1 -0
- package/dist/test/providers.pythonCompletion.test.js +2 -2
- package/dist/test/providers.pythonCompletion.test.js.map +1 -1
- package/dist/test/redteam/index.test.d.ts +2 -0
- package/dist/test/redteam/index.test.d.ts.map +1 -0
- package/dist/test/redteam/index.test.js +281 -0
- package/dist/test/redteam/index.test.js.map +1 -0
- package/dist/test/types.test.js +26 -0
- package/dist/test/types.test.js.map +1 -1
- package/dist/test/util.test.js +1 -0
- package/dist/test/util.test.js.map +1 -1
- package/package.json +13 -10
- package/dist/src/redteam/strategies/injections.d.ts.map +0 -1
- package/dist/src/redteam/strategies/injections.js.map +0 -1
- package/dist/src/web/nextui/_next/static/chunks/155-4e319e68476266ee.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/258-4b7fded41a7208ac.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/304-cf667fe8f06238b4.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/322-b47b6cc3f5b5fdb8.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/325-9b7b85306b746b1d.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/339-79124d204fa988a3.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/374-45af52ed3050e856.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/378-c135e497df1864cb.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/493-ebd12f00541c4969.js +0 -2
- package/dist/src/web/nextui/_next/static/chunks/585-8b9b2c41f03d3ab8.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/903-7cc440d9f9e9f95d.js +0 -97
- package/dist/src/web/nextui/_next/static/chunks/905-78cd666f27891ee6.js +0 -28
- package/dist/src/web/nextui/_next/static/chunks/969-6ab6c8f4158da970.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/auth/login/page-7134c0901e4f0212.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/auth/signup/page-d7ebbf82bbbce998.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/datasets/page-28f9bf8ecd740718.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/page-b6714efe6c381b92.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/progress/page-2d2dd4e665a6304a.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/prompts/page-34d8a2070dde71a1.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/report/page-5c9a9b839d95d1ac.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/setup/page-e19ab8695d6ac015.js +0 -1
- /package/dist/src/web/nextui/_next/static/{glbZwKe9JIxYb5HK0YQnG → 2sN7Sw-KrSvHkk6AvdfLW}/_buildManifest.js +0 -0
- /package/dist/src/web/nextui/_next/static/{glbZwKe9JIxYb5HK0YQnG → 2sN7Sw-KrSvHkk6AvdfLW}/_ssgManifest.js +0 -0
|
@@ -29,7 +29,6 @@ export declare const CommandLineOptionsSchema: z.ZodObject<{
|
|
|
29
29
|
share: z.ZodOptional<z.ZodBoolean>;
|
|
30
30
|
progressBar: z.ZodOptional<z.ZodBoolean>;
|
|
31
31
|
watch: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
interactiveProviders: z.ZodOptional<z.ZodBoolean>;
|
|
33
32
|
filterFailing: z.ZodOptional<z.ZodString>;
|
|
34
33
|
filterFirstN: z.ZodOptional<z.ZodString>;
|
|
35
34
|
filterPattern: z.ZodOptional<z.ZodString>;
|
|
@@ -61,7 +60,6 @@ export declare const CommandLineOptionsSchema: z.ZodObject<{
|
|
|
61
60
|
share?: boolean | undefined;
|
|
62
61
|
progressBar?: boolean | undefined;
|
|
63
62
|
watch?: boolean | undefined;
|
|
64
|
-
interactiveProviders?: boolean | undefined;
|
|
65
63
|
filterFailing?: string | undefined;
|
|
66
64
|
filterFirstN?: string | undefined;
|
|
67
65
|
filterPattern?: string | undefined;
|
|
@@ -93,7 +91,6 @@ export declare const CommandLineOptionsSchema: z.ZodObject<{
|
|
|
93
91
|
share?: boolean | undefined;
|
|
94
92
|
progressBar?: boolean | undefined;
|
|
95
93
|
watch?: boolean | undefined;
|
|
96
|
-
interactiveProviders?: boolean | undefined;
|
|
97
94
|
filterFailing?: string | undefined;
|
|
98
95
|
filterFirstN?: string | undefined;
|
|
99
96
|
filterPattern?: string | undefined;
|
|
@@ -197,35 +194,40 @@ export interface RunEvalOptions {
|
|
|
197
194
|
repeatIndex: number;
|
|
198
195
|
}
|
|
199
196
|
declare const EvaluateOptionsSchema: z.ZodObject<{
|
|
200
|
-
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
201
|
-
showProgressBar: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
-
progressCallback: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodType<RunEvalOptions, z.ZodTypeDef, RunEvalOptions>], null>, z.ZodVoid>>;
|
|
203
|
-
generateSuggestions: z.ZodOptional<z.ZodBoolean>;
|
|
204
|
-
repeat: z.ZodOptional<z.ZodNumber>;
|
|
205
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
206
197
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
207
199
|
eventSource: z.ZodOptional<z.ZodString>;
|
|
200
|
+
generateSuggestions: z.ZodOptional<z.ZodBoolean>;
|
|
201
|
+
/**
|
|
202
|
+
* @deprecated This option has been removed as of 2024-08-21.
|
|
203
|
+
* @description Use `maxConcurrency: 1` or the CLI option `-j 1` instead to run evaluations serially.
|
|
204
|
+
* @author mldangelo
|
|
205
|
+
*/
|
|
208
206
|
interactiveProviders: z.ZodOptional<z.ZodBoolean>;
|
|
207
|
+
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
208
|
+
progressCallback: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodType<RunEvalOptions, z.ZodTypeDef, RunEvalOptions>], null>, z.ZodVoid>>;
|
|
209
|
+
repeat: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
showProgressBar: z.ZodOptional<z.ZodBoolean>;
|
|
209
211
|
}, "strip", z.ZodTypeAny, {
|
|
210
212
|
delay?: number | undefined;
|
|
211
213
|
maxConcurrency?: number | undefined;
|
|
212
214
|
repeat?: number | undefined;
|
|
213
215
|
cache?: boolean | undefined;
|
|
214
|
-
interactiveProviders?: boolean | undefined;
|
|
215
216
|
generateSuggestions?: boolean | undefined;
|
|
216
|
-
showProgressBar?: boolean | undefined;
|
|
217
|
-
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
218
217
|
eventSource?: string | undefined;
|
|
218
|
+
interactiveProviders?: boolean | undefined;
|
|
219
|
+
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
220
|
+
showProgressBar?: boolean | undefined;
|
|
219
221
|
}, {
|
|
220
222
|
delay?: number | undefined;
|
|
221
223
|
maxConcurrency?: number | undefined;
|
|
222
224
|
repeat?: number | undefined;
|
|
223
225
|
cache?: boolean | undefined;
|
|
224
|
-
interactiveProviders?: boolean | undefined;
|
|
225
226
|
generateSuggestions?: boolean | undefined;
|
|
226
|
-
showProgressBar?: boolean | undefined;
|
|
227
|
-
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
228
227
|
eventSource?: string | undefined;
|
|
228
|
+
interactiveProviders?: boolean | undefined;
|
|
229
|
+
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
230
|
+
showProgressBar?: boolean | undefined;
|
|
229
231
|
}>;
|
|
230
232
|
export type EvaluateOptions = z.infer<typeof EvaluateOptionsSchema>;
|
|
231
233
|
export declare const CompletedPromptSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -10424,6 +10426,18 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10424
10426
|
label?: string | undefined;
|
|
10425
10427
|
}>>]>, "many">]>;
|
|
10426
10428
|
prompts: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
10429
|
+
id: z.ZodString;
|
|
10430
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10431
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
10432
|
+
}, "strip", z.ZodTypeAny, {
|
|
10433
|
+
id: string;
|
|
10434
|
+
raw?: string | undefined;
|
|
10435
|
+
label?: string | undefined;
|
|
10436
|
+
}, {
|
|
10437
|
+
id: string;
|
|
10438
|
+
raw?: string | undefined;
|
|
10439
|
+
label?: string | undefined;
|
|
10440
|
+
}>, z.ZodObject<{
|
|
10427
10441
|
id: z.ZodOptional<z.ZodString>;
|
|
10428
10442
|
raw: z.ZodString;
|
|
10429
10443
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -10460,7 +10474,7 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10460
10474
|
display?: string | undefined;
|
|
10461
10475
|
config?: any;
|
|
10462
10476
|
}>]>, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
10463
|
-
tests: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
10477
|
+
tests: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
10464
10478
|
description: z.ZodOptional<z.ZodString>;
|
|
10465
10479
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodNumber, string, number>, z.ZodEffects<z.ZodBoolean, string, boolean>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodNumber, string, number>, z.ZodEffects<z.ZodBoolean, string, boolean>]>, "many">, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodArray<z.ZodAny, "many">]>>>;
|
|
10466
10480
|
provider: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
@@ -11107,7 +11121,7 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
11107
11121
|
metric?: string | undefined;
|
|
11108
11122
|
})[] | undefined;
|
|
11109
11123
|
threshold?: number | undefined;
|
|
11110
|
-
}>]>, "many">]
|
|
11124
|
+
}>]>, "many">]>>;
|
|
11111
11125
|
scenarios: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11112
11126
|
description: z.ZodOptional<z.ZodString>;
|
|
11113
11127
|
config: z.ZodArray<z.ZodObject<{
|
|
@@ -13634,6 +13648,10 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
13634
13648
|
id?: string | undefined;
|
|
13635
13649
|
display?: string | undefined;
|
|
13636
13650
|
config?: any;
|
|
13651
|
+
} | {
|
|
13652
|
+
id: string;
|
|
13653
|
+
raw?: string | undefined;
|
|
13654
|
+
label?: string | undefined;
|
|
13637
13655
|
})[];
|
|
13638
13656
|
providers: string | (((args_0: string, args_1: {
|
|
13639
13657
|
vars: Record<string, string | {}>;
|
|
@@ -13760,7 +13778,42 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
13760
13778
|
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
13761
13779
|
} | undefined;
|
|
13762
13780
|
}>)[];
|
|
13763
|
-
|
|
13781
|
+
env?: {
|
|
13782
|
+
ANTHROPIC_API_KEY?: string | undefined;
|
|
13783
|
+
BAM_API_KEY?: string | undefined;
|
|
13784
|
+
BAM_API_HOST?: string | undefined;
|
|
13785
|
+
AZURE_OPENAI_API_HOST?: string | undefined;
|
|
13786
|
+
AZURE_OPENAI_API_KEY?: string | undefined;
|
|
13787
|
+
AZURE_OPENAI_API_BASE_URL?: string | undefined;
|
|
13788
|
+
AZURE_OPENAI_BASE_URL?: string | undefined;
|
|
13789
|
+
AWS_BEDROCK_REGION?: string | undefined;
|
|
13790
|
+
COHERE_API_KEY?: string | undefined;
|
|
13791
|
+
OPENAI_API_KEY?: string | undefined;
|
|
13792
|
+
OPENAI_API_HOST?: string | undefined;
|
|
13793
|
+
OPENAI_API_BASE_URL?: string | undefined;
|
|
13794
|
+
OPENAI_BASE_URL?: string | undefined;
|
|
13795
|
+
OPENAI_ORGANIZATION?: string | undefined;
|
|
13796
|
+
REPLICATE_API_KEY?: string | undefined;
|
|
13797
|
+
REPLICATE_API_TOKEN?: string | undefined;
|
|
13798
|
+
LOCALAI_BASE_URL?: string | undefined;
|
|
13799
|
+
MISTRAL_API_HOST?: string | undefined;
|
|
13800
|
+
MISTRAL_API_BASE_URL?: string | undefined;
|
|
13801
|
+
PALM_API_KEY?: string | undefined;
|
|
13802
|
+
PALM_API_HOST?: string | undefined;
|
|
13803
|
+
GOOGLE_API_KEY?: string | undefined;
|
|
13804
|
+
GOOGLE_API_HOST?: string | undefined;
|
|
13805
|
+
VERTEX_API_KEY?: string | undefined;
|
|
13806
|
+
VERTEX_API_HOST?: string | undefined;
|
|
13807
|
+
VERTEX_PROJECT_ID?: string | undefined;
|
|
13808
|
+
VERTEX_REGION?: string | undefined;
|
|
13809
|
+
VERTEX_PUBLISHER?: string | undefined;
|
|
13810
|
+
MISTRAL_API_KEY?: string | undefined;
|
|
13811
|
+
CLOUDFLARE_API_KEY?: string | undefined;
|
|
13812
|
+
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
13813
|
+
} | undefined;
|
|
13814
|
+
metadata?: Record<string, any> | undefined;
|
|
13815
|
+
description?: string | undefined;
|
|
13816
|
+
tests?: string | (string | {
|
|
13764
13817
|
options?: ({
|
|
13765
13818
|
prefix?: string | undefined;
|
|
13766
13819
|
suffix?: string | undefined;
|
|
@@ -13870,42 +13923,7 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
13870
13923
|
metric?: string | undefined;
|
|
13871
13924
|
})[] | undefined;
|
|
13872
13925
|
threshold?: number | undefined;
|
|
13873
|
-
})[];
|
|
13874
|
-
env?: {
|
|
13875
|
-
ANTHROPIC_API_KEY?: string | undefined;
|
|
13876
|
-
BAM_API_KEY?: string | undefined;
|
|
13877
|
-
BAM_API_HOST?: string | undefined;
|
|
13878
|
-
AZURE_OPENAI_API_HOST?: string | undefined;
|
|
13879
|
-
AZURE_OPENAI_API_KEY?: string | undefined;
|
|
13880
|
-
AZURE_OPENAI_API_BASE_URL?: string | undefined;
|
|
13881
|
-
AZURE_OPENAI_BASE_URL?: string | undefined;
|
|
13882
|
-
AWS_BEDROCK_REGION?: string | undefined;
|
|
13883
|
-
COHERE_API_KEY?: string | undefined;
|
|
13884
|
-
OPENAI_API_KEY?: string | undefined;
|
|
13885
|
-
OPENAI_API_HOST?: string | undefined;
|
|
13886
|
-
OPENAI_API_BASE_URL?: string | undefined;
|
|
13887
|
-
OPENAI_BASE_URL?: string | undefined;
|
|
13888
|
-
OPENAI_ORGANIZATION?: string | undefined;
|
|
13889
|
-
REPLICATE_API_KEY?: string | undefined;
|
|
13890
|
-
REPLICATE_API_TOKEN?: string | undefined;
|
|
13891
|
-
LOCALAI_BASE_URL?: string | undefined;
|
|
13892
|
-
MISTRAL_API_HOST?: string | undefined;
|
|
13893
|
-
MISTRAL_API_BASE_URL?: string | undefined;
|
|
13894
|
-
PALM_API_KEY?: string | undefined;
|
|
13895
|
-
PALM_API_HOST?: string | undefined;
|
|
13896
|
-
GOOGLE_API_KEY?: string | undefined;
|
|
13897
|
-
GOOGLE_API_HOST?: string | undefined;
|
|
13898
|
-
VERTEX_API_KEY?: string | undefined;
|
|
13899
|
-
VERTEX_API_HOST?: string | undefined;
|
|
13900
|
-
VERTEX_PROJECT_ID?: string | undefined;
|
|
13901
|
-
VERTEX_REGION?: string | undefined;
|
|
13902
|
-
VERTEX_PUBLISHER?: string | undefined;
|
|
13903
|
-
MISTRAL_API_KEY?: string | undefined;
|
|
13904
|
-
CLOUDFLARE_API_KEY?: string | undefined;
|
|
13905
|
-
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
13906
|
-
} | undefined;
|
|
13907
|
-
metadata?: Record<string, any> | undefined;
|
|
13908
|
-
description?: string | undefined;
|
|
13926
|
+
})[] | undefined;
|
|
13909
13927
|
scenarios?: {
|
|
13910
13928
|
config: {
|
|
13911
13929
|
options?: ({
|
|
@@ -14264,6 +14282,10 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14264
14282
|
id?: string | undefined;
|
|
14265
14283
|
display?: string | undefined;
|
|
14266
14284
|
config?: any;
|
|
14285
|
+
} | {
|
|
14286
|
+
id: string;
|
|
14287
|
+
raw?: string | undefined;
|
|
14288
|
+
label?: string | undefined;
|
|
14267
14289
|
})[];
|
|
14268
14290
|
providers: string | (((args_0: string, args_1: {
|
|
14269
14291
|
vars: Record<string, string | {}>;
|
|
@@ -14390,7 +14412,42 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14390
14412
|
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
14391
14413
|
} | undefined;
|
|
14392
14414
|
}>)[];
|
|
14393
|
-
|
|
14415
|
+
env?: {
|
|
14416
|
+
ANTHROPIC_API_KEY?: string | undefined;
|
|
14417
|
+
BAM_API_KEY?: string | undefined;
|
|
14418
|
+
BAM_API_HOST?: string | undefined;
|
|
14419
|
+
AZURE_OPENAI_API_HOST?: string | undefined;
|
|
14420
|
+
AZURE_OPENAI_API_KEY?: string | undefined;
|
|
14421
|
+
AZURE_OPENAI_API_BASE_URL?: string | undefined;
|
|
14422
|
+
AZURE_OPENAI_BASE_URL?: string | undefined;
|
|
14423
|
+
AWS_BEDROCK_REGION?: string | undefined;
|
|
14424
|
+
COHERE_API_KEY?: string | undefined;
|
|
14425
|
+
OPENAI_API_KEY?: string | undefined;
|
|
14426
|
+
OPENAI_API_HOST?: string | undefined;
|
|
14427
|
+
OPENAI_API_BASE_URL?: string | undefined;
|
|
14428
|
+
OPENAI_BASE_URL?: string | undefined;
|
|
14429
|
+
OPENAI_ORGANIZATION?: string | undefined;
|
|
14430
|
+
REPLICATE_API_KEY?: string | undefined;
|
|
14431
|
+
REPLICATE_API_TOKEN?: string | undefined;
|
|
14432
|
+
LOCALAI_BASE_URL?: string | undefined;
|
|
14433
|
+
MISTRAL_API_HOST?: string | undefined;
|
|
14434
|
+
MISTRAL_API_BASE_URL?: string | undefined;
|
|
14435
|
+
PALM_API_KEY?: string | undefined;
|
|
14436
|
+
PALM_API_HOST?: string | undefined;
|
|
14437
|
+
GOOGLE_API_KEY?: string | undefined;
|
|
14438
|
+
GOOGLE_API_HOST?: string | undefined;
|
|
14439
|
+
VERTEX_API_KEY?: string | undefined;
|
|
14440
|
+
VERTEX_API_HOST?: string | undefined;
|
|
14441
|
+
VERTEX_PROJECT_ID?: string | undefined;
|
|
14442
|
+
VERTEX_REGION?: string | undefined;
|
|
14443
|
+
VERTEX_PUBLISHER?: string | undefined;
|
|
14444
|
+
MISTRAL_API_KEY?: string | undefined;
|
|
14445
|
+
CLOUDFLARE_API_KEY?: string | undefined;
|
|
14446
|
+
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
14447
|
+
} | undefined;
|
|
14448
|
+
metadata?: Record<string, any> | undefined;
|
|
14449
|
+
description?: string | undefined;
|
|
14450
|
+
tests?: string | (string | {
|
|
14394
14451
|
options?: ({
|
|
14395
14452
|
prefix?: string | undefined;
|
|
14396
14453
|
suffix?: string | undefined;
|
|
@@ -14500,42 +14557,7 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14500
14557
|
metric?: string | undefined;
|
|
14501
14558
|
})[] | undefined;
|
|
14502
14559
|
threshold?: number | undefined;
|
|
14503
|
-
})[];
|
|
14504
|
-
env?: {
|
|
14505
|
-
ANTHROPIC_API_KEY?: string | undefined;
|
|
14506
|
-
BAM_API_KEY?: string | undefined;
|
|
14507
|
-
BAM_API_HOST?: string | undefined;
|
|
14508
|
-
AZURE_OPENAI_API_HOST?: string | undefined;
|
|
14509
|
-
AZURE_OPENAI_API_KEY?: string | undefined;
|
|
14510
|
-
AZURE_OPENAI_API_BASE_URL?: string | undefined;
|
|
14511
|
-
AZURE_OPENAI_BASE_URL?: string | undefined;
|
|
14512
|
-
AWS_BEDROCK_REGION?: string | undefined;
|
|
14513
|
-
COHERE_API_KEY?: string | undefined;
|
|
14514
|
-
OPENAI_API_KEY?: string | undefined;
|
|
14515
|
-
OPENAI_API_HOST?: string | undefined;
|
|
14516
|
-
OPENAI_API_BASE_URL?: string | undefined;
|
|
14517
|
-
OPENAI_BASE_URL?: string | undefined;
|
|
14518
|
-
OPENAI_ORGANIZATION?: string | undefined;
|
|
14519
|
-
REPLICATE_API_KEY?: string | undefined;
|
|
14520
|
-
REPLICATE_API_TOKEN?: string | undefined;
|
|
14521
|
-
LOCALAI_BASE_URL?: string | undefined;
|
|
14522
|
-
MISTRAL_API_HOST?: string | undefined;
|
|
14523
|
-
MISTRAL_API_BASE_URL?: string | undefined;
|
|
14524
|
-
PALM_API_KEY?: string | undefined;
|
|
14525
|
-
PALM_API_HOST?: string | undefined;
|
|
14526
|
-
GOOGLE_API_KEY?: string | undefined;
|
|
14527
|
-
GOOGLE_API_HOST?: string | undefined;
|
|
14528
|
-
VERTEX_API_KEY?: string | undefined;
|
|
14529
|
-
VERTEX_API_HOST?: string | undefined;
|
|
14530
|
-
VERTEX_PROJECT_ID?: string | undefined;
|
|
14531
|
-
VERTEX_REGION?: string | undefined;
|
|
14532
|
-
VERTEX_PUBLISHER?: string | undefined;
|
|
14533
|
-
MISTRAL_API_KEY?: string | undefined;
|
|
14534
|
-
CLOUDFLARE_API_KEY?: string | undefined;
|
|
14535
|
-
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
14536
|
-
} | undefined;
|
|
14537
|
-
metadata?: Record<string, any> | undefined;
|
|
14538
|
-
description?: string | undefined;
|
|
14560
|
+
})[] | undefined;
|
|
14539
14561
|
scenarios?: {
|
|
14540
14562
|
config: {
|
|
14541
14563
|
options?: ({
|
|
@@ -15441,6 +15463,18 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15441
15463
|
label?: string | undefined;
|
|
15442
15464
|
}>>]>, "many">]>;
|
|
15443
15465
|
prompts: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
15466
|
+
id: z.ZodString;
|
|
15467
|
+
label: z.ZodOptional<z.ZodString>;
|
|
15468
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
15469
|
+
}, "strip", z.ZodTypeAny, {
|
|
15470
|
+
id: string;
|
|
15471
|
+
raw?: string | undefined;
|
|
15472
|
+
label?: string | undefined;
|
|
15473
|
+
}, {
|
|
15474
|
+
id: string;
|
|
15475
|
+
raw?: string | undefined;
|
|
15476
|
+
label?: string | undefined;
|
|
15477
|
+
}>, z.ZodObject<{
|
|
15444
15478
|
id: z.ZodOptional<z.ZodString>;
|
|
15445
15479
|
raw: z.ZodString;
|
|
15446
15480
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -15477,7 +15511,7 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15477
15511
|
display?: string | undefined;
|
|
15478
15512
|
config?: any;
|
|
15479
15513
|
}>]>, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
15480
|
-
tests: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
15514
|
+
tests: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
15481
15515
|
description: z.ZodOptional<z.ZodString>;
|
|
15482
15516
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodNumber, string, number>, z.ZodEffects<z.ZodBoolean, string, boolean>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodNumber, string, number>, z.ZodEffects<z.ZodBoolean, string, boolean>]>, "many">, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodArray<z.ZodAny, "many">]>>>;
|
|
15483
15517
|
provider: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
@@ -16124,7 +16158,7 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16124
16158
|
metric?: string | undefined;
|
|
16125
16159
|
})[] | undefined;
|
|
16126
16160
|
threshold?: number | undefined;
|
|
16127
|
-
}>]>, "many">]
|
|
16161
|
+
}>]>, "many">]>>;
|
|
16128
16162
|
scenarios: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16129
16163
|
description: z.ZodOptional<z.ZodString>;
|
|
16130
16164
|
config: z.ZodArray<z.ZodObject<{
|
|
@@ -18642,35 +18676,40 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18642
18676
|
redteam: z.ZodOptional<z.ZodType<RedteamConfig, z.ZodTypeDef, RedteamConfig>>;
|
|
18643
18677
|
}, {
|
|
18644
18678
|
evaluateOptions: z.ZodOptional<z.ZodObject<{
|
|
18645
|
-
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
18646
|
-
showProgressBar: z.ZodOptional<z.ZodBoolean>;
|
|
18647
|
-
progressCallback: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodType<RunEvalOptions, z.ZodTypeDef, RunEvalOptions>], null>, z.ZodVoid>>;
|
|
18648
|
-
generateSuggestions: z.ZodOptional<z.ZodBoolean>;
|
|
18649
|
-
repeat: z.ZodOptional<z.ZodNumber>;
|
|
18650
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
18651
18679
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
18680
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
18652
18681
|
eventSource: z.ZodOptional<z.ZodString>;
|
|
18682
|
+
generateSuggestions: z.ZodOptional<z.ZodBoolean>;
|
|
18683
|
+
/**
|
|
18684
|
+
* @deprecated This option has been removed as of 2024-08-21.
|
|
18685
|
+
* @description Use `maxConcurrency: 1` or the CLI option `-j 1` instead to run evaluations serially.
|
|
18686
|
+
* @author mldangelo
|
|
18687
|
+
*/
|
|
18653
18688
|
interactiveProviders: z.ZodOptional<z.ZodBoolean>;
|
|
18689
|
+
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
18690
|
+
progressCallback: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodType<RunEvalOptions, z.ZodTypeDef, RunEvalOptions>], null>, z.ZodVoid>>;
|
|
18691
|
+
repeat: z.ZodOptional<z.ZodNumber>;
|
|
18692
|
+
showProgressBar: z.ZodOptional<z.ZodBoolean>;
|
|
18654
18693
|
}, "strip", z.ZodTypeAny, {
|
|
18655
18694
|
delay?: number | undefined;
|
|
18656
18695
|
maxConcurrency?: number | undefined;
|
|
18657
18696
|
repeat?: number | undefined;
|
|
18658
18697
|
cache?: boolean | undefined;
|
|
18659
|
-
interactiveProviders?: boolean | undefined;
|
|
18660
18698
|
generateSuggestions?: boolean | undefined;
|
|
18661
|
-
showProgressBar?: boolean | undefined;
|
|
18662
|
-
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
18663
18699
|
eventSource?: string | undefined;
|
|
18700
|
+
interactiveProviders?: boolean | undefined;
|
|
18701
|
+
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
18702
|
+
showProgressBar?: boolean | undefined;
|
|
18664
18703
|
}, {
|
|
18665
18704
|
delay?: number | undefined;
|
|
18666
18705
|
maxConcurrency?: number | undefined;
|
|
18667
18706
|
repeat?: number | undefined;
|
|
18668
18707
|
cache?: boolean | undefined;
|
|
18669
|
-
interactiveProviders?: boolean | undefined;
|
|
18670
18708
|
generateSuggestions?: boolean | undefined;
|
|
18671
|
-
showProgressBar?: boolean | undefined;
|
|
18672
|
-
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
18673
18709
|
eventSource?: string | undefined;
|
|
18710
|
+
interactiveProviders?: boolean | undefined;
|
|
18711
|
+
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
18712
|
+
showProgressBar?: boolean | undefined;
|
|
18674
18713
|
}>>;
|
|
18675
18714
|
commandLineOptions: z.ZodOptional<z.ZodObject<{
|
|
18676
18715
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -18694,7 +18733,6 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18694
18733
|
share: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
18695
18734
|
progressBar: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
18696
18735
|
watch: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
18697
|
-
interactiveProviders: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
18698
18736
|
filterFailing: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
18699
18737
|
filterFirstN: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
18700
18738
|
filterPattern: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -18726,7 +18764,6 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18726
18764
|
share?: boolean | undefined;
|
|
18727
18765
|
progressBar?: boolean | undefined;
|
|
18728
18766
|
watch?: boolean | undefined;
|
|
18729
|
-
interactiveProviders?: boolean | undefined;
|
|
18730
18767
|
filterFailing?: string | undefined;
|
|
18731
18768
|
filterFirstN?: string | undefined;
|
|
18732
18769
|
filterPattern?: string | undefined;
|
|
@@ -18758,7 +18795,6 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18758
18795
|
share?: boolean | undefined;
|
|
18759
18796
|
progressBar?: boolean | undefined;
|
|
18760
18797
|
watch?: boolean | undefined;
|
|
18761
|
-
interactiveProviders?: boolean | undefined;
|
|
18762
18798
|
filterFailing?: string | undefined;
|
|
18763
18799
|
filterFirstN?: string | undefined;
|
|
18764
18800
|
filterPattern?: string | undefined;
|
|
@@ -18780,6 +18816,10 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18780
18816
|
id?: string | undefined;
|
|
18781
18817
|
display?: string | undefined;
|
|
18782
18818
|
config?: any;
|
|
18819
|
+
} | {
|
|
18820
|
+
id: string;
|
|
18821
|
+
raw?: string | undefined;
|
|
18822
|
+
label?: string | undefined;
|
|
18783
18823
|
})[];
|
|
18784
18824
|
providers: string | (((args_0: string, args_1: {
|
|
18785
18825
|
vars: Record<string, string | {}>;
|
|
@@ -18906,7 +18946,42 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18906
18946
|
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
18907
18947
|
} | undefined;
|
|
18908
18948
|
}>)[];
|
|
18909
|
-
|
|
18949
|
+
env?: {
|
|
18950
|
+
ANTHROPIC_API_KEY?: string | undefined;
|
|
18951
|
+
BAM_API_KEY?: string | undefined;
|
|
18952
|
+
BAM_API_HOST?: string | undefined;
|
|
18953
|
+
AZURE_OPENAI_API_HOST?: string | undefined;
|
|
18954
|
+
AZURE_OPENAI_API_KEY?: string | undefined;
|
|
18955
|
+
AZURE_OPENAI_API_BASE_URL?: string | undefined;
|
|
18956
|
+
AZURE_OPENAI_BASE_URL?: string | undefined;
|
|
18957
|
+
AWS_BEDROCK_REGION?: string | undefined;
|
|
18958
|
+
COHERE_API_KEY?: string | undefined;
|
|
18959
|
+
OPENAI_API_KEY?: string | undefined;
|
|
18960
|
+
OPENAI_API_HOST?: string | undefined;
|
|
18961
|
+
OPENAI_API_BASE_URL?: string | undefined;
|
|
18962
|
+
OPENAI_BASE_URL?: string | undefined;
|
|
18963
|
+
OPENAI_ORGANIZATION?: string | undefined;
|
|
18964
|
+
REPLICATE_API_KEY?: string | undefined;
|
|
18965
|
+
REPLICATE_API_TOKEN?: string | undefined;
|
|
18966
|
+
LOCALAI_BASE_URL?: string | undefined;
|
|
18967
|
+
MISTRAL_API_HOST?: string | undefined;
|
|
18968
|
+
MISTRAL_API_BASE_URL?: string | undefined;
|
|
18969
|
+
PALM_API_KEY?: string | undefined;
|
|
18970
|
+
PALM_API_HOST?: string | undefined;
|
|
18971
|
+
GOOGLE_API_KEY?: string | undefined;
|
|
18972
|
+
GOOGLE_API_HOST?: string | undefined;
|
|
18973
|
+
VERTEX_API_KEY?: string | undefined;
|
|
18974
|
+
VERTEX_API_HOST?: string | undefined;
|
|
18975
|
+
VERTEX_PROJECT_ID?: string | undefined;
|
|
18976
|
+
VERTEX_REGION?: string | undefined;
|
|
18977
|
+
VERTEX_PUBLISHER?: string | undefined;
|
|
18978
|
+
MISTRAL_API_KEY?: string | undefined;
|
|
18979
|
+
CLOUDFLARE_API_KEY?: string | undefined;
|
|
18980
|
+
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
18981
|
+
} | undefined;
|
|
18982
|
+
metadata?: Record<string, any> | undefined;
|
|
18983
|
+
description?: string | undefined;
|
|
18984
|
+
tests?: string | (string | {
|
|
18910
18985
|
options?: ({
|
|
18911
18986
|
prefix?: string | undefined;
|
|
18912
18987
|
suffix?: string | undefined;
|
|
@@ -19016,42 +19091,7 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19016
19091
|
metric?: string | undefined;
|
|
19017
19092
|
})[] | undefined;
|
|
19018
19093
|
threshold?: number | undefined;
|
|
19019
|
-
})[];
|
|
19020
|
-
env?: {
|
|
19021
|
-
ANTHROPIC_API_KEY?: string | undefined;
|
|
19022
|
-
BAM_API_KEY?: string | undefined;
|
|
19023
|
-
BAM_API_HOST?: string | undefined;
|
|
19024
|
-
AZURE_OPENAI_API_HOST?: string | undefined;
|
|
19025
|
-
AZURE_OPENAI_API_KEY?: string | undefined;
|
|
19026
|
-
AZURE_OPENAI_API_BASE_URL?: string | undefined;
|
|
19027
|
-
AZURE_OPENAI_BASE_URL?: string | undefined;
|
|
19028
|
-
AWS_BEDROCK_REGION?: string | undefined;
|
|
19029
|
-
COHERE_API_KEY?: string | undefined;
|
|
19030
|
-
OPENAI_API_KEY?: string | undefined;
|
|
19031
|
-
OPENAI_API_HOST?: string | undefined;
|
|
19032
|
-
OPENAI_API_BASE_URL?: string | undefined;
|
|
19033
|
-
OPENAI_BASE_URL?: string | undefined;
|
|
19034
|
-
OPENAI_ORGANIZATION?: string | undefined;
|
|
19035
|
-
REPLICATE_API_KEY?: string | undefined;
|
|
19036
|
-
REPLICATE_API_TOKEN?: string | undefined;
|
|
19037
|
-
LOCALAI_BASE_URL?: string | undefined;
|
|
19038
|
-
MISTRAL_API_HOST?: string | undefined;
|
|
19039
|
-
MISTRAL_API_BASE_URL?: string | undefined;
|
|
19040
|
-
PALM_API_KEY?: string | undefined;
|
|
19041
|
-
PALM_API_HOST?: string | undefined;
|
|
19042
|
-
GOOGLE_API_KEY?: string | undefined;
|
|
19043
|
-
GOOGLE_API_HOST?: string | undefined;
|
|
19044
|
-
VERTEX_API_KEY?: string | undefined;
|
|
19045
|
-
VERTEX_API_HOST?: string | undefined;
|
|
19046
|
-
VERTEX_PROJECT_ID?: string | undefined;
|
|
19047
|
-
VERTEX_REGION?: string | undefined;
|
|
19048
|
-
VERTEX_PUBLISHER?: string | undefined;
|
|
19049
|
-
MISTRAL_API_KEY?: string | undefined;
|
|
19050
|
-
CLOUDFLARE_API_KEY?: string | undefined;
|
|
19051
|
-
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
19052
|
-
} | undefined;
|
|
19053
|
-
metadata?: Record<string, any> | undefined;
|
|
19054
|
-
description?: string | undefined;
|
|
19094
|
+
})[] | undefined;
|
|
19055
19095
|
scenarios?: {
|
|
19056
19096
|
config: {
|
|
19057
19097
|
options?: ({
|
|
@@ -19404,11 +19444,11 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19404
19444
|
maxConcurrency?: number | undefined;
|
|
19405
19445
|
repeat?: number | undefined;
|
|
19406
19446
|
cache?: boolean | undefined;
|
|
19407
|
-
interactiveProviders?: boolean | undefined;
|
|
19408
19447
|
generateSuggestions?: boolean | undefined;
|
|
19409
|
-
showProgressBar?: boolean | undefined;
|
|
19410
|
-
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
19411
19448
|
eventSource?: string | undefined;
|
|
19449
|
+
interactiveProviders?: boolean | undefined;
|
|
19450
|
+
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
19451
|
+
showProgressBar?: boolean | undefined;
|
|
19412
19452
|
} | undefined;
|
|
19413
19453
|
commandLineOptions?: {
|
|
19414
19454
|
vars?: string | undefined;
|
|
@@ -19432,7 +19472,6 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19432
19472
|
share?: boolean | undefined;
|
|
19433
19473
|
progressBar?: boolean | undefined;
|
|
19434
19474
|
watch?: boolean | undefined;
|
|
19435
|
-
interactiveProviders?: boolean | undefined;
|
|
19436
19475
|
filterFailing?: string | undefined;
|
|
19437
19476
|
filterFirstN?: string | undefined;
|
|
19438
19477
|
filterPattern?: string | undefined;
|
|
@@ -19454,6 +19493,10 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19454
19493
|
id?: string | undefined;
|
|
19455
19494
|
display?: string | undefined;
|
|
19456
19495
|
config?: any;
|
|
19496
|
+
} | {
|
|
19497
|
+
id: string;
|
|
19498
|
+
raw?: string | undefined;
|
|
19499
|
+
label?: string | undefined;
|
|
19457
19500
|
})[];
|
|
19458
19501
|
providers: string | (((args_0: string, args_1: {
|
|
19459
19502
|
vars: Record<string, string | {}>;
|
|
@@ -19580,7 +19623,42 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19580
19623
|
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
19581
19624
|
} | undefined;
|
|
19582
19625
|
}>)[];
|
|
19583
|
-
|
|
19626
|
+
env?: {
|
|
19627
|
+
ANTHROPIC_API_KEY?: string | undefined;
|
|
19628
|
+
BAM_API_KEY?: string | undefined;
|
|
19629
|
+
BAM_API_HOST?: string | undefined;
|
|
19630
|
+
AZURE_OPENAI_API_HOST?: string | undefined;
|
|
19631
|
+
AZURE_OPENAI_API_KEY?: string | undefined;
|
|
19632
|
+
AZURE_OPENAI_API_BASE_URL?: string | undefined;
|
|
19633
|
+
AZURE_OPENAI_BASE_URL?: string | undefined;
|
|
19634
|
+
AWS_BEDROCK_REGION?: string | undefined;
|
|
19635
|
+
COHERE_API_KEY?: string | undefined;
|
|
19636
|
+
OPENAI_API_KEY?: string | undefined;
|
|
19637
|
+
OPENAI_API_HOST?: string | undefined;
|
|
19638
|
+
OPENAI_API_BASE_URL?: string | undefined;
|
|
19639
|
+
OPENAI_BASE_URL?: string | undefined;
|
|
19640
|
+
OPENAI_ORGANIZATION?: string | undefined;
|
|
19641
|
+
REPLICATE_API_KEY?: string | undefined;
|
|
19642
|
+
REPLICATE_API_TOKEN?: string | undefined;
|
|
19643
|
+
LOCALAI_BASE_URL?: string | undefined;
|
|
19644
|
+
MISTRAL_API_HOST?: string | undefined;
|
|
19645
|
+
MISTRAL_API_BASE_URL?: string | undefined;
|
|
19646
|
+
PALM_API_KEY?: string | undefined;
|
|
19647
|
+
PALM_API_HOST?: string | undefined;
|
|
19648
|
+
GOOGLE_API_KEY?: string | undefined;
|
|
19649
|
+
GOOGLE_API_HOST?: string | undefined;
|
|
19650
|
+
VERTEX_API_KEY?: string | undefined;
|
|
19651
|
+
VERTEX_API_HOST?: string | undefined;
|
|
19652
|
+
VERTEX_PROJECT_ID?: string | undefined;
|
|
19653
|
+
VERTEX_REGION?: string | undefined;
|
|
19654
|
+
VERTEX_PUBLISHER?: string | undefined;
|
|
19655
|
+
MISTRAL_API_KEY?: string | undefined;
|
|
19656
|
+
CLOUDFLARE_API_KEY?: string | undefined;
|
|
19657
|
+
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
19658
|
+
} | undefined;
|
|
19659
|
+
metadata?: Record<string, any> | undefined;
|
|
19660
|
+
description?: string | undefined;
|
|
19661
|
+
tests?: string | (string | {
|
|
19584
19662
|
options?: ({
|
|
19585
19663
|
prefix?: string | undefined;
|
|
19586
19664
|
suffix?: string | undefined;
|
|
@@ -19690,42 +19768,7 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19690
19768
|
metric?: string | undefined;
|
|
19691
19769
|
})[] | undefined;
|
|
19692
19770
|
threshold?: number | undefined;
|
|
19693
|
-
})[];
|
|
19694
|
-
env?: {
|
|
19695
|
-
ANTHROPIC_API_KEY?: string | undefined;
|
|
19696
|
-
BAM_API_KEY?: string | undefined;
|
|
19697
|
-
BAM_API_HOST?: string | undefined;
|
|
19698
|
-
AZURE_OPENAI_API_HOST?: string | undefined;
|
|
19699
|
-
AZURE_OPENAI_API_KEY?: string | undefined;
|
|
19700
|
-
AZURE_OPENAI_API_BASE_URL?: string | undefined;
|
|
19701
|
-
AZURE_OPENAI_BASE_URL?: string | undefined;
|
|
19702
|
-
AWS_BEDROCK_REGION?: string | undefined;
|
|
19703
|
-
COHERE_API_KEY?: string | undefined;
|
|
19704
|
-
OPENAI_API_KEY?: string | undefined;
|
|
19705
|
-
OPENAI_API_HOST?: string | undefined;
|
|
19706
|
-
OPENAI_API_BASE_URL?: string | undefined;
|
|
19707
|
-
OPENAI_BASE_URL?: string | undefined;
|
|
19708
|
-
OPENAI_ORGANIZATION?: string | undefined;
|
|
19709
|
-
REPLICATE_API_KEY?: string | undefined;
|
|
19710
|
-
REPLICATE_API_TOKEN?: string | undefined;
|
|
19711
|
-
LOCALAI_BASE_URL?: string | undefined;
|
|
19712
|
-
MISTRAL_API_HOST?: string | undefined;
|
|
19713
|
-
MISTRAL_API_BASE_URL?: string | undefined;
|
|
19714
|
-
PALM_API_KEY?: string | undefined;
|
|
19715
|
-
PALM_API_HOST?: string | undefined;
|
|
19716
|
-
GOOGLE_API_KEY?: string | undefined;
|
|
19717
|
-
GOOGLE_API_HOST?: string | undefined;
|
|
19718
|
-
VERTEX_API_KEY?: string | undefined;
|
|
19719
|
-
VERTEX_API_HOST?: string | undefined;
|
|
19720
|
-
VERTEX_PROJECT_ID?: string | undefined;
|
|
19721
|
-
VERTEX_REGION?: string | undefined;
|
|
19722
|
-
VERTEX_PUBLISHER?: string | undefined;
|
|
19723
|
-
MISTRAL_API_KEY?: string | undefined;
|
|
19724
|
-
CLOUDFLARE_API_KEY?: string | undefined;
|
|
19725
|
-
CLOUDFLARE_ACCOUNT_ID?: string | undefined;
|
|
19726
|
-
} | undefined;
|
|
19727
|
-
metadata?: Record<string, any> | undefined;
|
|
19728
|
-
description?: string | undefined;
|
|
19771
|
+
})[] | undefined;
|
|
19729
19772
|
scenarios?: {
|
|
19730
19773
|
config: {
|
|
19731
19774
|
options?: ({
|
|
@@ -20078,11 +20121,11 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20078
20121
|
maxConcurrency?: number | undefined;
|
|
20079
20122
|
repeat?: number | undefined;
|
|
20080
20123
|
cache?: boolean | undefined;
|
|
20081
|
-
interactiveProviders?: boolean | undefined;
|
|
20082
20124
|
generateSuggestions?: boolean | undefined;
|
|
20083
|
-
showProgressBar?: boolean | undefined;
|
|
20084
|
-
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
20085
20125
|
eventSource?: string | undefined;
|
|
20126
|
+
interactiveProviders?: boolean | undefined;
|
|
20127
|
+
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
20128
|
+
showProgressBar?: boolean | undefined;
|
|
20086
20129
|
} | undefined;
|
|
20087
20130
|
commandLineOptions?: {
|
|
20088
20131
|
vars?: string | undefined;
|
|
@@ -20106,7 +20149,6 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20106
20149
|
share?: boolean | undefined;
|
|
20107
20150
|
progressBar?: boolean | undefined;
|
|
20108
20151
|
watch?: boolean | undefined;
|
|
20109
|
-
interactiveProviders?: boolean | undefined;
|
|
20110
20152
|
filterFailing?: string | undefined;
|
|
20111
20153
|
filterFirstN?: string | undefined;
|
|
20112
20154
|
filterPattern?: string | undefined;
|