Eval Suite Cookbooks
Suite examples run multiple eval cases as one aggregated suite with tag selection, per-case timeouts, a JSON report, and CI exit codes.
Content
Eval Suite Cookbooks
Suite examples run multiple eval cases as one aggregated suite with tag selection, per-case timeouts, a JSON report, and CI exit codes.
Files
suite_basic.py- Two cases (judge + reliability checks) run through the built-incli().suite_team_scoring.py- A Team run through the suite (the leader delegates to a calculator member and a writer member); reliability sees the members' tool calls, and every answer is graded by a numeric 1-10 judge.suite_session.py- Cases that passsession_stateanduser_idto the run, and a case that continues a session (session_id) whose earlier turn runs in itssetuphook, to check a two-turn booking conversation; the last case sends an image with its turn by giving aMessageas the input.
Usage
python cookbook/09_evals/suite/suite_basic.py # run all cases
python cookbook/09_evals/suite/suite_basic.py --list # list cases without running
python cookbook/09_evals/suite/suite_basic.py --tag smoke # run a tagged subset
python cookbook/09_evals/suite/suite_basic.py --name factorial_uses_calculator
python cookbook/09_evals/suite/suite_basic.py --json-output tmp/evals.json
python cookbook/09_evals/suite/suite_basic.py -v # full run panels per case
For programmatic use (CI workflows, embedding), call run_cases(CASES) or await arun_cases(CASES) instead and read SuiteResult.to_dict() - the runner does no console I/O.
Source and license
- Source
- Agno
- Original
- agno-agi/agno/cookbook/09_evals/suite
- License
- Apache-2.0