DeepEval
$ deepeval Official Low RiskDeepEval (deepeval) provides unit-testing-style evaluation for LLM applications and RAG pipelines (faithfulness, answer relevancy, hallucination). Its CLI wraps pytest via deepeval test run with parallel execution (-n), local cache resumption (-c), and optional Confident AI dashboard sync via deepeval login.
pip install deepeval deepeval test run executes directly against local pytest suites and repository code, which fits CI and coding-agent test loops better than MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports deepeval test run with -n, -c, and pytest flags, but lacks a native --json CLI output flag and includes interactive login/view commands.
- Supports
-nparallel processes and-cmetric caching - No built-in
--jsonflag ondeepeval test run
Runs locally offline unless CONFIDENT_API_KEY or deepeval login is used, and -c caching prevents runaway repeat judge calls.
- Local-only execution without
CONFIDENT_API_KEY -c/--cacheprevents re-running identical LLM judge calls
Installable via pip install deepeval across macOS, Linux, and Windows, though its Python dependency footprint is fairly large.
- Standard PyPI package
deepeval
Familiar pytest test runner UX with 14+ built-in RAG/agent metrics and optional deepeval inspect TUI.
- Wraps
pytestwith parallelization, caching, and error-ignoring flags
Maintained by Confident AI (confident-ai/deepeval) under Apache-2.0.
- Official
confident-ai/deepevalrepo under Apache-2.0
Clear documentation at deepeval.com with runnable pytest test examples.
- Official documentation at deepeval.com
Security, Auth & Guardrails
Reads OPENAI_API_KEY (or custom judge LLM env vars) and CONFIDENT_API_KEY for cloud sync, or stores Confident AI keys locally via deepeval login.
Apache-2.0 open-source CLI; LLM-as-a-judge metrics incur provider token costs unless configured with local models.
# DeepEval CLI (deepeval) Agent Rules - Run `deepeval test run <file> -c` to reuse cached metric evaluations and avoid redundant LLM judge costs. - Avoid `deepeval login` (prompts interactively) and `deepeval view` (opens a browser) in headless runs. - Set `CONFIDENT_API_KEY` only if the user wants results uploaded to Confident AI.
Agent-Ready Command Recipes
Safe Read-Only Queries
deepeval test run --help
Displays supported parallelization, caching, and pytest pass-through flags.
Controlled Writes & Previews
deepeval test run test_app.py -n 4 -c
Runs test_app.py across 4 worker processes while reusing cached metric results (-c).
Strengths for Agents
- +
-c/--cacheresumes failed evaluation suites without re-paying for already-scored test cases. - + Familiar
pytestpass-through flags make it easy to filter test cases in CI.
Caveats & Pitfalls
- !
deepeval test runlacks a native--jsonflag on stdout unless paired with pytest JSON plugins. - !
deepeval loginprompts interactively anddeepeval viewlaunches a browser window.