Overview
Thegeval check command evaluates contracts against eval results and enforces decisions.
Usage
Options
| Option | Description |
|---|---|
-c, --contract <path> | Path to eval contract (YAML/JSON) (required) |
-e, --eval <paths...> | Path(s) to eval result files (CSV/JSON/JSONL) (required) |
-b, --baseline <path> | Path to baseline eval results for comparison |
--adapter <name> | Force specific adapter (promptfoo, langsmith, openevals, generic) |
--json | Output results as JSON |
--no-color | Disable colored output |
--verbose | Show detailed output |
Examples
Basic check
Multiple eval files
With baseline comparison
JSON output for CI
Exit Codes
0- PASS (safe to merge/deploy)1- BLOCK (do not merge/deploy)2- REQUIRES_APPROVAL (needs human review)3- ERROR (something went wrong)