AgentEval (Python)
Reliability and audit-ready testing for LLM agents. Run each scenario N times and get a determinism (flakiness) score, grounding checks, and a self-contained audit-ready HTML report.
This package is the Python bridge to the AgentEval engine (agenteval-core on npm) — one engine, no duplicated logic. It requires Node.js ≥ 20 on your PATH (the CLI tells you if it's missing).
60-second demo (no API keys)
pip install agenteval-python # installs the `agenteval` CLI and `import agenteval`
mkdir demo && cd demo
agenteval init --demo-python # scaffolds a mock Python agent — one scenario deliberately flaky
agenteval run --html report.html
open report.html # the audit report, with the flaky scenario caught
Wrap your real agent (~10 lines)
my_agent.py:
import agenteval
@agenteval.adapter
def my_agent(input):
result = run_my_agent(input["user_message"]) # LangGraph, CrewAI, raw loop, ...
return agenteval.Trace(
final_text=result.text,
tool_calls=[agenteval.ToolCall(name=t.name, input=t.args) for t in result.tools],
citations=[agenteval.Citation(source=c.source, quote=c.quote) for c in result.citations],
)
if __name__ == "__main__":
my_agent.serve()
agenteval.config.yaml:
adapter:
command: python3
args: [my_agent.py]
agentName: My agent
scenarios: ./scenarios
runs: 3
Then agenteval run --html report.html. Scenarios are plain YAML (see the main README for the assertion vocabulary: tool calls, text content, citation grounding, refusals, LLM-judge rubrics).
Already have traces?
Score traces you already collect (OpenTelemetry GenAI spans, LangSmith runs, or AgentEval's own trace shape) without re-running your agent:
import agenteval
agenteval.write_traces(traces, "traces.json")
agenteval eval --traces traces.json ./scenarios --html report.html
# or: --format otel | langsmith
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agenteval_python-0.1.0.tar.gz.
File metadata
- Download URL: agenteval_python-0.1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b315bbe6607a03ce3b92a5846bfae2e3c40c901b005e593718d88bdadf9f8f7e
|
|
| MD5 |
a9f5f5fdfff44fbceed89e9b231ba205
|
|
| BLAKE2b-256 |
6cde7ac2d85f2a9709dbd740634ab26bb8bc68e9bcfdc51a731010020f80cc49
|
Provenance
The following attestation bundles were made for agenteval_python-0.1.0.tar.gz:
Publisher:
release.yml on lokesh75-kank/agenteval
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agenteval_python-0.1.0.tar.gz -
Subject digest:
b315bbe6607a03ce3b92a5846bfae2e3c40c901b005e593718d88bdadf9f8f7e - Sigstore transparency entry: 2659158907
- Sigstore integration time:
-
Permalink:
lokesh75-kank/agenteval@3e519ea5d0da62916b5cb074ff1fa611804b5dcb -
Branch / Tag:
refs/tags/py-v0.1.0 - Owner: https://github.com/lokesh75-kank
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3e519ea5d0da62916b5cb074ff1fa611804b5dcb -
Trigger Event:
push
-
Statement type:
File details
Details for the file agenteval_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agenteval_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d62501d89c567eea795d03e0ae4db71f81f4f95a89f47df9fc3aed2ef9c0cdcf
|
|
| MD5 |
53c9d93b1144c3100a1a5e78ee067142
|
|
| BLAKE2b-256 |
65c06f64cbcb300e98a6778d1bda93d2da15047a98d4c6002ccb64af6ea95896
|
Provenance
The following attestation bundles were made for agenteval_python-0.1.0-py3-none-any.whl:
Publisher:
release.yml on lokesh75-kank/agenteval
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agenteval_python-0.1.0-py3-none-any.whl -
Subject digest:
d62501d89c567eea795d03e0ae4db71f81f4f95a89f47df9fc3aed2ef9c0cdcf - Sigstore transparency entry: 2659159195
- Sigstore integration time:
-
Permalink:
lokesh75-kank/agenteval@3e519ea5d0da62916b5cb074ff1fa611804b5dcb -
Branch / Tag:
refs/tags/py-v0.1.0 - Owner: https://github.com/lokesh75-kank
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3e519ea5d0da62916b5cb074ff1fa611804b5dcb -
Trigger Event:
push
-
Statement type: