Skip to main content

Module runner

Module runner 

Source
Expand description

Running a suite: the Target under test, concurrency, trials, filters, scoring, trial statistics, calibration and the gate.

Structs§

EngineTarget
Runs test cases on an Engine (one compiled graph, shared by every test).
Runner
Runs suites against a Target.
RunnerOptions
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 unknown with unknown: exclude) take no part; a test whose results are all excluded passes with score 1.