Skip to content

loadSuites()

PromptScript API


loadSuites(options): Promise<LoadSuitesResult>

Defined in: eval/src/suite/load.ts:216

Load the suite files under .promptscript/evals/: <name>.eval.yaml, .eval.yml or .eval.json, with a lowercase name. Each file is parsed with an alias cap and no tags, checked for structure, and its dataset and label paths are resolved inside the project. Suite files never interpolate ${VAR}.

Parameters

options

LoadSuitesOptions

Project root and the suite names to load

Returns

Promise<LoadSuitesResult>

Valid suites sorted by name and the findings of the rest