promptfoo 0.87.1 → 0.89.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 +3 -3
- package/dist/package.json +29 -29
- package/dist/src/__mocks__/esm.d.ts.map +1 -1
- package/dist/src/__mocks__/esm.js +1 -0
- package/dist/src/__mocks__/esm.js.map +1 -1
- package/dist/src/app/assets/index-DQ5S2Ye6.js +782 -0
- package/dist/src/app/assets/index-Dl-FhnW1.css +1 -0
- package/dist/src/app/assets/index.es-DR-0y8vm.js +18 -0
- package/dist/src/app/assets/purify.es-DGIRlouP.js +3 -0
- package/dist/src/app/assets/sync-D_jwcTYY.js +4 -0
- package/dist/src/app/favicon.png +0 -0
- package/dist/src/app/index.html +16 -0
- package/dist/src/assertions/AssertionsResult.d.ts.map +1 -1
- package/dist/src/assertions/AssertionsResult.js +7 -0
- package/dist/src/assertions/AssertionsResult.js.map +1 -1
- package/dist/src/assertions.d.ts.map +1 -1
- package/dist/src/assertions.js +19 -4
- package/dist/src/assertions.js.map +1 -1
- package/dist/src/cache.js +1 -1
- package/dist/src/cache.js.map +1 -1
- package/dist/src/commands/cache.js +2 -2
- package/dist/src/commands/cache.js.map +1 -1
- package/dist/src/commands/delete.js +2 -2
- package/dist/src/commands/delete.js.map +1 -1
- package/dist/src/commands/eval.d.ts +1 -1
- package/dist/src/commands/eval.d.ts.map +1 -1
- package/dist/src/commands/eval.js +17 -3
- package/dist/src/commands/eval.js.map +1 -1
- package/dist/src/commands/generate/dataset.js +1 -1
- package/dist/src/commands/generate/dataset.js.map +1 -1
- package/dist/src/commands/list.js +3 -3
- package/dist/src/commands/list.js.map +1 -1
- package/dist/src/commands/share.js +2 -2
- package/dist/src/commands/share.js.map +1 -1
- package/dist/src/commands/show.js +1 -1
- package/dist/src/commands/show.js.map +1 -1
- package/dist/src/commands/view.js +2 -2
- package/dist/src/commands/view.js.map +1 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +47 -57
- package/dist/src/config.js.map +1 -1
- package/dist/src/csv.d.ts.map +1 -1
- package/dist/src/csv.js +40 -15
- package/dist/src/csv.js.map +1 -1
- package/dist/src/database/tables.d.ts +18 -18
- package/dist/src/envars.d.ts +1 -0
- package/dist/src/envars.d.ts.map +1 -1
- package/dist/src/envars.js.map +1 -1
- package/dist/src/evaluator.d.ts.map +1 -1
- package/dist/src/evaluator.js +32 -0
- package/dist/src/evaluator.js.map +1 -1
- package/dist/src/evaluatorHelpers.js +1 -1
- package/dist/src/evaluatorHelpers.js.map +1 -1
- package/dist/src/globalConfig.js +1 -1
- package/dist/src/globalConfig.js.map +1 -1
- package/dist/src/golang/wrapper.go +53 -0
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/main.js +5 -11
- package/dist/src/main.js.map +1 -1
- package/dist/src/onboarding.d.ts +1 -1
- package/dist/src/onboarding.d.ts.map +1 -1
- package/dist/src/onboarding.js +4 -2
- package/dist/src/onboarding.js.map +1 -1
- package/dist/src/providers/ai21.d.ts.map +1 -1
- package/dist/src/providers/ai21.js +3 -12
- package/dist/src/providers/ai21.js.map +1 -1
- package/dist/src/providers/anthropic.d.ts +3 -3
- package/dist/src/providers/anthropic.d.ts.map +1 -1
- package/dist/src/providers/anthropic.js +44 -34
- package/dist/src/providers/anthropic.js.map +1 -1
- package/dist/src/providers/azureopenai.d.ts +3 -2
- package/dist/src/providers/azureopenai.d.ts.map +1 -1
- package/dist/src/providers/azureopenai.js +129 -3
- 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/cloudflare-ai.d.ts +2 -2
- package/dist/src/providers/cloudflare-ai.d.ts.map +1 -1
- package/dist/src/providers/cloudflare-ai.js.map +1 -1
- package/dist/src/providers/cohere.js +1 -1
- package/dist/src/providers/cohere.js.map +1 -1
- package/dist/src/providers/golangCompletion.d.ts +19 -0
- package/dist/src/providers/golangCompletion.d.ts.map +1 -0
- package/dist/src/providers/golangCompletion.js +105 -0
- package/dist/src/providers/golangCompletion.js.map +1 -0
- package/dist/src/providers/http.js +1 -1
- package/dist/src/providers/http.js.map +1 -1
- package/dist/src/providers/mistral.d.ts.map +1 -1
- package/dist/src/providers/mistral.js +8 -18
- package/dist/src/providers/mistral.js.map +1 -1
- package/dist/src/providers/openai.d.ts +13 -0
- package/dist/src/providers/openai.d.ts.map +1 -1
- package/dist/src/providers/openai.js +28 -24
- package/dist/src/providers/openai.js.map +1 -1
- package/dist/src/providers/openaiUtil.d.ts.map +1 -1
- package/dist/src/providers/openaiUtil.js +1 -1
- package/dist/src/providers/openaiUtil.js.map +1 -1
- package/dist/src/providers/shared.d.ts +41 -0
- package/dist/src/providers/shared.d.ts.map +1 -1
- package/dist/src/providers/shared.js +44 -0
- package/dist/src/providers/shared.js.map +1 -1
- package/dist/src/providers/vertexUtil.js +2 -2
- package/dist/src/providers/vertexUtil.js.map +1 -1
- package/dist/src/providers.d.ts.map +1 -1
- package/dist/src/providers.js +5 -0
- package/dist/src/providers.js.map +1 -1
- package/dist/src/python/execAsync.d.ts +10 -0
- package/dist/src/python/execAsync.d.ts.map +1 -0
- package/dist/src/python/execAsync.js +17 -0
- package/dist/src/python/execAsync.js.map +1 -0
- package/dist/src/python/pythonUtils.d.ts +29 -0
- package/dist/src/python/pythonUtils.d.ts.map +1 -1
- package/dist/src/python/pythonUtils.js +85 -6
- package/dist/src/python/pythonUtils.js.map +1 -1
- package/dist/src/python/wrapper.d.ts.map +1 -1
- package/dist/src/python/wrapper.js +8 -5
- package/dist/src/python/wrapper.js.map +1 -1
- package/dist/src/{commands/redteam → redteam/commands}/generate.d.ts +1 -1
- package/dist/src/redteam/commands/generate.d.ts.map +1 -0
- package/dist/src/{commands/redteam → redteam/commands}/generate.js +14 -14
- package/dist/src/redteam/commands/generate.js.map +1 -0
- package/dist/src/redteam/commands/init.d.ts.map +1 -0
- package/dist/src/{commands/redteam → redteam/commands}/init.js +23 -15
- package/dist/src/redteam/commands/init.js.map +1 -0
- package/dist/src/{commands/redteam → redteam/commands}/plugins.d.ts.map +1 -1
- package/dist/src/{commands/redteam → redteam/commands}/plugins.js +1 -1
- package/dist/src/{commands/redteam → redteam/commands}/plugins.js.map +1 -1
- package/dist/src/redteam/constants.d.ts.map +1 -1
- package/dist/src/redteam/constants.js +16 -22
- package/dist/src/redteam/constants.js.map +1 -1
- package/dist/src/redteam/index.d.ts +1 -1
- package/dist/src/redteam/index.d.ts.map +1 -1
- package/dist/src/redteam/index.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/prompts.d.ts.map +1 -1
- package/dist/src/redteam/providers/prompts.js +23 -0
- package/dist/src/redteam/providers/prompts.js.map +1 -1
- package/dist/src/{types/redteam.d.ts → redteam/types.d.ts} +1 -1
- package/dist/src/redteam/types.d.ts.map +1 -0
- package/dist/src/{types/redteam.js → redteam/types.js} +1 -1
- package/dist/src/redteam/types.js.map +1 -0
- package/dist/src/server/server.d.ts.map +1 -1
- package/dist/src/server/server.js +10 -3
- package/dist/src/server/server.js.map +1 -1
- package/dist/src/share.js +1 -1
- package/dist/src/share.js.map +1 -1
- package/dist/src/suggestions.js +1 -1
- package/dist/src/suggestions.js.map +1 -1
- package/dist/src/telemetry.d.ts.map +1 -1
- package/dist/src/telemetry.js +3 -1
- package/dist/src/telemetry.js.map +1 -1
- package/dist/src/testCases.d.ts.map +1 -1
- package/dist/src/testCases.js +4 -3
- package/dist/src/testCases.js.map +1 -1
- package/dist/src/types/index.d.ts +413 -231
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/index.js +12 -2
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/util/index.d.ts +19 -5
- package/dist/src/util/index.d.ts.map +1 -1
- package/dist/src/util/index.js +5 -3
- package/dist/src/util/index.js.map +1 -1
- package/dist/src/util/json.js +2 -2
- package/dist/src/util/json.js.map +1 -1
- package/dist/src/validators/prompts.d.ts +2 -2
- package/dist/src/validators/providers.d.ts +166 -20
- package/dist/src/validators/providers.d.ts.map +1 -1
- package/dist/src/validators/providers.js +5 -5
- package/dist/src/validators/providers.js.map +1 -1
- package/dist/src/validators/redteam.d.ts +15 -15
- package/dist/test/assertions.test.js +49 -0
- package/dist/test/assertions.test.js.map +1 -1
- package/dist/test/config.test.js +192 -48
- package/dist/test/config.test.js.map +1 -1
- package/dist/test/csv.test.js +84 -0
- package/dist/test/csv.test.js.map +1 -1
- package/dist/test/envars.test.js +103 -0
- package/dist/test/envars.test.js.map +1 -1
- package/dist/test/matchers.test.js +5 -5
- package/dist/test/matchers.test.js.map +1 -1
- package/dist/test/providers.anthropic.test.js +93 -23
- package/dist/test/providers.anthropic.test.js.map +1 -1
- package/dist/test/providers.azure.test.js +42 -0
- package/dist/test/providers.azure.test.js.map +1 -1
- package/dist/test/providers.bedrock.test.js +2 -1
- package/dist/test/providers.bedrock.test.js.map +1 -1
- package/dist/test/providers.shared.test.d.ts +2 -0
- package/dist/test/providers.shared.test.d.ts.map +1 -0
- package/dist/test/providers.shared.test.js +92 -0
- package/dist/test/providers.shared.test.js.map +1 -0
- package/dist/test/providers.test.js +112 -7
- package/dist/test/providers.test.js.map +1 -1
- package/dist/test/python/pythonUtils.test.d.ts +2 -0
- package/dist/test/python/pythonUtils.test.d.ts.map +1 -0
- package/dist/test/python/pythonUtils.test.js +224 -0
- package/dist/test/python/pythonUtils.test.js.map +1 -0
- package/dist/test/python/wrapper.test.d.ts +2 -0
- package/dist/test/python/wrapper.test.d.ts.map +1 -0
- package/dist/test/python/wrapper.test.js +71 -0
- package/dist/test/python/wrapper.test.js.map +1 -0
- package/dist/test/rateLimit.test.js.map +1 -1
- package/dist/test/redteam/commands/generate.test.d.ts.map +1 -0
- package/dist/test/{commands/redteam → redteam/commands}/generate.test.js +1 -1
- package/dist/test/{commands/redteam → redteam/commands}/generate.test.js.map +1 -1
- package/dist/test/redteam/validators.test.js +2 -2
- package/dist/test/redteam/validators.test.js.map +1 -1
- package/dist/test/testCases.test.js +75 -27
- package/dist/test/testCases.test.js.map +1 -1
- package/dist/test/types.test.js +17 -10
- package/dist/test/types.test.js.map +1 -1
- package/dist/test/util.test.js +10 -0
- package/dist/test/util.test.js.map +1 -1
- package/package.json +29 -29
- package/dist/src/commands/redteam/generate.d.ts.map +0 -1
- package/dist/src/commands/redteam/generate.js.map +0 -1
- package/dist/src/commands/redteam/init.d.ts.map +0 -1
- package/dist/src/commands/redteam/init.js.map +0 -1
- package/dist/src/types/redteam.d.ts.map +0 -1
- package/dist/src/types/redteam.js.map +0 -1
- package/dist/src/web/nextui/404/index.html +0 -1
- package/dist/src/web/nextui/404.html +0 -1
- package/dist/src/web/nextui/_next/static/chunks/113-c691bf7d3a37d865.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/132-d6bea93785831786.js +0 -6
- package/dist/src/web/nextui/_next/static/chunks/15.306496fdcef5f880.js +0 -52
- package/dist/src/web/nextui/_next/static/chunks/167-744b9f585d2d97f7.js +0 -54
- package/dist/src/web/nextui/_next/static/chunks/189-f9d565af9a2b91cb.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/1a53ab81-5e1a018996226f61.js +0 -6
- package/dist/src/web/nextui/_next/static/chunks/235-2bbcbc3cd37eef0f.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/285-1e2a6158b5f0e918.js +0 -32
- package/dist/src/web/nextui/_next/static/chunks/407.42b5daf65ab5dde9.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/417-cbf95fe2bc362650.js +0 -2
- package/dist/src/web/nextui/_next/static/chunks/461-77257ab6b1bb209d.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/565431e5-7b9122ac20f7a0ae.js +0 -140
- package/dist/src/web/nextui/_next/static/chunks/631-d005608c3710a99c.js +0 -6
- package/dist/src/web/nextui/_next/static/chunks/640-0f757e2fe135173d.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/646-62a1d1d5b397d18f.js +0 -28
- package/dist/src/web/nextui/_next/static/chunks/730-3eb7255cd813a727.js +0 -25
- package/dist/src/web/nextui/_next/static/chunks/782-910eb0e09b818816.js +0 -35
- package/dist/src/web/nextui/_next/static/chunks/840.58dde6630f088da4.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/854-c18aaae33bccdc36.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/86-fcb0efd0a19bac7d.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/874-66f90697795eddbc.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/88-f3a7a858d5f4e9a0.js +0 -17
- package/dist/src/web/nextui/_next/static/chunks/887.028187fb318c3e59.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/906-70c43cd62b2efac1.js +0 -97
- package/dist/src/web/nextui/_next/static/chunks/972-15d1ab608a24eebf.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/975-db84f98b8dd028ab.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/a5c829b0-07a2c92898a6780c.js +0 -14
- package/dist/src/web/nextui/_next/static/chunks/app/auth/login/page-c1dbf0abc580796f.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/auth/signup/page-93b80ab19bdaf2cc.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/datasets/page-17e6d3f57945f88a.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/not-found-dc8b4f57fd363c1b.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/page-1e54704d75f36e25.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/page-5295461188ef9b43.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/layout-e465aaafbfe88e82.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/page-81e3b8fee37eaf67.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/progress/page-ac2f99c11e76f5a5.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/prompts/page-296c32f480e84a57.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/report/page-f7c9e46492061e19.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/setup/page-35c95dd67114a045.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/b6261da7-e9d81a4364ddd0c0.js +0 -9
- package/dist/src/web/nextui/_next/static/chunks/fd57813c.8f0e3582250c76c5.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/framework-c3d480eb9ad30ba5.js +0 -25
- package/dist/src/web/nextui/_next/static/chunks/main-6b1ff2291a752212.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/main-app-0dc90092cd7acaaf.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/pages/_app-998b254a061422d4.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/pages/_error-94f0db477e27e000.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/webpack-452ae8c28379ed4c.js +0 -1
- package/dist/src/web/nextui/_next/static/css/48d388184a2f4ce3.css +0 -1
- package/dist/src/web/nextui/_next/static/css/4d76d7cdd9492e1d.css +0 -1
- package/dist/src/web/nextui/_next/static/css/8119d8bd13a8adab.css +0 -1
- package/dist/src/web/nextui/_next/static/css/87b5e6e04efd27e5.css +0 -1
- package/dist/src/web/nextui/_next/static/css/de0307797e31a3e6.css +0 -1
- package/dist/src/web/nextui/_next/static/css/eb523daddb89dfc1.css +0 -1
- package/dist/src/web/nextui/_next/static/css/edcd6f0b6c902fde.css +0 -1
- package/dist/src/web/nextui/_next/static/gtTJhFvE95U20UjbnSnMr/_buildManifest.js +0 -1
- package/dist/src/web/nextui/_next/static/gtTJhFvE95U20UjbnSnMr/_ssgManifest.js +0 -1
- package/dist/src/web/nextui/_next/static/media/26a46d62cd723877-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/55c55f0601d81cf3-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/581909926a08bbc8-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/6d93bde91c0c2823-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/97e0cb1ae144a2a9-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/a34f9d1faa5f3315-s.p.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/dist/src/web/nextui/android-chrome-192x192.png +0 -0
- package/dist/src/web/nextui/android-chrome-512x512.png +0 -0
- package/dist/src/web/nextui/apple-touch-icon.png +0 -0
- package/dist/src/web/nextui/auth/callback +0 -1
- package/dist/src/web/nextui/auth/login/index.html +0 -1
- package/dist/src/web/nextui/auth/login/index.txt +0 -10
- package/dist/src/web/nextui/auth/signup/index.html +0 -1
- package/dist/src/web/nextui/auth/signup/index.txt +0 -10
- package/dist/src/web/nextui/browserconfig.xml +0 -9
- package/dist/src/web/nextui/datasets/index.html +0 -1
- package/dist/src/web/nextui/datasets/index.txt +0 -10
- package/dist/src/web/nextui/eval/index.html +0 -1
- package/dist/src/web/nextui/eval/index.txt +0 -12
- package/dist/src/web/nextui/index.html +0 -1
- package/dist/src/web/nextui/index.txt +0 -11
- package/dist/src/web/nextui/logo.svg +0 -30
- package/dist/src/web/nextui/mstile-144x144.png +0 -0
- package/dist/src/web/nextui/mstile-150x150.png +0 -0
- package/dist/src/web/nextui/mstile-310x150.png +0 -0
- package/dist/src/web/nextui/mstile-310x310.png +0 -0
- package/dist/src/web/nextui/mstile-70x70.png +0 -0
- package/dist/src/web/nextui/progress/index.html +0 -1
- package/dist/src/web/nextui/progress/index.txt +0 -10
- package/dist/src/web/nextui/prompts/index.html +0 -1
- package/dist/src/web/nextui/prompts/index.txt +0 -10
- package/dist/src/web/nextui/report/index.html +0 -1
- package/dist/src/web/nextui/report/index.txt +0 -12
- package/dist/src/web/nextui/safari-pinned-tab.svg +0 -68
- package/dist/src/web/nextui/setup/index.html +0 -1
- package/dist/src/web/nextui/setup/index.txt +0 -12
- package/dist/src/web/nextui/site.webmanifest +0 -19
- package/dist/test/commands/redteam/generate.test.d.ts.map +0 -1
- package/dist/test/pythonWrapper.test.d.ts +0 -2
- package/dist/test/pythonWrapper.test.d.ts.map +0 -1
- package/dist/test/pythonWrapper.test.js +0 -99
- package/dist/test/pythonWrapper.test.js.map +0 -1
- /package/dist/src/{web/nextui/logo-panda.svg → app/assets/logo-panda-BuYvzEyb.svg} +0 -0
- /package/dist/src/{web/nextui → app}/favicon-16x16.png +0 -0
- /package/dist/src/{web/nextui → app}/favicon-32x32.png +0 -0
- /package/dist/src/{web/nextui → app}/favicon.ico +0 -0
- /package/dist/src/{commands/redteam → redteam/commands}/init.d.ts +0 -0
- /package/dist/src/{commands/redteam → redteam/commands}/plugins.d.ts +0 -0
- /package/dist/test/{commands/redteam → redteam/commands}/generate.test.d.ts +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { RedteamAssertionTypes, RedteamFileConfig } from '../redteam/types';
|
|
2
3
|
import type { Prompt, PromptFunction } from './prompts';
|
|
3
4
|
import type { ApiProvider, ProviderOptions, ProviderResponse } from './providers';
|
|
4
|
-
import type { RedteamAssertionTypes, RedteamFileConfig } from './redteam';
|
|
5
5
|
import type { NunjucksFilterMap, TokenUsage } from './shared';
|
|
6
6
|
export * from './prompts';
|
|
7
7
|
export * from './providers';
|
|
8
|
-
export * from '
|
|
8
|
+
export * from '../redteam/types';
|
|
9
9
|
export * from './shared';
|
|
10
10
|
export declare const CommandLineOptionsSchema: z.ZodObject<{
|
|
11
11
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -37,19 +37,18 @@ export declare const CommandLineOptionsSchema: z.ZodObject<{
|
|
|
37
37
|
generateSuggestions: z.ZodOptional<z.ZodBoolean>;
|
|
38
38
|
promptPrefix: z.ZodOptional<z.ZodString>;
|
|
39
39
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
40
|
-
|
|
40
|
+
envPath: z.ZodOptional<z.ZodString>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
delay: string;
|
|
43
|
-
output: string[];
|
|
44
42
|
maxConcurrency: string;
|
|
43
|
+
output: string[];
|
|
44
|
+
delay: string;
|
|
45
45
|
providers: string[];
|
|
46
46
|
repeat: string;
|
|
47
|
-
vars?: string | undefined;
|
|
48
|
-
config?: string[] | undefined;
|
|
49
|
-
prompts?: string[] | undefined;
|
|
50
47
|
cache?: boolean | undefined;
|
|
51
|
-
|
|
48
|
+
config?: string[] | undefined;
|
|
52
49
|
write?: boolean | undefined;
|
|
50
|
+
vars?: string | undefined;
|
|
51
|
+
prompts?: string[] | undefined;
|
|
53
52
|
description?: string | undefined;
|
|
54
53
|
tests?: string | undefined;
|
|
55
54
|
assertions?: string | undefined;
|
|
@@ -69,18 +68,18 @@ export declare const CommandLineOptionsSchema: z.ZodObject<{
|
|
|
69
68
|
generateSuggestions?: boolean | undefined;
|
|
70
69
|
promptPrefix?: string | undefined;
|
|
71
70
|
promptSuffix?: string | undefined;
|
|
71
|
+
envPath?: string | undefined;
|
|
72
72
|
}, {
|
|
73
|
-
delay: string;
|
|
74
|
-
output: string[];
|
|
75
73
|
maxConcurrency: string;
|
|
74
|
+
output: string[];
|
|
75
|
+
delay: string;
|
|
76
76
|
providers: string[];
|
|
77
77
|
repeat: string;
|
|
78
|
-
vars?: string | undefined;
|
|
79
|
-
config?: string[] | undefined;
|
|
80
|
-
prompts?: string[] | undefined;
|
|
81
78
|
cache?: boolean | undefined;
|
|
82
|
-
|
|
79
|
+
config?: string[] | undefined;
|
|
83
80
|
write?: boolean | undefined;
|
|
81
|
+
vars?: string | undefined;
|
|
82
|
+
prompts?: string[] | undefined;
|
|
84
83
|
description?: string | undefined;
|
|
85
84
|
tests?: string | undefined;
|
|
86
85
|
assertions?: string | undefined;
|
|
@@ -100,6 +99,7 @@ export declare const CommandLineOptionsSchema: z.ZodObject<{
|
|
|
100
99
|
generateSuggestions?: boolean | undefined;
|
|
101
100
|
promptPrefix?: string | undefined;
|
|
102
101
|
promptSuffix?: string | undefined;
|
|
102
|
+
envPath?: string | undefined;
|
|
103
103
|
}>;
|
|
104
104
|
export type CommandLineOptions = z.infer<typeof CommandLineOptionsSchema>;
|
|
105
105
|
export interface CsvRow {
|
|
@@ -209,9 +209,9 @@ declare const EvaluateOptionsSchema: z.ZodObject<{
|
|
|
209
209
|
repeat: z.ZodOptional<z.ZodNumber>;
|
|
210
210
|
showProgressBar: z.ZodOptional<z.ZodBoolean>;
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
212
|
-
delay?: number | undefined;
|
|
213
212
|
cache?: boolean | undefined;
|
|
214
213
|
maxConcurrency?: number | undefined;
|
|
214
|
+
delay?: number | undefined;
|
|
215
215
|
repeat?: number | undefined;
|
|
216
216
|
generateSuggestions?: boolean | undefined;
|
|
217
217
|
eventSource?: string | undefined;
|
|
@@ -219,9 +219,9 @@ declare const EvaluateOptionsSchema: z.ZodObject<{
|
|
|
219
219
|
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
220
220
|
showProgressBar?: boolean | undefined;
|
|
221
221
|
}, {
|
|
222
|
-
delay?: number | undefined;
|
|
223
222
|
cache?: boolean | undefined;
|
|
224
223
|
maxConcurrency?: number | undefined;
|
|
224
|
+
delay?: number | undefined;
|
|
225
225
|
repeat?: number | undefined;
|
|
226
226
|
generateSuggestions?: boolean | undefined;
|
|
227
227
|
eventSource?: string | undefined;
|
|
@@ -272,6 +272,23 @@ export declare const CompletedPromptSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
272
272
|
total?: number | undefined;
|
|
273
273
|
}>;
|
|
274
274
|
namedScores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
275
|
+
namedScoresCount: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
276
|
+
redteam: z.ZodOptional<z.ZodObject<{
|
|
277
|
+
pluginScores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
278
|
+
pluginScoresCount: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
279
|
+
strategyScores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
280
|
+
strategyScoresCount: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
281
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
|
+
pluginScores: Record<string, number>;
|
|
283
|
+
pluginScoresCount: Record<string, number>;
|
|
284
|
+
strategyScores: Record<string, number>;
|
|
285
|
+
strategyScoresCount: Record<string, number>;
|
|
286
|
+
}, {
|
|
287
|
+
pluginScores: Record<string, number>;
|
|
288
|
+
pluginScoresCount: Record<string, number>;
|
|
289
|
+
strategyScores: Record<string, number>;
|
|
290
|
+
strategyScoresCount: Record<string, number>;
|
|
291
|
+
}>>;
|
|
275
292
|
cost: z.ZodNumber;
|
|
276
293
|
}, "strip", z.ZodTypeAny, {
|
|
277
294
|
cost: number;
|
|
@@ -288,6 +305,13 @@ export declare const CompletedPromptSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
288
305
|
assertFailCount: number;
|
|
289
306
|
totalLatencyMs: number;
|
|
290
307
|
namedScores: Record<string, number>;
|
|
308
|
+
namedScoresCount: Record<string, number>;
|
|
309
|
+
redteam?: {
|
|
310
|
+
pluginScores: Record<string, number>;
|
|
311
|
+
pluginScoresCount: Record<string, number>;
|
|
312
|
+
strategyScores: Record<string, number>;
|
|
313
|
+
strategyScoresCount: Record<string, number>;
|
|
314
|
+
} | undefined;
|
|
291
315
|
}, {
|
|
292
316
|
cost: number;
|
|
293
317
|
tokenUsage: {
|
|
@@ -303,6 +327,13 @@ export declare const CompletedPromptSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
303
327
|
assertFailCount: number;
|
|
304
328
|
totalLatencyMs: number;
|
|
305
329
|
namedScores: Record<string, number>;
|
|
330
|
+
namedScoresCount: Record<string, number>;
|
|
331
|
+
redteam?: {
|
|
332
|
+
pluginScores: Record<string, number>;
|
|
333
|
+
pluginScoresCount: Record<string, number>;
|
|
334
|
+
strategyScores: Record<string, number>;
|
|
335
|
+
strategyScoresCount: Record<string, number>;
|
|
336
|
+
} | undefined;
|
|
306
337
|
}>>;
|
|
307
338
|
}>, "strip", z.ZodTypeAny, {
|
|
308
339
|
provider: string;
|
|
@@ -313,8 +344,8 @@ export declare const CompletedPromptSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
313
344
|
provider?: ApiProvider | undefined;
|
|
314
345
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
315
346
|
id?: string | undefined;
|
|
316
|
-
display?: string | undefined;
|
|
317
347
|
config?: any;
|
|
348
|
+
display?: string | undefined;
|
|
318
349
|
metrics?: {
|
|
319
350
|
cost: number;
|
|
320
351
|
tokenUsage: {
|
|
@@ -330,6 +361,13 @@ export declare const CompletedPromptSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
330
361
|
assertFailCount: number;
|
|
331
362
|
totalLatencyMs: number;
|
|
332
363
|
namedScores: Record<string, number>;
|
|
364
|
+
namedScoresCount: Record<string, number>;
|
|
365
|
+
redteam?: {
|
|
366
|
+
pluginScores: Record<string, number>;
|
|
367
|
+
pluginScoresCount: Record<string, number>;
|
|
368
|
+
strategyScores: Record<string, number>;
|
|
369
|
+
strategyScoresCount: Record<string, number>;
|
|
370
|
+
} | undefined;
|
|
333
371
|
} | undefined;
|
|
334
372
|
}, {
|
|
335
373
|
provider: string;
|
|
@@ -340,8 +378,8 @@ export declare const CompletedPromptSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
340
378
|
provider?: ApiProvider | undefined;
|
|
341
379
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
342
380
|
id?: string | undefined;
|
|
343
|
-
display?: string | undefined;
|
|
344
381
|
config?: any;
|
|
382
|
+
display?: string | undefined;
|
|
345
383
|
metrics?: {
|
|
346
384
|
cost: number;
|
|
347
385
|
tokenUsage: {
|
|
@@ -357,6 +395,13 @@ export declare const CompletedPromptSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
357
395
|
assertFailCount: number;
|
|
358
396
|
totalLatencyMs: number;
|
|
359
397
|
namedScores: Record<string, number>;
|
|
398
|
+
namedScoresCount: Record<string, number>;
|
|
399
|
+
redteam?: {
|
|
400
|
+
pluginScores: Record<string, number>;
|
|
401
|
+
pluginScoresCount: Record<string, number>;
|
|
402
|
+
strategyScores: Record<string, number>;
|
|
403
|
+
strategyScoresCount: Record<string, number>;
|
|
404
|
+
} | undefined;
|
|
360
405
|
} | undefined;
|
|
361
406
|
}>;
|
|
362
407
|
export type CompletedPrompt = z.infer<typeof CompletedPromptSchema>;
|
|
@@ -433,9 +478,14 @@ export interface GradingResult {
|
|
|
433
478
|
componentResults?: GradingResult[];
|
|
434
479
|
assertion?: Assertion | null;
|
|
435
480
|
comment?: string;
|
|
481
|
+
metadata?: {
|
|
482
|
+
pluginId?: string;
|
|
483
|
+
strategyId?: string;
|
|
484
|
+
[key: string]: any;
|
|
485
|
+
};
|
|
436
486
|
}
|
|
437
487
|
export declare function isGradingResult(result: any): result is GradingResult;
|
|
438
|
-
export declare const BaseAssertionTypesSchema: z.ZodEnum<["answer-relevance", "contains-all", "contains-any", "contains-json", "contains-sql", "contains-xml", "contains", "context-faithfulness", "context-recall", "context-relevance", "cost", "equals", "factuality", "human", "icontains-all", "icontains-any", "icontains", "is-json", "is-sql", "is-valid-openai-function-call", "is-valid-openai-tools-call", "is-xml", "javascript", "latency", "levenshtein", "llm-rubric", "model-graded-closedqa", "model-graded-factuality", "moderation", "perplexity-score", "perplexity", "python", "regex", "rouge-l", "rouge-n", "rouge-s", "select-best", "similar", "starts-with", "webhook"]>;
|
|
488
|
+
export declare const BaseAssertionTypesSchema: z.ZodEnum<["answer-relevance", "classifier", "contains-all", "contains-any", "contains-json", "contains-sql", "contains-xml", "contains", "context-faithfulness", "context-recall", "context-relevance", "cost", "equals", "factuality", "human", "icontains-all", "icontains-any", "icontains", "is-json", "is-sql", "is-valid-openai-function-call", "is-valid-openai-tools-call", "is-xml", "javascript", "latency", "levenshtein", "llm-rubric", "model-graded-closedqa", "model-graded-factuality", "moderation", "perplexity-score", "perplexity", "python", "regex", "rouge-l", "rouge-n", "rouge-s", "select-best", "similar", "starts-with", "webhook"]>;
|
|
439
489
|
export type BaseAssertionTypes = z.infer<typeof BaseAssertionTypesSchema>;
|
|
440
490
|
type NotPrefixed<T extends string> = `not-${T}`;
|
|
441
491
|
export type AssertionType = BaseAssertionTypes | NotPrefixed<BaseAssertionTypes> | RedteamAssertionTypes;
|
|
@@ -614,6 +664,23 @@ export declare const TestCasesWithMetadataPromptSchema: z.ZodObject<{
|
|
|
614
664
|
total?: number | undefined;
|
|
615
665
|
}>;
|
|
616
666
|
namedScores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
667
|
+
namedScoresCount: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
668
|
+
redteam: z.ZodOptional<z.ZodObject<{
|
|
669
|
+
pluginScores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
670
|
+
pluginScoresCount: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
671
|
+
strategyScores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
672
|
+
strategyScoresCount: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
673
|
+
}, "strip", z.ZodTypeAny, {
|
|
674
|
+
pluginScores: Record<string, number>;
|
|
675
|
+
pluginScoresCount: Record<string, number>;
|
|
676
|
+
strategyScores: Record<string, number>;
|
|
677
|
+
strategyScoresCount: Record<string, number>;
|
|
678
|
+
}, {
|
|
679
|
+
pluginScores: Record<string, number>;
|
|
680
|
+
pluginScoresCount: Record<string, number>;
|
|
681
|
+
strategyScores: Record<string, number>;
|
|
682
|
+
strategyScoresCount: Record<string, number>;
|
|
683
|
+
}>>;
|
|
617
684
|
cost: z.ZodNumber;
|
|
618
685
|
}, "strip", z.ZodTypeAny, {
|
|
619
686
|
cost: number;
|
|
@@ -630,6 +697,13 @@ export declare const TestCasesWithMetadataPromptSchema: z.ZodObject<{
|
|
|
630
697
|
assertFailCount: number;
|
|
631
698
|
totalLatencyMs: number;
|
|
632
699
|
namedScores: Record<string, number>;
|
|
700
|
+
namedScoresCount: Record<string, number>;
|
|
701
|
+
redteam?: {
|
|
702
|
+
pluginScores: Record<string, number>;
|
|
703
|
+
pluginScoresCount: Record<string, number>;
|
|
704
|
+
strategyScores: Record<string, number>;
|
|
705
|
+
strategyScoresCount: Record<string, number>;
|
|
706
|
+
} | undefined;
|
|
633
707
|
}, {
|
|
634
708
|
cost: number;
|
|
635
709
|
tokenUsage: {
|
|
@@ -645,6 +719,13 @@ export declare const TestCasesWithMetadataPromptSchema: z.ZodObject<{
|
|
|
645
719
|
assertFailCount: number;
|
|
646
720
|
totalLatencyMs: number;
|
|
647
721
|
namedScores: Record<string, number>;
|
|
722
|
+
namedScoresCount: Record<string, number>;
|
|
723
|
+
redteam?: {
|
|
724
|
+
pluginScores: Record<string, number>;
|
|
725
|
+
pluginScoresCount: Record<string, number>;
|
|
726
|
+
strategyScores: Record<string, number>;
|
|
727
|
+
strategyScoresCount: Record<string, number>;
|
|
728
|
+
} | undefined;
|
|
648
729
|
}>>;
|
|
649
730
|
}>, "strip", z.ZodTypeAny, {
|
|
650
731
|
provider: string;
|
|
@@ -655,8 +736,8 @@ export declare const TestCasesWithMetadataPromptSchema: z.ZodObject<{
|
|
|
655
736
|
provider?: ApiProvider | undefined;
|
|
656
737
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
657
738
|
id?: string | undefined;
|
|
658
|
-
display?: string | undefined;
|
|
659
739
|
config?: any;
|
|
740
|
+
display?: string | undefined;
|
|
660
741
|
metrics?: {
|
|
661
742
|
cost: number;
|
|
662
743
|
tokenUsage: {
|
|
@@ -672,6 +753,13 @@ export declare const TestCasesWithMetadataPromptSchema: z.ZodObject<{
|
|
|
672
753
|
assertFailCount: number;
|
|
673
754
|
totalLatencyMs: number;
|
|
674
755
|
namedScores: Record<string, number>;
|
|
756
|
+
namedScoresCount: Record<string, number>;
|
|
757
|
+
redteam?: {
|
|
758
|
+
pluginScores: Record<string, number>;
|
|
759
|
+
pluginScoresCount: Record<string, number>;
|
|
760
|
+
strategyScores: Record<string, number>;
|
|
761
|
+
strategyScoresCount: Record<string, number>;
|
|
762
|
+
} | undefined;
|
|
675
763
|
} | undefined;
|
|
676
764
|
}, {
|
|
677
765
|
provider: string;
|
|
@@ -682,8 +770,8 @@ export declare const TestCasesWithMetadataPromptSchema: z.ZodObject<{
|
|
|
682
770
|
provider?: ApiProvider | undefined;
|
|
683
771
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
684
772
|
id?: string | undefined;
|
|
685
|
-
display?: string | undefined;
|
|
686
773
|
config?: any;
|
|
774
|
+
display?: string | undefined;
|
|
687
775
|
metrics?: {
|
|
688
776
|
cost: number;
|
|
689
777
|
tokenUsage: {
|
|
@@ -699,6 +787,13 @@ export declare const TestCasesWithMetadataPromptSchema: z.ZodObject<{
|
|
|
699
787
|
assertFailCount: number;
|
|
700
788
|
totalLatencyMs: number;
|
|
701
789
|
namedScores: Record<string, number>;
|
|
790
|
+
namedScoresCount: Record<string, number>;
|
|
791
|
+
redteam?: {
|
|
792
|
+
pluginScores: Record<string, number>;
|
|
793
|
+
pluginScoresCount: Record<string, number>;
|
|
794
|
+
strategyScores: Record<string, number>;
|
|
795
|
+
strategyScoresCount: Record<string, number>;
|
|
796
|
+
} | undefined;
|
|
702
797
|
} | undefined;
|
|
703
798
|
}>;
|
|
704
799
|
id: z.ZodString;
|
|
@@ -714,8 +809,8 @@ export declare const TestCasesWithMetadataPromptSchema: z.ZodObject<{
|
|
|
714
809
|
provider?: ApiProvider | undefined;
|
|
715
810
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
716
811
|
id?: string | undefined;
|
|
717
|
-
display?: string | undefined;
|
|
718
812
|
config?: any;
|
|
813
|
+
display?: string | undefined;
|
|
719
814
|
metrics?: {
|
|
720
815
|
cost: number;
|
|
721
816
|
tokenUsage: {
|
|
@@ -731,6 +826,13 @@ export declare const TestCasesWithMetadataPromptSchema: z.ZodObject<{
|
|
|
731
826
|
assertFailCount: number;
|
|
732
827
|
totalLatencyMs: number;
|
|
733
828
|
namedScores: Record<string, number>;
|
|
829
|
+
namedScoresCount: Record<string, number>;
|
|
830
|
+
redteam?: {
|
|
831
|
+
pluginScores: Record<string, number>;
|
|
832
|
+
pluginScoresCount: Record<string, number>;
|
|
833
|
+
strategyScores: Record<string, number>;
|
|
834
|
+
strategyScoresCount: Record<string, number>;
|
|
835
|
+
} | undefined;
|
|
734
836
|
} | undefined;
|
|
735
837
|
};
|
|
736
838
|
evalId: string;
|
|
@@ -745,8 +847,8 @@ export declare const TestCasesWithMetadataPromptSchema: z.ZodObject<{
|
|
|
745
847
|
provider?: ApiProvider | undefined;
|
|
746
848
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
747
849
|
id?: string | undefined;
|
|
748
|
-
display?: string | undefined;
|
|
749
850
|
config?: any;
|
|
851
|
+
display?: string | undefined;
|
|
750
852
|
metrics?: {
|
|
751
853
|
cost: number;
|
|
752
854
|
tokenUsage: {
|
|
@@ -762,6 +864,13 @@ export declare const TestCasesWithMetadataPromptSchema: z.ZodObject<{
|
|
|
762
864
|
assertFailCount: number;
|
|
763
865
|
totalLatencyMs: number;
|
|
764
866
|
namedScores: Record<string, number>;
|
|
867
|
+
namedScoresCount: Record<string, number>;
|
|
868
|
+
redteam?: {
|
|
869
|
+
pluginScores: Record<string, number>;
|
|
870
|
+
pluginScoresCount: Record<string, number>;
|
|
871
|
+
strategyScores: Record<string, number>;
|
|
872
|
+
strategyScoresCount: Record<string, number>;
|
|
873
|
+
} | undefined;
|
|
765
874
|
} | undefined;
|
|
766
875
|
};
|
|
767
876
|
evalId: string;
|
|
@@ -887,8 +996,8 @@ export declare const TestCaseSchema: z.ZodObject<{
|
|
|
887
996
|
}>>;
|
|
888
997
|
}, "strict", z.ZodTypeAny, {
|
|
889
998
|
id?: string | undefined;
|
|
890
|
-
label?: string | undefined;
|
|
891
999
|
config?: any;
|
|
1000
|
+
label?: string | undefined;
|
|
892
1001
|
prompts?: string[] | undefined;
|
|
893
1002
|
transform?: string | undefined;
|
|
894
1003
|
delay?: number | undefined;
|
|
@@ -930,8 +1039,8 @@ export declare const TestCaseSchema: z.ZodObject<{
|
|
|
930
1039
|
} | undefined;
|
|
931
1040
|
}, {
|
|
932
1041
|
id?: string | undefined;
|
|
933
|
-
label?: string | undefined;
|
|
934
1042
|
config?: any;
|
|
1043
|
+
label?: string | undefined;
|
|
935
1044
|
prompts?: string[] | undefined;
|
|
936
1045
|
transform?: string | undefined;
|
|
937
1046
|
delay?: number | undefined;
|
|
@@ -1243,8 +1352,8 @@ export declare const TestCaseSchema: z.ZodObject<{
|
|
|
1243
1352
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
1244
1353
|
provider?: string | {
|
|
1245
1354
|
id?: string | undefined;
|
|
1246
|
-
label?: string | undefined;
|
|
1247
1355
|
config?: any;
|
|
1356
|
+
label?: string | undefined;
|
|
1248
1357
|
prompts?: string[] | undefined;
|
|
1249
1358
|
transform?: string | undefined;
|
|
1250
1359
|
delay?: number | undefined;
|
|
@@ -1357,8 +1466,8 @@ export declare const TestCaseSchema: z.ZodObject<{
|
|
|
1357
1466
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
1358
1467
|
provider?: string | {
|
|
1359
1468
|
id?: string | undefined;
|
|
1360
|
-
label?: string | undefined;
|
|
1361
1469
|
config?: any;
|
|
1470
|
+
label?: string | undefined;
|
|
1362
1471
|
prompts?: string[] | undefined;
|
|
1363
1472
|
transform?: string | undefined;
|
|
1364
1473
|
delay?: number | undefined;
|
|
@@ -1567,8 +1676,8 @@ export declare const TestCaseWithVarsFileSchema: z.ZodObject<z.objectUtil.extend
|
|
|
1567
1676
|
}>>;
|
|
1568
1677
|
}, "strict", z.ZodTypeAny, {
|
|
1569
1678
|
id?: string | undefined;
|
|
1570
|
-
label?: string | undefined;
|
|
1571
1679
|
config?: any;
|
|
1680
|
+
label?: string | undefined;
|
|
1572
1681
|
prompts?: string[] | undefined;
|
|
1573
1682
|
transform?: string | undefined;
|
|
1574
1683
|
delay?: number | undefined;
|
|
@@ -1610,8 +1719,8 @@ export declare const TestCaseWithVarsFileSchema: z.ZodObject<z.objectUtil.extend
|
|
|
1610
1719
|
} | undefined;
|
|
1611
1720
|
}, {
|
|
1612
1721
|
id?: string | undefined;
|
|
1613
|
-
label?: string | undefined;
|
|
1614
1722
|
config?: any;
|
|
1723
|
+
label?: string | undefined;
|
|
1615
1724
|
prompts?: string[] | undefined;
|
|
1616
1725
|
transform?: string | undefined;
|
|
1617
1726
|
delay?: number | undefined;
|
|
@@ -1925,8 +2034,8 @@ export declare const TestCaseWithVarsFileSchema: z.ZodObject<z.objectUtil.extend
|
|
|
1925
2034
|
vars?: string | string[] | Record<string, string | any[] | string[] | {}> | undefined;
|
|
1926
2035
|
provider?: string | {
|
|
1927
2036
|
id?: string | undefined;
|
|
1928
|
-
label?: string | undefined;
|
|
1929
2037
|
config?: any;
|
|
2038
|
+
label?: string | undefined;
|
|
1930
2039
|
prompts?: string[] | undefined;
|
|
1931
2040
|
transform?: string | undefined;
|
|
1932
2041
|
delay?: number | undefined;
|
|
@@ -2039,8 +2148,8 @@ export declare const TestCaseWithVarsFileSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2039
2148
|
vars?: string | string[] | Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
2040
2149
|
provider?: string | {
|
|
2041
2150
|
id?: string | undefined;
|
|
2042
|
-
label?: string | undefined;
|
|
2043
2151
|
config?: any;
|
|
2152
|
+
label?: string | undefined;
|
|
2044
2153
|
prompts?: string[] | undefined;
|
|
2045
2154
|
transform?: string | undefined;
|
|
2046
2155
|
delay?: number | undefined;
|
|
@@ -2246,8 +2355,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2246
2355
|
}>>;
|
|
2247
2356
|
}, "strict", z.ZodTypeAny, {
|
|
2248
2357
|
id?: string | undefined;
|
|
2249
|
-
label?: string | undefined;
|
|
2250
2358
|
config?: any;
|
|
2359
|
+
label?: string | undefined;
|
|
2251
2360
|
prompts?: string[] | undefined;
|
|
2252
2361
|
transform?: string | undefined;
|
|
2253
2362
|
delay?: number | undefined;
|
|
@@ -2289,8 +2398,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2289
2398
|
} | undefined;
|
|
2290
2399
|
}, {
|
|
2291
2400
|
id?: string | undefined;
|
|
2292
|
-
label?: string | undefined;
|
|
2293
2401
|
config?: any;
|
|
2402
|
+
label?: string | undefined;
|
|
2294
2403
|
prompts?: string[] | undefined;
|
|
2295
2404
|
transform?: string | undefined;
|
|
2296
2405
|
delay?: number | undefined;
|
|
@@ -2602,8 +2711,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2602
2711
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
2603
2712
|
provider?: string | {
|
|
2604
2713
|
id?: string | undefined;
|
|
2605
|
-
label?: string | undefined;
|
|
2606
2714
|
config?: any;
|
|
2715
|
+
label?: string | undefined;
|
|
2607
2716
|
prompts?: string[] | undefined;
|
|
2608
2717
|
transform?: string | undefined;
|
|
2609
2718
|
delay?: number | undefined;
|
|
@@ -2716,8 +2825,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2716
2825
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
2717
2826
|
provider?: string | {
|
|
2718
2827
|
id?: string | undefined;
|
|
2719
|
-
label?: string | undefined;
|
|
2720
2828
|
config?: any;
|
|
2829
|
+
label?: string | undefined;
|
|
2721
2830
|
prompts?: string[] | undefined;
|
|
2722
2831
|
transform?: string | undefined;
|
|
2723
2832
|
delay?: number | undefined;
|
|
@@ -2848,6 +2957,23 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2848
2957
|
total?: number | undefined;
|
|
2849
2958
|
}>;
|
|
2850
2959
|
namedScores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2960
|
+
namedScoresCount: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2961
|
+
redteam: z.ZodOptional<z.ZodObject<{
|
|
2962
|
+
pluginScores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2963
|
+
pluginScoresCount: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2964
|
+
strategyScores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2965
|
+
strategyScoresCount: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2966
|
+
}, "strip", z.ZodTypeAny, {
|
|
2967
|
+
pluginScores: Record<string, number>;
|
|
2968
|
+
pluginScoresCount: Record<string, number>;
|
|
2969
|
+
strategyScores: Record<string, number>;
|
|
2970
|
+
strategyScoresCount: Record<string, number>;
|
|
2971
|
+
}, {
|
|
2972
|
+
pluginScores: Record<string, number>;
|
|
2973
|
+
pluginScoresCount: Record<string, number>;
|
|
2974
|
+
strategyScores: Record<string, number>;
|
|
2975
|
+
strategyScoresCount: Record<string, number>;
|
|
2976
|
+
}>>;
|
|
2851
2977
|
cost: z.ZodNumber;
|
|
2852
2978
|
}, "strip", z.ZodTypeAny, {
|
|
2853
2979
|
cost: number;
|
|
@@ -2864,6 +2990,13 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2864
2990
|
assertFailCount: number;
|
|
2865
2991
|
totalLatencyMs: number;
|
|
2866
2992
|
namedScores: Record<string, number>;
|
|
2993
|
+
namedScoresCount: Record<string, number>;
|
|
2994
|
+
redteam?: {
|
|
2995
|
+
pluginScores: Record<string, number>;
|
|
2996
|
+
pluginScoresCount: Record<string, number>;
|
|
2997
|
+
strategyScores: Record<string, number>;
|
|
2998
|
+
strategyScoresCount: Record<string, number>;
|
|
2999
|
+
} | undefined;
|
|
2867
3000
|
}, {
|
|
2868
3001
|
cost: number;
|
|
2869
3002
|
tokenUsage: {
|
|
@@ -2879,6 +3012,13 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2879
3012
|
assertFailCount: number;
|
|
2880
3013
|
totalLatencyMs: number;
|
|
2881
3014
|
namedScores: Record<string, number>;
|
|
3015
|
+
namedScoresCount: Record<string, number>;
|
|
3016
|
+
redteam?: {
|
|
3017
|
+
pluginScores: Record<string, number>;
|
|
3018
|
+
pluginScoresCount: Record<string, number>;
|
|
3019
|
+
strategyScores: Record<string, number>;
|
|
3020
|
+
strategyScoresCount: Record<string, number>;
|
|
3021
|
+
} | undefined;
|
|
2882
3022
|
}>>;
|
|
2883
3023
|
}>, "strip", z.ZodTypeAny, {
|
|
2884
3024
|
provider: string;
|
|
@@ -2889,8 +3029,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2889
3029
|
provider?: ApiProvider | undefined;
|
|
2890
3030
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
2891
3031
|
id?: string | undefined;
|
|
2892
|
-
display?: string | undefined;
|
|
2893
3032
|
config?: any;
|
|
3033
|
+
display?: string | undefined;
|
|
2894
3034
|
metrics?: {
|
|
2895
3035
|
cost: number;
|
|
2896
3036
|
tokenUsage: {
|
|
@@ -2906,6 +3046,13 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2906
3046
|
assertFailCount: number;
|
|
2907
3047
|
totalLatencyMs: number;
|
|
2908
3048
|
namedScores: Record<string, number>;
|
|
3049
|
+
namedScoresCount: Record<string, number>;
|
|
3050
|
+
redteam?: {
|
|
3051
|
+
pluginScores: Record<string, number>;
|
|
3052
|
+
pluginScoresCount: Record<string, number>;
|
|
3053
|
+
strategyScores: Record<string, number>;
|
|
3054
|
+
strategyScoresCount: Record<string, number>;
|
|
3055
|
+
} | undefined;
|
|
2909
3056
|
} | undefined;
|
|
2910
3057
|
}, {
|
|
2911
3058
|
provider: string;
|
|
@@ -2916,8 +3063,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2916
3063
|
provider?: ApiProvider | undefined;
|
|
2917
3064
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
2918
3065
|
id?: string | undefined;
|
|
2919
|
-
display?: string | undefined;
|
|
2920
3066
|
config?: any;
|
|
3067
|
+
display?: string | undefined;
|
|
2921
3068
|
metrics?: {
|
|
2922
3069
|
cost: number;
|
|
2923
3070
|
tokenUsage: {
|
|
@@ -2933,6 +3080,13 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2933
3080
|
assertFailCount: number;
|
|
2934
3081
|
totalLatencyMs: number;
|
|
2935
3082
|
namedScores: Record<string, number>;
|
|
3083
|
+
namedScoresCount: Record<string, number>;
|
|
3084
|
+
redteam?: {
|
|
3085
|
+
pluginScores: Record<string, number>;
|
|
3086
|
+
pluginScoresCount: Record<string, number>;
|
|
3087
|
+
strategyScores: Record<string, number>;
|
|
3088
|
+
strategyScoresCount: Record<string, number>;
|
|
3089
|
+
} | undefined;
|
|
2936
3090
|
} | undefined;
|
|
2937
3091
|
}>;
|
|
2938
3092
|
id: z.ZodString;
|
|
@@ -2948,8 +3102,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2948
3102
|
provider?: ApiProvider | undefined;
|
|
2949
3103
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
2950
3104
|
id?: string | undefined;
|
|
2951
|
-
display?: string | undefined;
|
|
2952
3105
|
config?: any;
|
|
3106
|
+
display?: string | undefined;
|
|
2953
3107
|
metrics?: {
|
|
2954
3108
|
cost: number;
|
|
2955
3109
|
tokenUsage: {
|
|
@@ -2965,6 +3119,13 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2965
3119
|
assertFailCount: number;
|
|
2966
3120
|
totalLatencyMs: number;
|
|
2967
3121
|
namedScores: Record<string, number>;
|
|
3122
|
+
namedScoresCount: Record<string, number>;
|
|
3123
|
+
redteam?: {
|
|
3124
|
+
pluginScores: Record<string, number>;
|
|
3125
|
+
pluginScoresCount: Record<string, number>;
|
|
3126
|
+
strategyScores: Record<string, number>;
|
|
3127
|
+
strategyScoresCount: Record<string, number>;
|
|
3128
|
+
} | undefined;
|
|
2968
3129
|
} | undefined;
|
|
2969
3130
|
};
|
|
2970
3131
|
evalId: string;
|
|
@@ -2979,8 +3140,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2979
3140
|
provider?: ApiProvider | undefined;
|
|
2980
3141
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
2981
3142
|
id?: string | undefined;
|
|
2982
|
-
display?: string | undefined;
|
|
2983
3143
|
config?: any;
|
|
3144
|
+
display?: string | undefined;
|
|
2984
3145
|
metrics?: {
|
|
2985
3146
|
cost: number;
|
|
2986
3147
|
tokenUsage: {
|
|
@@ -2996,6 +3157,13 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
2996
3157
|
assertFailCount: number;
|
|
2997
3158
|
totalLatencyMs: number;
|
|
2998
3159
|
namedScores: Record<string, number>;
|
|
3160
|
+
namedScoresCount: Record<string, number>;
|
|
3161
|
+
redteam?: {
|
|
3162
|
+
pluginScores: Record<string, number>;
|
|
3163
|
+
pluginScoresCount: Record<string, number>;
|
|
3164
|
+
strategyScores: Record<string, number>;
|
|
3165
|
+
strategyScoresCount: Record<string, number>;
|
|
3166
|
+
} | undefined;
|
|
2999
3167
|
} | undefined;
|
|
3000
3168
|
};
|
|
3001
3169
|
evalId: string;
|
|
@@ -3013,8 +3181,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
3013
3181
|
provider?: ApiProvider | undefined;
|
|
3014
3182
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
3015
3183
|
id?: string | undefined;
|
|
3016
|
-
display?: string | undefined;
|
|
3017
3184
|
config?: any;
|
|
3185
|
+
display?: string | undefined;
|
|
3018
3186
|
metrics?: {
|
|
3019
3187
|
cost: number;
|
|
3020
3188
|
tokenUsage: {
|
|
@@ -3030,6 +3198,13 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
3030
3198
|
assertFailCount: number;
|
|
3031
3199
|
totalLatencyMs: number;
|
|
3032
3200
|
namedScores: Record<string, number>;
|
|
3201
|
+
namedScoresCount: Record<string, number>;
|
|
3202
|
+
redteam?: {
|
|
3203
|
+
pluginScores: Record<string, number>;
|
|
3204
|
+
pluginScoresCount: Record<string, number>;
|
|
3205
|
+
strategyScores: Record<string, number>;
|
|
3206
|
+
strategyScoresCount: Record<string, number>;
|
|
3207
|
+
} | undefined;
|
|
3033
3208
|
} | undefined;
|
|
3034
3209
|
};
|
|
3035
3210
|
evalId: string;
|
|
@@ -3063,8 +3238,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
3063
3238
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
3064
3239
|
provider?: string | {
|
|
3065
3240
|
id?: string | undefined;
|
|
3066
|
-
label?: string | undefined;
|
|
3067
3241
|
config?: any;
|
|
3242
|
+
label?: string | undefined;
|
|
3068
3243
|
prompts?: string[] | undefined;
|
|
3069
3244
|
transform?: string | undefined;
|
|
3070
3245
|
delay?: number | undefined;
|
|
@@ -3165,8 +3340,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
3165
3340
|
provider?: ApiProvider | undefined;
|
|
3166
3341
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
3167
3342
|
id?: string | undefined;
|
|
3168
|
-
display?: string | undefined;
|
|
3169
3343
|
config?: any;
|
|
3344
|
+
display?: string | undefined;
|
|
3170
3345
|
metrics?: {
|
|
3171
3346
|
cost: number;
|
|
3172
3347
|
tokenUsage: {
|
|
@@ -3182,6 +3357,13 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
3182
3357
|
assertFailCount: number;
|
|
3183
3358
|
totalLatencyMs: number;
|
|
3184
3359
|
namedScores: Record<string, number>;
|
|
3360
|
+
namedScoresCount: Record<string, number>;
|
|
3361
|
+
redteam?: {
|
|
3362
|
+
pluginScores: Record<string, number>;
|
|
3363
|
+
pluginScoresCount: Record<string, number>;
|
|
3364
|
+
strategyScores: Record<string, number>;
|
|
3365
|
+
strategyScoresCount: Record<string, number>;
|
|
3366
|
+
} | undefined;
|
|
3185
3367
|
} | undefined;
|
|
3186
3368
|
};
|
|
3187
3369
|
evalId: string;
|
|
@@ -3215,8 +3397,8 @@ export declare const TestCasesWithMetadataSchema: z.ZodObject<{
|
|
|
3215
3397
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
3216
3398
|
provider?: string | {
|
|
3217
3399
|
id?: string | undefined;
|
|
3218
|
-
label?: string | undefined;
|
|
3219
3400
|
config?: any;
|
|
3401
|
+
label?: string | undefined;
|
|
3220
3402
|
prompts?: string[] | undefined;
|
|
3221
3403
|
transform?: string | undefined;
|
|
3222
3404
|
delay?: number | undefined;
|
|
@@ -3426,8 +3608,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
3426
3608
|
}>>;
|
|
3427
3609
|
}, "strict", z.ZodTypeAny, {
|
|
3428
3610
|
id?: string | undefined;
|
|
3429
|
-
label?: string | undefined;
|
|
3430
3611
|
config?: any;
|
|
3612
|
+
label?: string | undefined;
|
|
3431
3613
|
prompts?: string[] | undefined;
|
|
3432
3614
|
transform?: string | undefined;
|
|
3433
3615
|
delay?: number | undefined;
|
|
@@ -3469,8 +3651,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
3469
3651
|
} | undefined;
|
|
3470
3652
|
}, {
|
|
3471
3653
|
id?: string | undefined;
|
|
3472
|
-
label?: string | undefined;
|
|
3473
3654
|
config?: any;
|
|
3655
|
+
label?: string | undefined;
|
|
3474
3656
|
prompts?: string[] | undefined;
|
|
3475
3657
|
transform?: string | undefined;
|
|
3476
3658
|
delay?: number | undefined;
|
|
@@ -3782,8 +3964,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
3782
3964
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
3783
3965
|
provider?: string | {
|
|
3784
3966
|
id?: string | undefined;
|
|
3785
|
-
label?: string | undefined;
|
|
3786
3967
|
config?: any;
|
|
3968
|
+
label?: string | undefined;
|
|
3787
3969
|
prompts?: string[] | undefined;
|
|
3788
3970
|
transform?: string | undefined;
|
|
3789
3971
|
delay?: number | undefined;
|
|
@@ -3896,8 +4078,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
3896
4078
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
3897
4079
|
provider?: string | {
|
|
3898
4080
|
id?: string | undefined;
|
|
3899
|
-
label?: string | undefined;
|
|
3900
4081
|
config?: any;
|
|
4082
|
+
label?: string | undefined;
|
|
3901
4083
|
prompts?: string[] | undefined;
|
|
3902
4084
|
transform?: string | undefined;
|
|
3903
4085
|
delay?: number | undefined;
|
|
@@ -4100,8 +4282,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
4100
4282
|
}>>;
|
|
4101
4283
|
}, "strict", z.ZodTypeAny, {
|
|
4102
4284
|
id?: string | undefined;
|
|
4103
|
-
label?: string | undefined;
|
|
4104
4285
|
config?: any;
|
|
4286
|
+
label?: string | undefined;
|
|
4105
4287
|
prompts?: string[] | undefined;
|
|
4106
4288
|
transform?: string | undefined;
|
|
4107
4289
|
delay?: number | undefined;
|
|
@@ -4143,8 +4325,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
4143
4325
|
} | undefined;
|
|
4144
4326
|
}, {
|
|
4145
4327
|
id?: string | undefined;
|
|
4146
|
-
label?: string | undefined;
|
|
4147
4328
|
config?: any;
|
|
4329
|
+
label?: string | undefined;
|
|
4148
4330
|
prompts?: string[] | undefined;
|
|
4149
4331
|
transform?: string | undefined;
|
|
4150
4332
|
delay?: number | undefined;
|
|
@@ -4456,8 +4638,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
4456
4638
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
4457
4639
|
provider?: string | {
|
|
4458
4640
|
id?: string | undefined;
|
|
4459
|
-
label?: string | undefined;
|
|
4460
4641
|
config?: any;
|
|
4642
|
+
label?: string | undefined;
|
|
4461
4643
|
prompts?: string[] | undefined;
|
|
4462
4644
|
transform?: string | undefined;
|
|
4463
4645
|
delay?: number | undefined;
|
|
@@ -4570,8 +4752,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
4570
4752
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
4571
4753
|
provider?: string | {
|
|
4572
4754
|
id?: string | undefined;
|
|
4573
|
-
label?: string | undefined;
|
|
4574
4755
|
config?: any;
|
|
4756
|
+
label?: string | undefined;
|
|
4575
4757
|
prompts?: string[] | undefined;
|
|
4576
4758
|
transform?: string | undefined;
|
|
4577
4759
|
delay?: number | undefined;
|
|
@@ -4686,8 +4868,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
4686
4868
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
4687
4869
|
provider?: string | {
|
|
4688
4870
|
id?: string | undefined;
|
|
4689
|
-
label?: string | undefined;
|
|
4690
4871
|
config?: any;
|
|
4872
|
+
label?: string | undefined;
|
|
4691
4873
|
prompts?: string[] | undefined;
|
|
4692
4874
|
transform?: string | undefined;
|
|
4693
4875
|
delay?: number | undefined;
|
|
@@ -4801,8 +4983,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
4801
4983
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
4802
4984
|
provider?: string | {
|
|
4803
4985
|
id?: string | undefined;
|
|
4804
|
-
label?: string | undefined;
|
|
4805
4986
|
config?: any;
|
|
4987
|
+
label?: string | undefined;
|
|
4806
4988
|
prompts?: string[] | undefined;
|
|
4807
4989
|
transform?: string | undefined;
|
|
4808
4990
|
delay?: number | undefined;
|
|
@@ -4918,8 +5100,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
4918
5100
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
4919
5101
|
provider?: string | {
|
|
4920
5102
|
id?: string | undefined;
|
|
4921
|
-
label?: string | undefined;
|
|
4922
5103
|
config?: any;
|
|
5104
|
+
label?: string | undefined;
|
|
4923
5105
|
prompts?: string[] | undefined;
|
|
4924
5106
|
transform?: string | undefined;
|
|
4925
5107
|
delay?: number | undefined;
|
|
@@ -5033,8 +5215,8 @@ export declare const ScenarioSchema: z.ZodObject<{
|
|
|
5033
5215
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
5034
5216
|
provider?: string | {
|
|
5035
5217
|
id?: string | undefined;
|
|
5036
|
-
label?: string | undefined;
|
|
5037
5218
|
config?: any;
|
|
5219
|
+
label?: string | undefined;
|
|
5038
5220
|
prompts?: string[] | undefined;
|
|
5039
5221
|
transform?: string | undefined;
|
|
5040
5222
|
delay?: number | undefined;
|
|
@@ -5240,8 +5422,8 @@ export declare const AtomicTestCaseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
5240
5422
|
}>>;
|
|
5241
5423
|
}, "strict", z.ZodTypeAny, {
|
|
5242
5424
|
id?: string | undefined;
|
|
5243
|
-
label?: string | undefined;
|
|
5244
5425
|
config?: any;
|
|
5426
|
+
label?: string | undefined;
|
|
5245
5427
|
prompts?: string[] | undefined;
|
|
5246
5428
|
transform?: string | undefined;
|
|
5247
5429
|
delay?: number | undefined;
|
|
@@ -5283,8 +5465,8 @@ export declare const AtomicTestCaseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
5283
5465
|
} | undefined;
|
|
5284
5466
|
}, {
|
|
5285
5467
|
id?: string | undefined;
|
|
5286
|
-
label?: string | undefined;
|
|
5287
5468
|
config?: any;
|
|
5469
|
+
label?: string | undefined;
|
|
5288
5470
|
prompts?: string[] | undefined;
|
|
5289
5471
|
transform?: string | undefined;
|
|
5290
5472
|
delay?: number | undefined;
|
|
@@ -5598,8 +5780,8 @@ export declare const AtomicTestCaseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
5598
5780
|
vars?: Record<string, string | {}> | undefined;
|
|
5599
5781
|
provider?: string | {
|
|
5600
5782
|
id?: string | undefined;
|
|
5601
|
-
label?: string | undefined;
|
|
5602
5783
|
config?: any;
|
|
5784
|
+
label?: string | undefined;
|
|
5603
5785
|
prompts?: string[] | undefined;
|
|
5604
5786
|
transform?: string | undefined;
|
|
5605
5787
|
delay?: number | undefined;
|
|
@@ -5712,8 +5894,8 @@ export declare const AtomicTestCaseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
5712
5894
|
vars?: Record<string, string | {}> | undefined;
|
|
5713
5895
|
provider?: string | {
|
|
5714
5896
|
id?: string | undefined;
|
|
5715
|
-
label?: string | undefined;
|
|
5716
5897
|
config?: any;
|
|
5898
|
+
label?: string | undefined;
|
|
5717
5899
|
prompts?: string[] | undefined;
|
|
5718
5900
|
transform?: string | undefined;
|
|
5719
5901
|
delay?: number | undefined;
|
|
@@ -5862,8 +6044,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
5862
6044
|
provider?: ApiProvider | undefined;
|
|
5863
6045
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
5864
6046
|
id?: string | undefined;
|
|
5865
|
-
display?: string | undefined;
|
|
5866
6047
|
config?: any;
|
|
6048
|
+
display?: string | undefined;
|
|
5867
6049
|
}, {
|
|
5868
6050
|
raw: string;
|
|
5869
6051
|
label: string;
|
|
@@ -5872,8 +6054,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
5872
6054
|
provider?: ApiProvider | undefined;
|
|
5873
6055
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
5874
6056
|
id?: string | undefined;
|
|
5875
|
-
display?: string | undefined;
|
|
5876
6057
|
config?: any;
|
|
6058
|
+
display?: string | undefined;
|
|
5877
6059
|
}>, "many">;
|
|
5878
6060
|
providerPromptMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string[], string>, z.ZodArray<z.ZodString, "many">]>>>;
|
|
5879
6061
|
tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -5994,8 +6176,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
5994
6176
|
}>>;
|
|
5995
6177
|
}, "strict", z.ZodTypeAny, {
|
|
5996
6178
|
id?: string | undefined;
|
|
5997
|
-
label?: string | undefined;
|
|
5998
6179
|
config?: any;
|
|
6180
|
+
label?: string | undefined;
|
|
5999
6181
|
prompts?: string[] | undefined;
|
|
6000
6182
|
transform?: string | undefined;
|
|
6001
6183
|
delay?: number | undefined;
|
|
@@ -6037,8 +6219,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
6037
6219
|
} | undefined;
|
|
6038
6220
|
}, {
|
|
6039
6221
|
id?: string | undefined;
|
|
6040
|
-
label?: string | undefined;
|
|
6041
6222
|
config?: any;
|
|
6223
|
+
label?: string | undefined;
|
|
6042
6224
|
prompts?: string[] | undefined;
|
|
6043
6225
|
transform?: string | undefined;
|
|
6044
6226
|
delay?: number | undefined;
|
|
@@ -6350,8 +6532,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
6350
6532
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
6351
6533
|
provider?: string | {
|
|
6352
6534
|
id?: string | undefined;
|
|
6353
|
-
label?: string | undefined;
|
|
6354
6535
|
config?: any;
|
|
6536
|
+
label?: string | undefined;
|
|
6355
6537
|
prompts?: string[] | undefined;
|
|
6356
6538
|
transform?: string | undefined;
|
|
6357
6539
|
delay?: number | undefined;
|
|
@@ -6464,8 +6646,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
6464
6646
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
6465
6647
|
provider?: string | {
|
|
6466
6648
|
id?: string | undefined;
|
|
6467
|
-
label?: string | undefined;
|
|
6468
6649
|
config?: any;
|
|
6650
|
+
label?: string | undefined;
|
|
6469
6651
|
prompts?: string[] | undefined;
|
|
6470
6652
|
transform?: string | undefined;
|
|
6471
6653
|
delay?: number | undefined;
|
|
@@ -6670,8 +6852,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
6670
6852
|
}>>;
|
|
6671
6853
|
}, "strict", z.ZodTypeAny, {
|
|
6672
6854
|
id?: string | undefined;
|
|
6673
|
-
label?: string | undefined;
|
|
6674
6855
|
config?: any;
|
|
6856
|
+
label?: string | undefined;
|
|
6675
6857
|
prompts?: string[] | undefined;
|
|
6676
6858
|
transform?: string | undefined;
|
|
6677
6859
|
delay?: number | undefined;
|
|
@@ -6713,8 +6895,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
6713
6895
|
} | undefined;
|
|
6714
6896
|
}, {
|
|
6715
6897
|
id?: string | undefined;
|
|
6716
|
-
label?: string | undefined;
|
|
6717
6898
|
config?: any;
|
|
6899
|
+
label?: string | undefined;
|
|
6718
6900
|
prompts?: string[] | undefined;
|
|
6719
6901
|
transform?: string | undefined;
|
|
6720
6902
|
delay?: number | undefined;
|
|
@@ -7026,8 +7208,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
7026
7208
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
7027
7209
|
provider?: string | {
|
|
7028
7210
|
id?: string | undefined;
|
|
7029
|
-
label?: string | undefined;
|
|
7030
7211
|
config?: any;
|
|
7212
|
+
label?: string | undefined;
|
|
7031
7213
|
prompts?: string[] | undefined;
|
|
7032
7214
|
transform?: string | undefined;
|
|
7033
7215
|
delay?: number | undefined;
|
|
@@ -7140,8 +7322,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
7140
7322
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
7141
7323
|
provider?: string | {
|
|
7142
7324
|
id?: string | undefined;
|
|
7143
|
-
label?: string | undefined;
|
|
7144
7325
|
config?: any;
|
|
7326
|
+
label?: string | undefined;
|
|
7145
7327
|
prompts?: string[] | undefined;
|
|
7146
7328
|
transform?: string | undefined;
|
|
7147
7329
|
delay?: number | undefined;
|
|
@@ -7344,8 +7526,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
7344
7526
|
}>>;
|
|
7345
7527
|
}, "strict", z.ZodTypeAny, {
|
|
7346
7528
|
id?: string | undefined;
|
|
7347
|
-
label?: string | undefined;
|
|
7348
7529
|
config?: any;
|
|
7530
|
+
label?: string | undefined;
|
|
7349
7531
|
prompts?: string[] | undefined;
|
|
7350
7532
|
transform?: string | undefined;
|
|
7351
7533
|
delay?: number | undefined;
|
|
@@ -7387,8 +7569,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
7387
7569
|
} | undefined;
|
|
7388
7570
|
}, {
|
|
7389
7571
|
id?: string | undefined;
|
|
7390
|
-
label?: string | undefined;
|
|
7391
7572
|
config?: any;
|
|
7573
|
+
label?: string | undefined;
|
|
7392
7574
|
prompts?: string[] | undefined;
|
|
7393
7575
|
transform?: string | undefined;
|
|
7394
7576
|
delay?: number | undefined;
|
|
@@ -7700,8 +7882,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
7700
7882
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
7701
7883
|
provider?: string | {
|
|
7702
7884
|
id?: string | undefined;
|
|
7703
|
-
label?: string | undefined;
|
|
7704
7885
|
config?: any;
|
|
7886
|
+
label?: string | undefined;
|
|
7705
7887
|
prompts?: string[] | undefined;
|
|
7706
7888
|
transform?: string | undefined;
|
|
7707
7889
|
delay?: number | undefined;
|
|
@@ -7814,8 +7996,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
7814
7996
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
7815
7997
|
provider?: string | {
|
|
7816
7998
|
id?: string | undefined;
|
|
7817
|
-
label?: string | undefined;
|
|
7818
7999
|
config?: any;
|
|
8000
|
+
label?: string | undefined;
|
|
7819
8001
|
prompts?: string[] | undefined;
|
|
7820
8002
|
transform?: string | undefined;
|
|
7821
8003
|
delay?: number | undefined;
|
|
@@ -7930,8 +8112,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
7930
8112
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
7931
8113
|
provider?: string | {
|
|
7932
8114
|
id?: string | undefined;
|
|
7933
|
-
label?: string | undefined;
|
|
7934
8115
|
config?: any;
|
|
8116
|
+
label?: string | undefined;
|
|
7935
8117
|
prompts?: string[] | undefined;
|
|
7936
8118
|
transform?: string | undefined;
|
|
7937
8119
|
delay?: number | undefined;
|
|
@@ -8045,8 +8227,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
8045
8227
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
8046
8228
|
provider?: string | {
|
|
8047
8229
|
id?: string | undefined;
|
|
8048
|
-
label?: string | undefined;
|
|
8049
8230
|
config?: any;
|
|
8231
|
+
label?: string | undefined;
|
|
8050
8232
|
prompts?: string[] | undefined;
|
|
8051
8233
|
transform?: string | undefined;
|
|
8052
8234
|
delay?: number | undefined;
|
|
@@ -8162,8 +8344,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
8162
8344
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
8163
8345
|
provider?: string | {
|
|
8164
8346
|
id?: string | undefined;
|
|
8165
|
-
label?: string | undefined;
|
|
8166
8347
|
config?: any;
|
|
8348
|
+
label?: string | undefined;
|
|
8167
8349
|
prompts?: string[] | undefined;
|
|
8168
8350
|
transform?: string | undefined;
|
|
8169
8351
|
delay?: number | undefined;
|
|
@@ -8277,8 +8459,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
8277
8459
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
8278
8460
|
provider?: string | {
|
|
8279
8461
|
id?: string | undefined;
|
|
8280
|
-
label?: string | undefined;
|
|
8281
8462
|
config?: any;
|
|
8463
|
+
label?: string | undefined;
|
|
8282
8464
|
prompts?: string[] | undefined;
|
|
8283
8465
|
transform?: string | undefined;
|
|
8284
8466
|
delay?: number | undefined;
|
|
@@ -8483,8 +8665,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
8483
8665
|
}>>;
|
|
8484
8666
|
}, "strict", z.ZodTypeAny, {
|
|
8485
8667
|
id?: string | undefined;
|
|
8486
|
-
label?: string | undefined;
|
|
8487
8668
|
config?: any;
|
|
8669
|
+
label?: string | undefined;
|
|
8488
8670
|
prompts?: string[] | undefined;
|
|
8489
8671
|
transform?: string | undefined;
|
|
8490
8672
|
delay?: number | undefined;
|
|
@@ -8526,8 +8708,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
8526
8708
|
} | undefined;
|
|
8527
8709
|
}, {
|
|
8528
8710
|
id?: string | undefined;
|
|
8529
|
-
label?: string | undefined;
|
|
8530
8711
|
config?: any;
|
|
8712
|
+
label?: string | undefined;
|
|
8531
8713
|
prompts?: string[] | undefined;
|
|
8532
8714
|
transform?: string | undefined;
|
|
8533
8715
|
delay?: number | undefined;
|
|
@@ -8839,8 +9021,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
8839
9021
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
8840
9022
|
provider?: string | {
|
|
8841
9023
|
id?: string | undefined;
|
|
8842
|
-
label?: string | undefined;
|
|
8843
9024
|
config?: any;
|
|
9025
|
+
label?: string | undefined;
|
|
8844
9026
|
prompts?: string[] | undefined;
|
|
8845
9027
|
transform?: string | undefined;
|
|
8846
9028
|
delay?: number | undefined;
|
|
@@ -8953,8 +9135,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
8953
9135
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
8954
9136
|
provider?: string | {
|
|
8955
9137
|
id?: string | undefined;
|
|
8956
|
-
label?: string | undefined;
|
|
8957
9138
|
config?: any;
|
|
9139
|
+
label?: string | undefined;
|
|
8958
9140
|
prompts?: string[] | undefined;
|
|
8959
9141
|
transform?: string | undefined;
|
|
8960
9142
|
delay?: number | undefined;
|
|
@@ -9167,8 +9349,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
9167
9349
|
provider?: ApiProvider | undefined;
|
|
9168
9350
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
9169
9351
|
id?: string | undefined;
|
|
9170
|
-
display?: string | undefined;
|
|
9171
9352
|
config?: any;
|
|
9353
|
+
display?: string | undefined;
|
|
9172
9354
|
}[];
|
|
9173
9355
|
providers: {
|
|
9174
9356
|
callApi: import("./providers").CallApiFunction;
|
|
@@ -9245,8 +9427,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
9245
9427
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
9246
9428
|
provider?: string | {
|
|
9247
9429
|
id?: string | undefined;
|
|
9248
|
-
label?: string | undefined;
|
|
9249
9430
|
config?: any;
|
|
9431
|
+
label?: string | undefined;
|
|
9250
9432
|
prompts?: string[] | undefined;
|
|
9251
9433
|
transform?: string | undefined;
|
|
9252
9434
|
delay?: number | undefined;
|
|
@@ -9331,6 +9513,7 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
9331
9513
|
})[] | undefined;
|
|
9332
9514
|
threshold?: number | undefined;
|
|
9333
9515
|
}[] | undefined;
|
|
9516
|
+
redteam?: RedteamFileConfig | undefined;
|
|
9334
9517
|
tags?: Record<string, string> | undefined;
|
|
9335
9518
|
providerPromptMap?: Record<string, string[]> | undefined;
|
|
9336
9519
|
scenarios?: {
|
|
@@ -9363,8 +9546,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
9363
9546
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
9364
9547
|
provider?: string | {
|
|
9365
9548
|
id?: string | undefined;
|
|
9366
|
-
label?: string | undefined;
|
|
9367
9549
|
config?: any;
|
|
9550
|
+
label?: string | undefined;
|
|
9368
9551
|
prompts?: string[] | undefined;
|
|
9369
9552
|
transform?: string | undefined;
|
|
9370
9553
|
delay?: number | undefined;
|
|
@@ -9478,8 +9661,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
9478
9661
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
9479
9662
|
provider?: string | {
|
|
9480
9663
|
id?: string | undefined;
|
|
9481
|
-
label?: string | undefined;
|
|
9482
9664
|
config?: any;
|
|
9665
|
+
label?: string | undefined;
|
|
9483
9666
|
prompts?: string[] | undefined;
|
|
9484
9667
|
transform?: string | undefined;
|
|
9485
9668
|
delay?: number | undefined;
|
|
@@ -9595,8 +9778,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
9595
9778
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
9596
9779
|
provider?: string | {
|
|
9597
9780
|
id?: string | undefined;
|
|
9598
|
-
label?: string | undefined;
|
|
9599
9781
|
config?: any;
|
|
9782
|
+
label?: string | undefined;
|
|
9600
9783
|
prompts?: string[] | undefined;
|
|
9601
9784
|
transform?: string | undefined;
|
|
9602
9785
|
delay?: number | undefined;
|
|
@@ -9687,7 +9870,6 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
9687
9870
|
name: string;
|
|
9688
9871
|
}[] | undefined;
|
|
9689
9872
|
extensions?: string[] | undefined;
|
|
9690
|
-
redteam?: RedteamFileConfig | undefined;
|
|
9691
9873
|
}, {
|
|
9692
9874
|
prompts: {
|
|
9693
9875
|
raw: string;
|
|
@@ -9697,8 +9879,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
9697
9879
|
provider?: ApiProvider | undefined;
|
|
9698
9880
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
9699
9881
|
id?: string | undefined;
|
|
9700
|
-
display?: string | undefined;
|
|
9701
9882
|
config?: any;
|
|
9883
|
+
display?: string | undefined;
|
|
9702
9884
|
}[];
|
|
9703
9885
|
providers: {
|
|
9704
9886
|
callApi: import("./providers").CallApiFunction;
|
|
@@ -9775,8 +9957,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
9775
9957
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
9776
9958
|
provider?: string | {
|
|
9777
9959
|
id?: string | undefined;
|
|
9778
|
-
label?: string | undefined;
|
|
9779
9960
|
config?: any;
|
|
9961
|
+
label?: string | undefined;
|
|
9780
9962
|
prompts?: string[] | undefined;
|
|
9781
9963
|
transform?: string | undefined;
|
|
9782
9964
|
delay?: number | undefined;
|
|
@@ -9861,6 +10043,7 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
9861
10043
|
})[] | undefined;
|
|
9862
10044
|
threshold?: number | undefined;
|
|
9863
10045
|
}[] | undefined;
|
|
10046
|
+
redteam?: RedteamFileConfig | undefined;
|
|
9864
10047
|
tags?: Record<string, string> | undefined;
|
|
9865
10048
|
providerPromptMap?: Record<string, string | string[]> | undefined;
|
|
9866
10049
|
scenarios?: {
|
|
@@ -9893,8 +10076,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
9893
10076
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
9894
10077
|
provider?: string | {
|
|
9895
10078
|
id?: string | undefined;
|
|
9896
|
-
label?: string | undefined;
|
|
9897
10079
|
config?: any;
|
|
10080
|
+
label?: string | undefined;
|
|
9898
10081
|
prompts?: string[] | undefined;
|
|
9899
10082
|
transform?: string | undefined;
|
|
9900
10083
|
delay?: number | undefined;
|
|
@@ -10008,8 +10191,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
10008
10191
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
10009
10192
|
provider?: string | {
|
|
10010
10193
|
id?: string | undefined;
|
|
10011
|
-
label?: string | undefined;
|
|
10012
10194
|
config?: any;
|
|
10195
|
+
label?: string | undefined;
|
|
10013
10196
|
prompts?: string[] | undefined;
|
|
10014
10197
|
transform?: string | undefined;
|
|
10015
10198
|
delay?: number | undefined;
|
|
@@ -10125,8 +10308,8 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
10125
10308
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
10126
10309
|
provider?: string | {
|
|
10127
10310
|
id?: string | undefined;
|
|
10128
|
-
label?: string | undefined;
|
|
10129
10311
|
config?: any;
|
|
10312
|
+
label?: string | undefined;
|
|
10130
10313
|
prompts?: string[] | undefined;
|
|
10131
10314
|
transform?: string | undefined;
|
|
10132
10315
|
delay?: number | undefined;
|
|
@@ -10217,7 +10400,6 @@ export declare const TestSuiteSchema: z.ZodObject<{
|
|
|
10217
10400
|
name: string;
|
|
10218
10401
|
}[] | undefined;
|
|
10219
10402
|
extensions?: string[] | undefined;
|
|
10220
|
-
redteam?: RedteamFileConfig | undefined;
|
|
10221
10403
|
}>;
|
|
10222
10404
|
export type TestSuite = z.infer<typeof TestSuiteSchema>;
|
|
10223
10405
|
export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
@@ -10253,8 +10435,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10253
10435
|
provider?: ApiProvider | undefined;
|
|
10254
10436
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
10255
10437
|
id?: string | undefined;
|
|
10256
|
-
display?: string | undefined;
|
|
10257
10438
|
config?: any;
|
|
10439
|
+
display?: string | undefined;
|
|
10258
10440
|
}, {
|
|
10259
10441
|
raw: string;
|
|
10260
10442
|
label: string;
|
|
@@ -10263,8 +10445,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10263
10445
|
provider?: ApiProvider | undefined;
|
|
10264
10446
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
10265
10447
|
id?: string | undefined;
|
|
10266
|
-
display?: string | undefined;
|
|
10267
10448
|
config?: any;
|
|
10449
|
+
display?: string | undefined;
|
|
10268
10450
|
}>;
|
|
10269
10451
|
vars: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>;
|
|
10270
10452
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10277,8 +10459,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10277
10459
|
provider?: ApiProvider | undefined;
|
|
10278
10460
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
10279
10461
|
id?: string | undefined;
|
|
10280
|
-
display?: string | undefined;
|
|
10281
10462
|
config?: any;
|
|
10463
|
+
display?: string | undefined;
|
|
10282
10464
|
};
|
|
10283
10465
|
fetchWithCache?: any;
|
|
10284
10466
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -10295,8 +10477,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10295
10477
|
provider?: ApiProvider | undefined;
|
|
10296
10478
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
10297
10479
|
id?: string | undefined;
|
|
10298
|
-
display?: string | undefined;
|
|
10299
10480
|
config?: any;
|
|
10481
|
+
display?: string | undefined;
|
|
10300
10482
|
};
|
|
10301
10483
|
fetchWithCache?: any;
|
|
10302
10484
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -10430,8 +10612,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10430
10612
|
}>>;
|
|
10431
10613
|
}, "strict", z.ZodTypeAny, {
|
|
10432
10614
|
id?: string | undefined;
|
|
10433
|
-
label?: string | undefined;
|
|
10434
10615
|
config?: any;
|
|
10616
|
+
label?: string | undefined;
|
|
10435
10617
|
prompts?: string[] | undefined;
|
|
10436
10618
|
transform?: string | undefined;
|
|
10437
10619
|
delay?: number | undefined;
|
|
@@ -10473,8 +10655,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10473
10655
|
} | undefined;
|
|
10474
10656
|
}, {
|
|
10475
10657
|
id?: string | undefined;
|
|
10476
|
-
label?: string | undefined;
|
|
10477
10658
|
config?: any;
|
|
10659
|
+
label?: string | undefined;
|
|
10478
10660
|
prompts?: string[] | undefined;
|
|
10479
10661
|
transform?: string | undefined;
|
|
10480
10662
|
delay?: number | undefined;
|
|
@@ -10629,8 +10811,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10629
10811
|
}>>;
|
|
10630
10812
|
}, "strict", z.ZodTypeAny, {
|
|
10631
10813
|
id?: string | undefined;
|
|
10632
|
-
label?: string | undefined;
|
|
10633
10814
|
config?: any;
|
|
10815
|
+
label?: string | undefined;
|
|
10634
10816
|
prompts?: string[] | undefined;
|
|
10635
10817
|
transform?: string | undefined;
|
|
10636
10818
|
delay?: number | undefined;
|
|
@@ -10672,8 +10854,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10672
10854
|
} | undefined;
|
|
10673
10855
|
}, {
|
|
10674
10856
|
id?: string | undefined;
|
|
10675
|
-
label?: string | undefined;
|
|
10676
10857
|
config?: any;
|
|
10858
|
+
label?: string | undefined;
|
|
10677
10859
|
prompts?: string[] | undefined;
|
|
10678
10860
|
transform?: string | undefined;
|
|
10679
10861
|
delay?: number | undefined;
|
|
@@ -10743,8 +10925,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10743
10925
|
provider?: ApiProvider | undefined;
|
|
10744
10926
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
10745
10927
|
id?: string | undefined;
|
|
10746
|
-
display?: string | undefined;
|
|
10747
10928
|
config?: any;
|
|
10929
|
+
display?: string | undefined;
|
|
10748
10930
|
}, {
|
|
10749
10931
|
raw: string;
|
|
10750
10932
|
label: string;
|
|
@@ -10753,8 +10935,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10753
10935
|
provider?: ApiProvider | undefined;
|
|
10754
10936
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
10755
10937
|
id?: string | undefined;
|
|
10756
|
-
display?: string | undefined;
|
|
10757
10938
|
config?: any;
|
|
10939
|
+
display?: string | undefined;
|
|
10758
10940
|
}>;
|
|
10759
10941
|
vars: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>;
|
|
10760
10942
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10767,8 +10949,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10767
10949
|
provider?: ApiProvider | undefined;
|
|
10768
10950
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
10769
10951
|
id?: string | undefined;
|
|
10770
|
-
display?: string | undefined;
|
|
10771
10952
|
config?: any;
|
|
10953
|
+
display?: string | undefined;
|
|
10772
10954
|
};
|
|
10773
10955
|
fetchWithCache?: any;
|
|
10774
10956
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -10785,8 +10967,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10785
10967
|
provider?: ApiProvider | undefined;
|
|
10786
10968
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
10787
10969
|
id?: string | undefined;
|
|
10788
|
-
display?: string | undefined;
|
|
10789
10970
|
config?: any;
|
|
10971
|
+
display?: string | undefined;
|
|
10790
10972
|
};
|
|
10791
10973
|
fetchWithCache?: any;
|
|
10792
10974
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -10842,8 +11024,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10842
11024
|
provider?: ApiProvider | undefined;
|
|
10843
11025
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
10844
11026
|
id?: string | undefined;
|
|
10845
|
-
display?: string | undefined;
|
|
10846
11027
|
config?: any;
|
|
11028
|
+
display?: string | undefined;
|
|
10847
11029
|
}, {
|
|
10848
11030
|
raw: string;
|
|
10849
11031
|
label: string;
|
|
@@ -10852,8 +11034,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10852
11034
|
provider?: ApiProvider | undefined;
|
|
10853
11035
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
10854
11036
|
id?: string | undefined;
|
|
10855
|
-
display?: string | undefined;
|
|
10856
11037
|
config?: any;
|
|
11038
|
+
display?: string | undefined;
|
|
10857
11039
|
}>]>, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
10858
11040
|
tests: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
10859
11041
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -10973,8 +11155,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
10973
11155
|
}>>;
|
|
10974
11156
|
}, "strict", z.ZodTypeAny, {
|
|
10975
11157
|
id?: string | undefined;
|
|
10976
|
-
label?: string | undefined;
|
|
10977
11158
|
config?: any;
|
|
11159
|
+
label?: string | undefined;
|
|
10978
11160
|
prompts?: string[] | undefined;
|
|
10979
11161
|
transform?: string | undefined;
|
|
10980
11162
|
delay?: number | undefined;
|
|
@@ -11016,8 +11198,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
11016
11198
|
} | undefined;
|
|
11017
11199
|
}, {
|
|
11018
11200
|
id?: string | undefined;
|
|
11019
|
-
label?: string | undefined;
|
|
11020
11201
|
config?: any;
|
|
11202
|
+
label?: string | undefined;
|
|
11021
11203
|
prompts?: string[] | undefined;
|
|
11022
11204
|
transform?: string | undefined;
|
|
11023
11205
|
delay?: number | undefined;
|
|
@@ -11329,8 +11511,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
11329
11511
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
11330
11512
|
provider?: string | {
|
|
11331
11513
|
id?: string | undefined;
|
|
11332
|
-
label?: string | undefined;
|
|
11333
11514
|
config?: any;
|
|
11515
|
+
label?: string | undefined;
|
|
11334
11516
|
prompts?: string[] | undefined;
|
|
11335
11517
|
transform?: string | undefined;
|
|
11336
11518
|
delay?: number | undefined;
|
|
@@ -11443,8 +11625,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
11443
11625
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
11444
11626
|
provider?: string | {
|
|
11445
11627
|
id?: string | undefined;
|
|
11446
|
-
label?: string | undefined;
|
|
11447
11628
|
config?: any;
|
|
11629
|
+
label?: string | undefined;
|
|
11448
11630
|
prompts?: string[] | undefined;
|
|
11449
11631
|
transform?: string | undefined;
|
|
11450
11632
|
delay?: number | undefined;
|
|
@@ -11649,8 +11831,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
11649
11831
|
}>>;
|
|
11650
11832
|
}, "strict", z.ZodTypeAny, {
|
|
11651
11833
|
id?: string | undefined;
|
|
11652
|
-
label?: string | undefined;
|
|
11653
11834
|
config?: any;
|
|
11835
|
+
label?: string | undefined;
|
|
11654
11836
|
prompts?: string[] | undefined;
|
|
11655
11837
|
transform?: string | undefined;
|
|
11656
11838
|
delay?: number | undefined;
|
|
@@ -11692,8 +11874,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
11692
11874
|
} | undefined;
|
|
11693
11875
|
}, {
|
|
11694
11876
|
id?: string | undefined;
|
|
11695
|
-
label?: string | undefined;
|
|
11696
11877
|
config?: any;
|
|
11878
|
+
label?: string | undefined;
|
|
11697
11879
|
prompts?: string[] | undefined;
|
|
11698
11880
|
transform?: string | undefined;
|
|
11699
11881
|
delay?: number | undefined;
|
|
@@ -12005,8 +12187,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
12005
12187
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
12006
12188
|
provider?: string | {
|
|
12007
12189
|
id?: string | undefined;
|
|
12008
|
-
label?: string | undefined;
|
|
12009
12190
|
config?: any;
|
|
12191
|
+
label?: string | undefined;
|
|
12010
12192
|
prompts?: string[] | undefined;
|
|
12011
12193
|
transform?: string | undefined;
|
|
12012
12194
|
delay?: number | undefined;
|
|
@@ -12119,8 +12301,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
12119
12301
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
12120
12302
|
provider?: string | {
|
|
12121
12303
|
id?: string | undefined;
|
|
12122
|
-
label?: string | undefined;
|
|
12123
12304
|
config?: any;
|
|
12305
|
+
label?: string | undefined;
|
|
12124
12306
|
prompts?: string[] | undefined;
|
|
12125
12307
|
transform?: string | undefined;
|
|
12126
12308
|
delay?: number | undefined;
|
|
@@ -12323,8 +12505,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
12323
12505
|
}>>;
|
|
12324
12506
|
}, "strict", z.ZodTypeAny, {
|
|
12325
12507
|
id?: string | undefined;
|
|
12326
|
-
label?: string | undefined;
|
|
12327
12508
|
config?: any;
|
|
12509
|
+
label?: string | undefined;
|
|
12328
12510
|
prompts?: string[] | undefined;
|
|
12329
12511
|
transform?: string | undefined;
|
|
12330
12512
|
delay?: number | undefined;
|
|
@@ -12366,8 +12548,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
12366
12548
|
} | undefined;
|
|
12367
12549
|
}, {
|
|
12368
12550
|
id?: string | undefined;
|
|
12369
|
-
label?: string | undefined;
|
|
12370
12551
|
config?: any;
|
|
12552
|
+
label?: string | undefined;
|
|
12371
12553
|
prompts?: string[] | undefined;
|
|
12372
12554
|
transform?: string | undefined;
|
|
12373
12555
|
delay?: number | undefined;
|
|
@@ -12679,8 +12861,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
12679
12861
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
12680
12862
|
provider?: string | {
|
|
12681
12863
|
id?: string | undefined;
|
|
12682
|
-
label?: string | undefined;
|
|
12683
12864
|
config?: any;
|
|
12865
|
+
label?: string | undefined;
|
|
12684
12866
|
prompts?: string[] | undefined;
|
|
12685
12867
|
transform?: string | undefined;
|
|
12686
12868
|
delay?: number | undefined;
|
|
@@ -12793,8 +12975,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
12793
12975
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
12794
12976
|
provider?: string | {
|
|
12795
12977
|
id?: string | undefined;
|
|
12796
|
-
label?: string | undefined;
|
|
12797
12978
|
config?: any;
|
|
12979
|
+
label?: string | undefined;
|
|
12798
12980
|
prompts?: string[] | undefined;
|
|
12799
12981
|
transform?: string | undefined;
|
|
12800
12982
|
delay?: number | undefined;
|
|
@@ -12909,8 +13091,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
12909
13091
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
12910
13092
|
provider?: string | {
|
|
12911
13093
|
id?: string | undefined;
|
|
12912
|
-
label?: string | undefined;
|
|
12913
13094
|
config?: any;
|
|
13095
|
+
label?: string | undefined;
|
|
12914
13096
|
prompts?: string[] | undefined;
|
|
12915
13097
|
transform?: string | undefined;
|
|
12916
13098
|
delay?: number | undefined;
|
|
@@ -13024,8 +13206,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
13024
13206
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
13025
13207
|
provider?: string | {
|
|
13026
13208
|
id?: string | undefined;
|
|
13027
|
-
label?: string | undefined;
|
|
13028
13209
|
config?: any;
|
|
13210
|
+
label?: string | undefined;
|
|
13029
13211
|
prompts?: string[] | undefined;
|
|
13030
13212
|
transform?: string | undefined;
|
|
13031
13213
|
delay?: number | undefined;
|
|
@@ -13141,8 +13323,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
13141
13323
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
13142
13324
|
provider?: string | {
|
|
13143
13325
|
id?: string | undefined;
|
|
13144
|
-
label?: string | undefined;
|
|
13145
13326
|
config?: any;
|
|
13327
|
+
label?: string | undefined;
|
|
13146
13328
|
prompts?: string[] | undefined;
|
|
13147
13329
|
transform?: string | undefined;
|
|
13148
13330
|
delay?: number | undefined;
|
|
@@ -13256,8 +13438,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
13256
13438
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
13257
13439
|
provider?: string | {
|
|
13258
13440
|
id?: string | undefined;
|
|
13259
|
-
label?: string | undefined;
|
|
13260
13441
|
config?: any;
|
|
13442
|
+
label?: string | undefined;
|
|
13261
13443
|
prompts?: string[] | undefined;
|
|
13262
13444
|
transform?: string | undefined;
|
|
13263
13445
|
delay?: number | undefined;
|
|
@@ -13462,8 +13644,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
13462
13644
|
}>>;
|
|
13463
13645
|
}, "strict", z.ZodTypeAny, {
|
|
13464
13646
|
id?: string | undefined;
|
|
13465
|
-
label?: string | undefined;
|
|
13466
13647
|
config?: any;
|
|
13648
|
+
label?: string | undefined;
|
|
13467
13649
|
prompts?: string[] | undefined;
|
|
13468
13650
|
transform?: string | undefined;
|
|
13469
13651
|
delay?: number | undefined;
|
|
@@ -13505,8 +13687,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
13505
13687
|
} | undefined;
|
|
13506
13688
|
}, {
|
|
13507
13689
|
id?: string | undefined;
|
|
13508
|
-
label?: string | undefined;
|
|
13509
13690
|
config?: any;
|
|
13691
|
+
label?: string | undefined;
|
|
13510
13692
|
prompts?: string[] | undefined;
|
|
13511
13693
|
transform?: string | undefined;
|
|
13512
13694
|
delay?: number | undefined;
|
|
@@ -13818,8 +14000,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
13818
14000
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
13819
14001
|
provider?: string | {
|
|
13820
14002
|
id?: string | undefined;
|
|
13821
|
-
label?: string | undefined;
|
|
13822
14003
|
config?: any;
|
|
14004
|
+
label?: string | undefined;
|
|
13823
14005
|
prompts?: string[] | undefined;
|
|
13824
14006
|
transform?: string | undefined;
|
|
13825
14007
|
delay?: number | undefined;
|
|
@@ -13931,8 +14113,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
13931
14113
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
13932
14114
|
provider?: string | {
|
|
13933
14115
|
id?: string | undefined;
|
|
13934
|
-
label?: string | undefined;
|
|
13935
14116
|
config?: any;
|
|
14117
|
+
label?: string | undefined;
|
|
13936
14118
|
prompts?: string[] | undefined;
|
|
13937
14119
|
transform?: string | undefined;
|
|
13938
14120
|
delay?: number | undefined;
|
|
@@ -14157,8 +14339,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14157
14339
|
provider?: ApiProvider | undefined;
|
|
14158
14340
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
14159
14341
|
id?: string | undefined;
|
|
14160
|
-
display?: string | undefined;
|
|
14161
14342
|
config?: any;
|
|
14343
|
+
display?: string | undefined;
|
|
14162
14344
|
} | {
|
|
14163
14345
|
id: string;
|
|
14164
14346
|
raw?: string | undefined;
|
|
@@ -14174,8 +14356,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14174
14356
|
provider?: ApiProvider | undefined;
|
|
14175
14357
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
14176
14358
|
id?: string | undefined;
|
|
14177
|
-
display?: string | undefined;
|
|
14178
14359
|
config?: any;
|
|
14360
|
+
display?: string | undefined;
|
|
14179
14361
|
};
|
|
14180
14362
|
fetchWithCache?: any;
|
|
14181
14363
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -14188,8 +14370,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14188
14370
|
label?: string | undefined;
|
|
14189
14371
|
}) | (string | {
|
|
14190
14372
|
id?: string | undefined;
|
|
14191
|
-
label?: string | undefined;
|
|
14192
14373
|
config?: any;
|
|
14374
|
+
label?: string | undefined;
|
|
14193
14375
|
prompts?: string[] | undefined;
|
|
14194
14376
|
transform?: string | undefined;
|
|
14195
14377
|
delay?: number | undefined;
|
|
@@ -14239,8 +14421,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14239
14421
|
provider?: ApiProvider | undefined;
|
|
14240
14422
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
14241
14423
|
id?: string | undefined;
|
|
14242
|
-
display?: string | undefined;
|
|
14243
14424
|
config?: any;
|
|
14425
|
+
display?: string | undefined;
|
|
14244
14426
|
};
|
|
14245
14427
|
fetchWithCache?: any;
|
|
14246
14428
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -14253,8 +14435,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14253
14435
|
label?: string | undefined;
|
|
14254
14436
|
}) | Record<string, {
|
|
14255
14437
|
id?: string | undefined;
|
|
14256
|
-
label?: string | undefined;
|
|
14257
14438
|
config?: any;
|
|
14439
|
+
label?: string | undefined;
|
|
14258
14440
|
prompts?: string[] | undefined;
|
|
14259
14441
|
transform?: string | undefined;
|
|
14260
14442
|
delay?: number | undefined;
|
|
@@ -14362,8 +14544,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14362
14544
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
14363
14545
|
provider?: string | {
|
|
14364
14546
|
id?: string | undefined;
|
|
14365
|
-
label?: string | undefined;
|
|
14366
14547
|
config?: any;
|
|
14548
|
+
label?: string | undefined;
|
|
14367
14549
|
prompts?: string[] | undefined;
|
|
14368
14550
|
transform?: string | undefined;
|
|
14369
14551
|
delay?: number | undefined;
|
|
@@ -14448,6 +14630,7 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14448
14630
|
})[] | undefined;
|
|
14449
14631
|
threshold?: number | undefined;
|
|
14450
14632
|
})[] | undefined;
|
|
14633
|
+
redteam?: RedteamFileConfig | undefined;
|
|
14451
14634
|
tags?: Record<string, string> | undefined;
|
|
14452
14635
|
scenarios?: (string | {
|
|
14453
14636
|
config: {
|
|
@@ -14479,8 +14662,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14479
14662
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
14480
14663
|
provider?: string | {
|
|
14481
14664
|
id?: string | undefined;
|
|
14482
|
-
label?: string | undefined;
|
|
14483
14665
|
config?: any;
|
|
14666
|
+
label?: string | undefined;
|
|
14484
14667
|
prompts?: string[] | undefined;
|
|
14485
14668
|
transform?: string | undefined;
|
|
14486
14669
|
delay?: number | undefined;
|
|
@@ -14594,8 +14777,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14594
14777
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
14595
14778
|
provider?: string | {
|
|
14596
14779
|
id?: string | undefined;
|
|
14597
|
-
label?: string | undefined;
|
|
14598
14780
|
config?: any;
|
|
14781
|
+
label?: string | undefined;
|
|
14599
14782
|
prompts?: string[] | undefined;
|
|
14600
14783
|
transform?: string | undefined;
|
|
14601
14784
|
delay?: number | undefined;
|
|
@@ -14711,8 +14894,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14711
14894
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
14712
14895
|
provider?: string | {
|
|
14713
14896
|
id?: string | undefined;
|
|
14714
|
-
label?: string | undefined;
|
|
14715
14897
|
config?: any;
|
|
14898
|
+
label?: string | undefined;
|
|
14716
14899
|
prompts?: string[] | undefined;
|
|
14717
14900
|
transform?: string | undefined;
|
|
14718
14901
|
delay?: number | undefined;
|
|
@@ -14802,7 +14985,6 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14802
14985
|
name: string;
|
|
14803
14986
|
}[] | undefined;
|
|
14804
14987
|
extensions?: string[] | undefined;
|
|
14805
|
-
redteam?: RedteamFileConfig | undefined;
|
|
14806
14988
|
outputPath?: string | string[] | undefined;
|
|
14807
14989
|
sharing?: boolean | {
|
|
14808
14990
|
apiBaseUrl?: string | undefined;
|
|
@@ -14818,8 +15000,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14818
15000
|
provider?: ApiProvider | undefined;
|
|
14819
15001
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
14820
15002
|
id?: string | undefined;
|
|
14821
|
-
display?: string | undefined;
|
|
14822
15003
|
config?: any;
|
|
15004
|
+
display?: string | undefined;
|
|
14823
15005
|
} | {
|
|
14824
15006
|
id: string;
|
|
14825
15007
|
raw?: string | undefined;
|
|
@@ -14835,8 +15017,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14835
15017
|
provider?: ApiProvider | undefined;
|
|
14836
15018
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
14837
15019
|
id?: string | undefined;
|
|
14838
|
-
display?: string | undefined;
|
|
14839
15020
|
config?: any;
|
|
15021
|
+
display?: string | undefined;
|
|
14840
15022
|
};
|
|
14841
15023
|
fetchWithCache?: any;
|
|
14842
15024
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -14849,8 +15031,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14849
15031
|
label?: string | undefined;
|
|
14850
15032
|
}) | (string | {
|
|
14851
15033
|
id?: string | undefined;
|
|
14852
|
-
label?: string | undefined;
|
|
14853
15034
|
config?: any;
|
|
15035
|
+
label?: string | undefined;
|
|
14854
15036
|
prompts?: string[] | undefined;
|
|
14855
15037
|
transform?: string | undefined;
|
|
14856
15038
|
delay?: number | undefined;
|
|
@@ -14900,8 +15082,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14900
15082
|
provider?: ApiProvider | undefined;
|
|
14901
15083
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
14902
15084
|
id?: string | undefined;
|
|
14903
|
-
display?: string | undefined;
|
|
14904
15085
|
config?: any;
|
|
15086
|
+
display?: string | undefined;
|
|
14905
15087
|
};
|
|
14906
15088
|
fetchWithCache?: any;
|
|
14907
15089
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -14914,8 +15096,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
14914
15096
|
label?: string | undefined;
|
|
14915
15097
|
}) | Record<string, {
|
|
14916
15098
|
id?: string | undefined;
|
|
14917
|
-
label?: string | undefined;
|
|
14918
15099
|
config?: any;
|
|
15100
|
+
label?: string | undefined;
|
|
14919
15101
|
prompts?: string[] | undefined;
|
|
14920
15102
|
transform?: string | undefined;
|
|
14921
15103
|
delay?: number | undefined;
|
|
@@ -15023,8 +15205,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
15023
15205
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
15024
15206
|
provider?: string | {
|
|
15025
15207
|
id?: string | undefined;
|
|
15026
|
-
label?: string | undefined;
|
|
15027
15208
|
config?: any;
|
|
15209
|
+
label?: string | undefined;
|
|
15028
15210
|
prompts?: string[] | undefined;
|
|
15029
15211
|
transform?: string | undefined;
|
|
15030
15212
|
delay?: number | undefined;
|
|
@@ -15109,6 +15291,7 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
15109
15291
|
})[] | undefined;
|
|
15110
15292
|
threshold?: number | undefined;
|
|
15111
15293
|
})[] | undefined;
|
|
15294
|
+
redteam?: RedteamFileConfig | undefined;
|
|
15112
15295
|
tags?: Record<string, string> | undefined;
|
|
15113
15296
|
scenarios?: (string | {
|
|
15114
15297
|
config: {
|
|
@@ -15140,8 +15323,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
15140
15323
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
15141
15324
|
provider?: string | {
|
|
15142
15325
|
id?: string | undefined;
|
|
15143
|
-
label?: string | undefined;
|
|
15144
15326
|
config?: any;
|
|
15327
|
+
label?: string | undefined;
|
|
15145
15328
|
prompts?: string[] | undefined;
|
|
15146
15329
|
transform?: string | undefined;
|
|
15147
15330
|
delay?: number | undefined;
|
|
@@ -15255,8 +15438,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
15255
15438
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
15256
15439
|
provider?: string | {
|
|
15257
15440
|
id?: string | undefined;
|
|
15258
|
-
label?: string | undefined;
|
|
15259
15441
|
config?: any;
|
|
15442
|
+
label?: string | undefined;
|
|
15260
15443
|
prompts?: string[] | undefined;
|
|
15261
15444
|
transform?: string | undefined;
|
|
15262
15445
|
delay?: number | undefined;
|
|
@@ -15372,8 +15555,8 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
15372
15555
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
15373
15556
|
provider?: string | {
|
|
15374
15557
|
id?: string | undefined;
|
|
15375
|
-
label?: string | undefined;
|
|
15376
15558
|
config?: any;
|
|
15559
|
+
label?: string | undefined;
|
|
15377
15560
|
prompts?: string[] | undefined;
|
|
15378
15561
|
transform?: string | undefined;
|
|
15379
15562
|
delay?: number | undefined;
|
|
@@ -15463,7 +15646,6 @@ export declare const TestSuiteConfigSchema: z.ZodObject<{
|
|
|
15463
15646
|
name: string;
|
|
15464
15647
|
}[] | undefined;
|
|
15465
15648
|
extensions?: string[] | undefined;
|
|
15466
|
-
redteam?: RedteamFileConfig | undefined;
|
|
15467
15649
|
outputPath?: string | string[] | undefined;
|
|
15468
15650
|
sharing?: boolean | {
|
|
15469
15651
|
apiBaseUrl?: string | undefined;
|
|
@@ -15505,8 +15687,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15505
15687
|
provider?: ApiProvider | undefined;
|
|
15506
15688
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
15507
15689
|
id?: string | undefined;
|
|
15508
|
-
display?: string | undefined;
|
|
15509
15690
|
config?: any;
|
|
15691
|
+
display?: string | undefined;
|
|
15510
15692
|
}, {
|
|
15511
15693
|
raw: string;
|
|
15512
15694
|
label: string;
|
|
@@ -15515,8 +15697,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15515
15697
|
provider?: ApiProvider | undefined;
|
|
15516
15698
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
15517
15699
|
id?: string | undefined;
|
|
15518
|
-
display?: string | undefined;
|
|
15519
15700
|
config?: any;
|
|
15701
|
+
display?: string | undefined;
|
|
15520
15702
|
}>;
|
|
15521
15703
|
vars: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>;
|
|
15522
15704
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -15529,8 +15711,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15529
15711
|
provider?: ApiProvider | undefined;
|
|
15530
15712
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
15531
15713
|
id?: string | undefined;
|
|
15532
|
-
display?: string | undefined;
|
|
15533
15714
|
config?: any;
|
|
15715
|
+
display?: string | undefined;
|
|
15534
15716
|
};
|
|
15535
15717
|
fetchWithCache?: any;
|
|
15536
15718
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -15547,8 +15729,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15547
15729
|
provider?: ApiProvider | undefined;
|
|
15548
15730
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
15549
15731
|
id?: string | undefined;
|
|
15550
|
-
display?: string | undefined;
|
|
15551
15732
|
config?: any;
|
|
15733
|
+
display?: string | undefined;
|
|
15552
15734
|
};
|
|
15553
15735
|
fetchWithCache?: any;
|
|
15554
15736
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -15682,8 +15864,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15682
15864
|
}>>;
|
|
15683
15865
|
}, "strict", z.ZodTypeAny, {
|
|
15684
15866
|
id?: string | undefined;
|
|
15685
|
-
label?: string | undefined;
|
|
15686
15867
|
config?: any;
|
|
15868
|
+
label?: string | undefined;
|
|
15687
15869
|
prompts?: string[] | undefined;
|
|
15688
15870
|
transform?: string | undefined;
|
|
15689
15871
|
delay?: number | undefined;
|
|
@@ -15725,8 +15907,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15725
15907
|
} | undefined;
|
|
15726
15908
|
}, {
|
|
15727
15909
|
id?: string | undefined;
|
|
15728
|
-
label?: string | undefined;
|
|
15729
15910
|
config?: any;
|
|
15911
|
+
label?: string | undefined;
|
|
15730
15912
|
prompts?: string[] | undefined;
|
|
15731
15913
|
transform?: string | undefined;
|
|
15732
15914
|
delay?: number | undefined;
|
|
@@ -15881,8 +16063,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15881
16063
|
}>>;
|
|
15882
16064
|
}, "strict", z.ZodTypeAny, {
|
|
15883
16065
|
id?: string | undefined;
|
|
15884
|
-
label?: string | undefined;
|
|
15885
16066
|
config?: any;
|
|
16067
|
+
label?: string | undefined;
|
|
15886
16068
|
prompts?: string[] | undefined;
|
|
15887
16069
|
transform?: string | undefined;
|
|
15888
16070
|
delay?: number | undefined;
|
|
@@ -15924,8 +16106,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15924
16106
|
} | undefined;
|
|
15925
16107
|
}, {
|
|
15926
16108
|
id?: string | undefined;
|
|
15927
|
-
label?: string | undefined;
|
|
15928
16109
|
config?: any;
|
|
16110
|
+
label?: string | undefined;
|
|
15929
16111
|
prompts?: string[] | undefined;
|
|
15930
16112
|
transform?: string | undefined;
|
|
15931
16113
|
delay?: number | undefined;
|
|
@@ -15995,8 +16177,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15995
16177
|
provider?: ApiProvider | undefined;
|
|
15996
16178
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
15997
16179
|
id?: string | undefined;
|
|
15998
|
-
display?: string | undefined;
|
|
15999
16180
|
config?: any;
|
|
16181
|
+
display?: string | undefined;
|
|
16000
16182
|
}, {
|
|
16001
16183
|
raw: string;
|
|
16002
16184
|
label: string;
|
|
@@ -16005,8 +16187,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16005
16187
|
provider?: ApiProvider | undefined;
|
|
16006
16188
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
16007
16189
|
id?: string | undefined;
|
|
16008
|
-
display?: string | undefined;
|
|
16009
16190
|
config?: any;
|
|
16191
|
+
display?: string | undefined;
|
|
16010
16192
|
}>;
|
|
16011
16193
|
vars: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>;
|
|
16012
16194
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -16019,8 +16201,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16019
16201
|
provider?: ApiProvider | undefined;
|
|
16020
16202
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
16021
16203
|
id?: string | undefined;
|
|
16022
|
-
display?: string | undefined;
|
|
16023
16204
|
config?: any;
|
|
16205
|
+
display?: string | undefined;
|
|
16024
16206
|
};
|
|
16025
16207
|
fetchWithCache?: any;
|
|
16026
16208
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -16037,8 +16219,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16037
16219
|
provider?: ApiProvider | undefined;
|
|
16038
16220
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
16039
16221
|
id?: string | undefined;
|
|
16040
|
-
display?: string | undefined;
|
|
16041
16222
|
config?: any;
|
|
16223
|
+
display?: string | undefined;
|
|
16042
16224
|
};
|
|
16043
16225
|
fetchWithCache?: any;
|
|
16044
16226
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -16094,8 +16276,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16094
16276
|
provider?: ApiProvider | undefined;
|
|
16095
16277
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
16096
16278
|
id?: string | undefined;
|
|
16097
|
-
display?: string | undefined;
|
|
16098
16279
|
config?: any;
|
|
16280
|
+
display?: string | undefined;
|
|
16099
16281
|
}, {
|
|
16100
16282
|
raw: string;
|
|
16101
16283
|
label: string;
|
|
@@ -16104,8 +16286,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16104
16286
|
provider?: ApiProvider | undefined;
|
|
16105
16287
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
16106
16288
|
id?: string | undefined;
|
|
16107
|
-
display?: string | undefined;
|
|
16108
16289
|
config?: any;
|
|
16290
|
+
display?: string | undefined;
|
|
16109
16291
|
}>]>, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
16110
16292
|
tests: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
16111
16293
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -16225,8 +16407,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16225
16407
|
}>>;
|
|
16226
16408
|
}, "strict", z.ZodTypeAny, {
|
|
16227
16409
|
id?: string | undefined;
|
|
16228
|
-
label?: string | undefined;
|
|
16229
16410
|
config?: any;
|
|
16411
|
+
label?: string | undefined;
|
|
16230
16412
|
prompts?: string[] | undefined;
|
|
16231
16413
|
transform?: string | undefined;
|
|
16232
16414
|
delay?: number | undefined;
|
|
@@ -16268,8 +16450,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16268
16450
|
} | undefined;
|
|
16269
16451
|
}, {
|
|
16270
16452
|
id?: string | undefined;
|
|
16271
|
-
label?: string | undefined;
|
|
16272
16453
|
config?: any;
|
|
16454
|
+
label?: string | undefined;
|
|
16273
16455
|
prompts?: string[] | undefined;
|
|
16274
16456
|
transform?: string | undefined;
|
|
16275
16457
|
delay?: number | undefined;
|
|
@@ -16581,8 +16763,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16581
16763
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
16582
16764
|
provider?: string | {
|
|
16583
16765
|
id?: string | undefined;
|
|
16584
|
-
label?: string | undefined;
|
|
16585
16766
|
config?: any;
|
|
16767
|
+
label?: string | undefined;
|
|
16586
16768
|
prompts?: string[] | undefined;
|
|
16587
16769
|
transform?: string | undefined;
|
|
16588
16770
|
delay?: number | undefined;
|
|
@@ -16695,8 +16877,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16695
16877
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
16696
16878
|
provider?: string | {
|
|
16697
16879
|
id?: string | undefined;
|
|
16698
|
-
label?: string | undefined;
|
|
16699
16880
|
config?: any;
|
|
16881
|
+
label?: string | undefined;
|
|
16700
16882
|
prompts?: string[] | undefined;
|
|
16701
16883
|
transform?: string | undefined;
|
|
16702
16884
|
delay?: number | undefined;
|
|
@@ -16901,8 +17083,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16901
17083
|
}>>;
|
|
16902
17084
|
}, "strict", z.ZodTypeAny, {
|
|
16903
17085
|
id?: string | undefined;
|
|
16904
|
-
label?: string | undefined;
|
|
16905
17086
|
config?: any;
|
|
17087
|
+
label?: string | undefined;
|
|
16906
17088
|
prompts?: string[] | undefined;
|
|
16907
17089
|
transform?: string | undefined;
|
|
16908
17090
|
delay?: number | undefined;
|
|
@@ -16944,8 +17126,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16944
17126
|
} | undefined;
|
|
16945
17127
|
}, {
|
|
16946
17128
|
id?: string | undefined;
|
|
16947
|
-
label?: string | undefined;
|
|
16948
17129
|
config?: any;
|
|
17130
|
+
label?: string | undefined;
|
|
16949
17131
|
prompts?: string[] | undefined;
|
|
16950
17132
|
transform?: string | undefined;
|
|
16951
17133
|
delay?: number | undefined;
|
|
@@ -17257,8 +17439,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
17257
17439
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
17258
17440
|
provider?: string | {
|
|
17259
17441
|
id?: string | undefined;
|
|
17260
|
-
label?: string | undefined;
|
|
17261
17442
|
config?: any;
|
|
17443
|
+
label?: string | undefined;
|
|
17262
17444
|
prompts?: string[] | undefined;
|
|
17263
17445
|
transform?: string | undefined;
|
|
17264
17446
|
delay?: number | undefined;
|
|
@@ -17371,8 +17553,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
17371
17553
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
17372
17554
|
provider?: string | {
|
|
17373
17555
|
id?: string | undefined;
|
|
17374
|
-
label?: string | undefined;
|
|
17375
17556
|
config?: any;
|
|
17557
|
+
label?: string | undefined;
|
|
17376
17558
|
prompts?: string[] | undefined;
|
|
17377
17559
|
transform?: string | undefined;
|
|
17378
17560
|
delay?: number | undefined;
|
|
@@ -17575,8 +17757,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
17575
17757
|
}>>;
|
|
17576
17758
|
}, "strict", z.ZodTypeAny, {
|
|
17577
17759
|
id?: string | undefined;
|
|
17578
|
-
label?: string | undefined;
|
|
17579
17760
|
config?: any;
|
|
17761
|
+
label?: string | undefined;
|
|
17580
17762
|
prompts?: string[] | undefined;
|
|
17581
17763
|
transform?: string | undefined;
|
|
17582
17764
|
delay?: number | undefined;
|
|
@@ -17618,8 +17800,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
17618
17800
|
} | undefined;
|
|
17619
17801
|
}, {
|
|
17620
17802
|
id?: string | undefined;
|
|
17621
|
-
label?: string | undefined;
|
|
17622
17803
|
config?: any;
|
|
17804
|
+
label?: string | undefined;
|
|
17623
17805
|
prompts?: string[] | undefined;
|
|
17624
17806
|
transform?: string | undefined;
|
|
17625
17807
|
delay?: number | undefined;
|
|
@@ -17931,8 +18113,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
17931
18113
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
17932
18114
|
provider?: string | {
|
|
17933
18115
|
id?: string | undefined;
|
|
17934
|
-
label?: string | undefined;
|
|
17935
18116
|
config?: any;
|
|
18117
|
+
label?: string | undefined;
|
|
17936
18118
|
prompts?: string[] | undefined;
|
|
17937
18119
|
transform?: string | undefined;
|
|
17938
18120
|
delay?: number | undefined;
|
|
@@ -18045,8 +18227,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18045
18227
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
18046
18228
|
provider?: string | {
|
|
18047
18229
|
id?: string | undefined;
|
|
18048
|
-
label?: string | undefined;
|
|
18049
18230
|
config?: any;
|
|
18231
|
+
label?: string | undefined;
|
|
18050
18232
|
prompts?: string[] | undefined;
|
|
18051
18233
|
transform?: string | undefined;
|
|
18052
18234
|
delay?: number | undefined;
|
|
@@ -18161,8 +18343,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18161
18343
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
18162
18344
|
provider?: string | {
|
|
18163
18345
|
id?: string | undefined;
|
|
18164
|
-
label?: string | undefined;
|
|
18165
18346
|
config?: any;
|
|
18347
|
+
label?: string | undefined;
|
|
18166
18348
|
prompts?: string[] | undefined;
|
|
18167
18349
|
transform?: string | undefined;
|
|
18168
18350
|
delay?: number | undefined;
|
|
@@ -18276,8 +18458,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18276
18458
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
18277
18459
|
provider?: string | {
|
|
18278
18460
|
id?: string | undefined;
|
|
18279
|
-
label?: string | undefined;
|
|
18280
18461
|
config?: any;
|
|
18462
|
+
label?: string | undefined;
|
|
18281
18463
|
prompts?: string[] | undefined;
|
|
18282
18464
|
transform?: string | undefined;
|
|
18283
18465
|
delay?: number | undefined;
|
|
@@ -18393,8 +18575,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18393
18575
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
18394
18576
|
provider?: string | {
|
|
18395
18577
|
id?: string | undefined;
|
|
18396
|
-
label?: string | undefined;
|
|
18397
18578
|
config?: any;
|
|
18579
|
+
label?: string | undefined;
|
|
18398
18580
|
prompts?: string[] | undefined;
|
|
18399
18581
|
transform?: string | undefined;
|
|
18400
18582
|
delay?: number | undefined;
|
|
@@ -18508,8 +18690,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18508
18690
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
18509
18691
|
provider?: string | {
|
|
18510
18692
|
id?: string | undefined;
|
|
18511
|
-
label?: string | undefined;
|
|
18512
18693
|
config?: any;
|
|
18694
|
+
label?: string | undefined;
|
|
18513
18695
|
prompts?: string[] | undefined;
|
|
18514
18696
|
transform?: string | undefined;
|
|
18515
18697
|
delay?: number | undefined;
|
|
@@ -18714,8 +18896,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18714
18896
|
}>>;
|
|
18715
18897
|
}, "strict", z.ZodTypeAny, {
|
|
18716
18898
|
id?: string | undefined;
|
|
18717
|
-
label?: string | undefined;
|
|
18718
18899
|
config?: any;
|
|
18900
|
+
label?: string | undefined;
|
|
18719
18901
|
prompts?: string[] | undefined;
|
|
18720
18902
|
transform?: string | undefined;
|
|
18721
18903
|
delay?: number | undefined;
|
|
@@ -18757,8 +18939,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18757
18939
|
} | undefined;
|
|
18758
18940
|
}, {
|
|
18759
18941
|
id?: string | undefined;
|
|
18760
|
-
label?: string | undefined;
|
|
18761
18942
|
config?: any;
|
|
18943
|
+
label?: string | undefined;
|
|
18762
18944
|
prompts?: string[] | undefined;
|
|
18763
18945
|
transform?: string | undefined;
|
|
18764
18946
|
delay?: number | undefined;
|
|
@@ -19070,8 +19252,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19070
19252
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
19071
19253
|
provider?: string | {
|
|
19072
19254
|
id?: string | undefined;
|
|
19073
|
-
label?: string | undefined;
|
|
19074
19255
|
config?: any;
|
|
19256
|
+
label?: string | undefined;
|
|
19075
19257
|
prompts?: string[] | undefined;
|
|
19076
19258
|
transform?: string | undefined;
|
|
19077
19259
|
delay?: number | undefined;
|
|
@@ -19183,8 +19365,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19183
19365
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
19184
19366
|
provider?: string | {
|
|
19185
19367
|
id?: string | undefined;
|
|
19186
|
-
label?: string | undefined;
|
|
19187
19368
|
config?: any;
|
|
19369
|
+
label?: string | undefined;
|
|
19188
19370
|
prompts?: string[] | undefined;
|
|
19189
19371
|
transform?: string | undefined;
|
|
19190
19372
|
delay?: number | undefined;
|
|
@@ -19417,9 +19599,9 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19417
19599
|
repeat: z.ZodOptional<z.ZodNumber>;
|
|
19418
19600
|
showProgressBar: z.ZodOptional<z.ZodBoolean>;
|
|
19419
19601
|
}, "strip", z.ZodTypeAny, {
|
|
19420
|
-
delay?: number | undefined;
|
|
19421
19602
|
cache?: boolean | undefined;
|
|
19422
19603
|
maxConcurrency?: number | undefined;
|
|
19604
|
+
delay?: number | undefined;
|
|
19423
19605
|
repeat?: number | undefined;
|
|
19424
19606
|
generateSuggestions?: boolean | undefined;
|
|
19425
19607
|
eventSource?: string | undefined;
|
|
@@ -19427,9 +19609,9 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19427
19609
|
progressCallback?: ((args_0: number, args_1: number, args_2: number, args_3: RunEvalOptions) => void) | undefined;
|
|
19428
19610
|
showProgressBar?: boolean | undefined;
|
|
19429
19611
|
}, {
|
|
19430
|
-
delay?: number | undefined;
|
|
19431
19612
|
cache?: boolean | undefined;
|
|
19432
19613
|
maxConcurrency?: number | undefined;
|
|
19614
|
+
delay?: number | undefined;
|
|
19433
19615
|
repeat?: number | undefined;
|
|
19434
19616
|
generateSuggestions?: boolean | undefined;
|
|
19435
19617
|
eventSource?: string | undefined;
|
|
@@ -19467,17 +19649,16 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19467
19649
|
generateSuggestions: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
19468
19650
|
promptPrefix: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
19469
19651
|
promptSuffix: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
19470
|
-
|
|
19652
|
+
envPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
19471
19653
|
}, "strip", z.ZodTypeAny, {
|
|
19472
|
-
vars?: string | undefined;
|
|
19473
|
-
config?: string[] | undefined;
|
|
19474
|
-
prompts?: string[] | undefined;
|
|
19475
|
-
delay?: string | undefined;
|
|
19476
|
-
output?: string[] | undefined;
|
|
19477
19654
|
cache?: boolean | undefined;
|
|
19478
|
-
|
|
19655
|
+
config?: string[] | undefined;
|
|
19479
19656
|
maxConcurrency?: string | undefined;
|
|
19657
|
+
output?: string[] | undefined;
|
|
19480
19658
|
write?: boolean | undefined;
|
|
19659
|
+
vars?: string | undefined;
|
|
19660
|
+
prompts?: string[] | undefined;
|
|
19661
|
+
delay?: string | undefined;
|
|
19481
19662
|
description?: string | undefined;
|
|
19482
19663
|
providers?: string[] | undefined;
|
|
19483
19664
|
repeat?: string | undefined;
|
|
@@ -19499,16 +19680,16 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19499
19680
|
generateSuggestions?: boolean | undefined;
|
|
19500
19681
|
promptPrefix?: string | undefined;
|
|
19501
19682
|
promptSuffix?: string | undefined;
|
|
19683
|
+
envPath?: string | undefined;
|
|
19502
19684
|
}, {
|
|
19503
|
-
vars?: string | undefined;
|
|
19504
|
-
config?: string[] | undefined;
|
|
19505
|
-
prompts?: string[] | undefined;
|
|
19506
|
-
delay?: string | undefined;
|
|
19507
|
-
output?: string[] | undefined;
|
|
19508
19685
|
cache?: boolean | undefined;
|
|
19509
|
-
|
|
19686
|
+
config?: string[] | undefined;
|
|
19510
19687
|
maxConcurrency?: string | undefined;
|
|
19688
|
+
output?: string[] | undefined;
|
|
19511
19689
|
write?: boolean | undefined;
|
|
19690
|
+
vars?: string | undefined;
|
|
19691
|
+
prompts?: string[] | undefined;
|
|
19692
|
+
delay?: string | undefined;
|
|
19512
19693
|
description?: string | undefined;
|
|
19513
19694
|
providers?: string[] | undefined;
|
|
19514
19695
|
repeat?: string | undefined;
|
|
@@ -19530,6 +19711,7 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19530
19711
|
generateSuggestions?: boolean | undefined;
|
|
19531
19712
|
promptPrefix?: string | undefined;
|
|
19532
19713
|
promptSuffix?: string | undefined;
|
|
19714
|
+
envPath?: string | undefined;
|
|
19533
19715
|
}>>;
|
|
19534
19716
|
}>, "strip", z.ZodTypeAny, {
|
|
19535
19717
|
prompts: string | Record<string, string> | (string | {
|
|
@@ -19540,8 +19722,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19540
19722
|
provider?: ApiProvider | undefined;
|
|
19541
19723
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
19542
19724
|
id?: string | undefined;
|
|
19543
|
-
display?: string | undefined;
|
|
19544
19725
|
config?: any;
|
|
19726
|
+
display?: string | undefined;
|
|
19545
19727
|
} | {
|
|
19546
19728
|
id: string;
|
|
19547
19729
|
raw?: string | undefined;
|
|
@@ -19557,8 +19739,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19557
19739
|
provider?: ApiProvider | undefined;
|
|
19558
19740
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
19559
19741
|
id?: string | undefined;
|
|
19560
|
-
display?: string | undefined;
|
|
19561
19742
|
config?: any;
|
|
19743
|
+
display?: string | undefined;
|
|
19562
19744
|
};
|
|
19563
19745
|
fetchWithCache?: any;
|
|
19564
19746
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -19571,8 +19753,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19571
19753
|
label?: string | undefined;
|
|
19572
19754
|
}) | (string | {
|
|
19573
19755
|
id?: string | undefined;
|
|
19574
|
-
label?: string | undefined;
|
|
19575
19756
|
config?: any;
|
|
19757
|
+
label?: string | undefined;
|
|
19576
19758
|
prompts?: string[] | undefined;
|
|
19577
19759
|
transform?: string | undefined;
|
|
19578
19760
|
delay?: number | undefined;
|
|
@@ -19622,8 +19804,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19622
19804
|
provider?: ApiProvider | undefined;
|
|
19623
19805
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
19624
19806
|
id?: string | undefined;
|
|
19625
|
-
display?: string | undefined;
|
|
19626
19807
|
config?: any;
|
|
19808
|
+
display?: string | undefined;
|
|
19627
19809
|
};
|
|
19628
19810
|
fetchWithCache?: any;
|
|
19629
19811
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -19636,8 +19818,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19636
19818
|
label?: string | undefined;
|
|
19637
19819
|
}) | Record<string, {
|
|
19638
19820
|
id?: string | undefined;
|
|
19639
|
-
label?: string | undefined;
|
|
19640
19821
|
config?: any;
|
|
19822
|
+
label?: string | undefined;
|
|
19641
19823
|
prompts?: string[] | undefined;
|
|
19642
19824
|
transform?: string | undefined;
|
|
19643
19825
|
delay?: number | undefined;
|
|
@@ -19745,8 +19927,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19745
19927
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
19746
19928
|
provider?: string | {
|
|
19747
19929
|
id?: string | undefined;
|
|
19748
|
-
label?: string | undefined;
|
|
19749
19930
|
config?: any;
|
|
19931
|
+
label?: string | undefined;
|
|
19750
19932
|
prompts?: string[] | undefined;
|
|
19751
19933
|
transform?: string | undefined;
|
|
19752
19934
|
delay?: number | undefined;
|
|
@@ -19831,6 +20013,7 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19831
20013
|
})[] | undefined;
|
|
19832
20014
|
threshold?: number | undefined;
|
|
19833
20015
|
})[] | undefined;
|
|
20016
|
+
redteam?: RedteamFileConfig | undefined;
|
|
19834
20017
|
tags?: Record<string, string> | undefined;
|
|
19835
20018
|
scenarios?: (string | {
|
|
19836
20019
|
config: {
|
|
@@ -19862,8 +20045,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19862
20045
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
19863
20046
|
provider?: string | {
|
|
19864
20047
|
id?: string | undefined;
|
|
19865
|
-
label?: string | undefined;
|
|
19866
20048
|
config?: any;
|
|
20049
|
+
label?: string | undefined;
|
|
19867
20050
|
prompts?: string[] | undefined;
|
|
19868
20051
|
transform?: string | undefined;
|
|
19869
20052
|
delay?: number | undefined;
|
|
@@ -19977,8 +20160,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
19977
20160
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
19978
20161
|
provider?: string | {
|
|
19979
20162
|
id?: string | undefined;
|
|
19980
|
-
label?: string | undefined;
|
|
19981
20163
|
config?: any;
|
|
20164
|
+
label?: string | undefined;
|
|
19982
20165
|
prompts?: string[] | undefined;
|
|
19983
20166
|
transform?: string | undefined;
|
|
19984
20167
|
delay?: number | undefined;
|
|
@@ -20094,8 +20277,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20094
20277
|
vars?: Record<string, string | any[] | string[] | {}> | undefined;
|
|
20095
20278
|
provider?: string | {
|
|
20096
20279
|
id?: string | undefined;
|
|
20097
|
-
label?: string | undefined;
|
|
20098
20280
|
config?: any;
|
|
20281
|
+
label?: string | undefined;
|
|
20099
20282
|
prompts?: string[] | undefined;
|
|
20100
20283
|
transform?: string | undefined;
|
|
20101
20284
|
delay?: number | undefined;
|
|
@@ -20185,7 +20368,6 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20185
20368
|
name: string;
|
|
20186
20369
|
}[] | undefined;
|
|
20187
20370
|
extensions?: string[] | undefined;
|
|
20188
|
-
redteam?: RedteamFileConfig | undefined;
|
|
20189
20371
|
outputPath?: string | string[] | undefined;
|
|
20190
20372
|
sharing?: boolean | {
|
|
20191
20373
|
apiBaseUrl?: string | undefined;
|
|
@@ -20193,9 +20375,9 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20193
20375
|
} | undefined;
|
|
20194
20376
|
writeLatestResults?: boolean | undefined;
|
|
20195
20377
|
evaluateOptions?: {
|
|
20196
|
-
delay?: number | undefined;
|
|
20197
20378
|
cache?: boolean | undefined;
|
|
20198
20379
|
maxConcurrency?: number | undefined;
|
|
20380
|
+
delay?: number | undefined;
|
|
20199
20381
|
repeat?: number | undefined;
|
|
20200
20382
|
generateSuggestions?: boolean | undefined;
|
|
20201
20383
|
eventSource?: string | undefined;
|
|
@@ -20204,15 +20386,14 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20204
20386
|
showProgressBar?: boolean | undefined;
|
|
20205
20387
|
} | undefined;
|
|
20206
20388
|
commandLineOptions?: {
|
|
20207
|
-
vars?: string | undefined;
|
|
20208
|
-
config?: string[] | undefined;
|
|
20209
|
-
prompts?: string[] | undefined;
|
|
20210
|
-
delay?: string | undefined;
|
|
20211
|
-
output?: string[] | undefined;
|
|
20212
20389
|
cache?: boolean | undefined;
|
|
20213
|
-
|
|
20390
|
+
config?: string[] | undefined;
|
|
20214
20391
|
maxConcurrency?: string | undefined;
|
|
20392
|
+
output?: string[] | undefined;
|
|
20215
20393
|
write?: boolean | undefined;
|
|
20394
|
+
vars?: string | undefined;
|
|
20395
|
+
prompts?: string[] | undefined;
|
|
20396
|
+
delay?: string | undefined;
|
|
20216
20397
|
description?: string | undefined;
|
|
20217
20398
|
providers?: string[] | undefined;
|
|
20218
20399
|
repeat?: string | undefined;
|
|
@@ -20234,6 +20415,7 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20234
20415
|
generateSuggestions?: boolean | undefined;
|
|
20235
20416
|
promptPrefix?: string | undefined;
|
|
20236
20417
|
promptSuffix?: string | undefined;
|
|
20418
|
+
envPath?: string | undefined;
|
|
20237
20419
|
} | undefined;
|
|
20238
20420
|
}, {
|
|
20239
20421
|
prompts: string | Record<string, string> | (string | {
|
|
@@ -20244,8 +20426,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20244
20426
|
provider?: ApiProvider | undefined;
|
|
20245
20427
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
20246
20428
|
id?: string | undefined;
|
|
20247
|
-
display?: string | undefined;
|
|
20248
20429
|
config?: any;
|
|
20430
|
+
display?: string | undefined;
|
|
20249
20431
|
} | {
|
|
20250
20432
|
id: string;
|
|
20251
20433
|
raw?: string | undefined;
|
|
@@ -20261,8 +20443,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20261
20443
|
provider?: ApiProvider | undefined;
|
|
20262
20444
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
20263
20445
|
id?: string | undefined;
|
|
20264
|
-
display?: string | undefined;
|
|
20265
20446
|
config?: any;
|
|
20447
|
+
display?: string | undefined;
|
|
20266
20448
|
};
|
|
20267
20449
|
fetchWithCache?: any;
|
|
20268
20450
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -20275,8 +20457,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20275
20457
|
label?: string | undefined;
|
|
20276
20458
|
}) | (string | {
|
|
20277
20459
|
id?: string | undefined;
|
|
20278
|
-
label?: string | undefined;
|
|
20279
20460
|
config?: any;
|
|
20461
|
+
label?: string | undefined;
|
|
20280
20462
|
prompts?: string[] | undefined;
|
|
20281
20463
|
transform?: string | undefined;
|
|
20282
20464
|
delay?: number | undefined;
|
|
@@ -20326,8 +20508,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20326
20508
|
provider?: ApiProvider | undefined;
|
|
20327
20509
|
}, ...args: unknown[]) => Promise<any>) | undefined;
|
|
20328
20510
|
id?: string | undefined;
|
|
20329
|
-
display?: string | undefined;
|
|
20330
20511
|
config?: any;
|
|
20512
|
+
display?: string | undefined;
|
|
20331
20513
|
};
|
|
20332
20514
|
fetchWithCache?: any;
|
|
20333
20515
|
filters?: Record<string, (args_0: any, ...args: any[]) => string> | undefined;
|
|
@@ -20340,8 +20522,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20340
20522
|
label?: string | undefined;
|
|
20341
20523
|
}) | Record<string, {
|
|
20342
20524
|
id?: string | undefined;
|
|
20343
|
-
label?: string | undefined;
|
|
20344
20525
|
config?: any;
|
|
20526
|
+
label?: string | undefined;
|
|
20345
20527
|
prompts?: string[] | undefined;
|
|
20346
20528
|
transform?: string | undefined;
|
|
20347
20529
|
delay?: number | undefined;
|
|
@@ -20449,8 +20631,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20449
20631
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
20450
20632
|
provider?: string | {
|
|
20451
20633
|
id?: string | undefined;
|
|
20452
|
-
label?: string | undefined;
|
|
20453
20634
|
config?: any;
|
|
20635
|
+
label?: string | undefined;
|
|
20454
20636
|
prompts?: string[] | undefined;
|
|
20455
20637
|
transform?: string | undefined;
|
|
20456
20638
|
delay?: number | undefined;
|
|
@@ -20535,6 +20717,7 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20535
20717
|
})[] | undefined;
|
|
20536
20718
|
threshold?: number | undefined;
|
|
20537
20719
|
})[] | undefined;
|
|
20720
|
+
redteam?: RedteamFileConfig | undefined;
|
|
20538
20721
|
tags?: Record<string, string> | undefined;
|
|
20539
20722
|
scenarios?: (string | {
|
|
20540
20723
|
config: {
|
|
@@ -20566,8 +20749,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20566
20749
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
20567
20750
|
provider?: string | {
|
|
20568
20751
|
id?: string | undefined;
|
|
20569
|
-
label?: string | undefined;
|
|
20570
20752
|
config?: any;
|
|
20753
|
+
label?: string | undefined;
|
|
20571
20754
|
prompts?: string[] | undefined;
|
|
20572
20755
|
transform?: string | undefined;
|
|
20573
20756
|
delay?: number | undefined;
|
|
@@ -20681,8 +20864,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20681
20864
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
20682
20865
|
provider?: string | {
|
|
20683
20866
|
id?: string | undefined;
|
|
20684
|
-
label?: string | undefined;
|
|
20685
20867
|
config?: any;
|
|
20868
|
+
label?: string | undefined;
|
|
20686
20869
|
prompts?: string[] | undefined;
|
|
20687
20870
|
transform?: string | undefined;
|
|
20688
20871
|
delay?: number | undefined;
|
|
@@ -20798,8 +20981,8 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20798
20981
|
vars?: Record<string, string | number | boolean | any[] | (string | number | boolean)[] | {}> | undefined;
|
|
20799
20982
|
provider?: string | {
|
|
20800
20983
|
id?: string | undefined;
|
|
20801
|
-
label?: string | undefined;
|
|
20802
20984
|
config?: any;
|
|
20985
|
+
label?: string | undefined;
|
|
20803
20986
|
prompts?: string[] | undefined;
|
|
20804
20987
|
transform?: string | undefined;
|
|
20805
20988
|
delay?: number | undefined;
|
|
@@ -20889,7 +21072,6 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20889
21072
|
name: string;
|
|
20890
21073
|
}[] | undefined;
|
|
20891
21074
|
extensions?: string[] | undefined;
|
|
20892
|
-
redteam?: RedteamFileConfig | undefined;
|
|
20893
21075
|
outputPath?: string | string[] | undefined;
|
|
20894
21076
|
sharing?: boolean | {
|
|
20895
21077
|
apiBaseUrl?: string | undefined;
|
|
@@ -20897,9 +21079,9 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20897
21079
|
} | undefined;
|
|
20898
21080
|
writeLatestResults?: boolean | undefined;
|
|
20899
21081
|
evaluateOptions?: {
|
|
20900
|
-
delay?: number | undefined;
|
|
20901
21082
|
cache?: boolean | undefined;
|
|
20902
21083
|
maxConcurrency?: number | undefined;
|
|
21084
|
+
delay?: number | undefined;
|
|
20903
21085
|
repeat?: number | undefined;
|
|
20904
21086
|
generateSuggestions?: boolean | undefined;
|
|
20905
21087
|
eventSource?: string | undefined;
|
|
@@ -20908,15 +21090,14 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20908
21090
|
showProgressBar?: boolean | undefined;
|
|
20909
21091
|
} | undefined;
|
|
20910
21092
|
commandLineOptions?: {
|
|
20911
|
-
vars?: string | undefined;
|
|
20912
|
-
config?: string[] | undefined;
|
|
20913
|
-
prompts?: string[] | undefined;
|
|
20914
|
-
delay?: string | undefined;
|
|
20915
|
-
output?: string[] | undefined;
|
|
20916
21093
|
cache?: boolean | undefined;
|
|
20917
|
-
|
|
21094
|
+
config?: string[] | undefined;
|
|
20918
21095
|
maxConcurrency?: string | undefined;
|
|
21096
|
+
output?: string[] | undefined;
|
|
20919
21097
|
write?: boolean | undefined;
|
|
21098
|
+
vars?: string | undefined;
|
|
21099
|
+
prompts?: string[] | undefined;
|
|
21100
|
+
delay?: string | undefined;
|
|
20920
21101
|
description?: string | undefined;
|
|
20921
21102
|
providers?: string[] | undefined;
|
|
20922
21103
|
repeat?: string | undefined;
|
|
@@ -20938,6 +21119,7 @@ export declare const UnifiedConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20938
21119
|
generateSuggestions?: boolean | undefined;
|
|
20939
21120
|
promptPrefix?: string | undefined;
|
|
20940
21121
|
promptSuffix?: string | undefined;
|
|
21122
|
+
envPath?: string | undefined;
|
|
20941
21123
|
} | undefined;
|
|
20942
21124
|
}>;
|
|
20943
21125
|
export type UnifiedConfig = z.infer<typeof UnifiedConfigSchema>;
|