Skip to main content

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

Metadata

Release files for agenteval-python 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agenteval-python 0.1.0
File Size Uploaded Provenance Actions
agenteval_python-0.1.0.tar.gz 5.7 kB With provenance Details for agenteval_python-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agenteval-python 0.1.0
File Interpreter ABI Platform Actions
agenteval_python-0.1.0-py3-none-any.whl Python 3 none any Details for agenteval_python-0.1.0-py3-none-any.whl

Total release size: 11.9 kB

Release files / agenteval_python-0.1.0.tar.gz

Download URL agenteval_python-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b315bbe6607a03ce3b92a5846bfae2e3c40c901b005e593718d88bdadf9f8f7e
BLAKE2b-256 checksum
How to use checksums
6cde7ac2d85f2a9709dbd740634ab26bb8bc68e9bcfdc51a731010020f80cc49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.

Transparency log

Release files / agenteval_python-0.1.0-py3-none-any.whl

Download URL agenteval_python-0.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d62501d89c567eea795d03e0ae4db71f81f4f95a89f47df9fc3aed2ef9c0cdcf
BLAKE2b-256 checksum
How to use checksums
65c06f64cbcb300e98a6778d1bda93d2da15047a98d4c6002ccb64af6ea95896
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.

Transparency log

Security for agenteval-python 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agenteval_python-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page