Expand description
Running a suite: the Target under test, concurrency, trials, filters,
scoring, trial statistics, calibration and the gate.
Structs§
- Engine
Target - Runs test cases on an
Engine(one compiled graph, shared by every test). - Runner
- Runs suites against a
Target. - Runner
Options - How to run a suite.
Traits§
- Target
- The system under test: runs one test case and reports what happened.
Functions§
- verdict
- Promptfoo scoring: the score is the weighted mean of the assertion scores
(weight 0 = report only). Without a threshold every gating assertion must
pass; with one, the score must reach it. Excluded results (a judge’s
unknownwithunknown: exclude) take no part; a test whose results are all excluded passes with score 1.