Skip to main content

agent-regression-lens-py

Detect regressions between baseline and current AI agent runs. Pure Python, zero deps. Python port of @mukundakatta/agent-regression-lens.

pip install agent-regression-lens-py
from agent_regression_lens import analyze_agent_regression

baseline = {"events": [{"type": "tool_call", "tool": "search"}, {"type": "final", "content": "ok"}], "success": True}
current  = {"events": [{"type": "tool_call", "tool": "search"}, {"type": "error", "message": "boom"}], "success": False}

res = analyze_agent_regression(baseline, current)
# RegressionResult(passed=False, score=..., regressions=[Issue(code='lost_success', severity='critical', ...), ...])

API

  • analyze_agent_regression(baseline, current, *, thresholds=None) -> RegressionResult
  • compare_run_set(baseline_runs, current_runs, *, thresholds=None) -> ComparisonSummary

Detects: lost success, new errors, failed tool calls, output drift (Jaccard), step / latency / cost bloat above configurable ratios.

License

MIT

Metadata

Release files for agent-regression-lens-py 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 agent-regression-lens-py 0.1.0
File Size Uploaded Provenance Actions
agent_regression_lens_py-0.1.0.tar.gz 5.3 kB Without provenance Details for agent_regression_lens_py-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-regression-lens-py 0.1.0
File Interpreter ABI Platform Actions
agent_regression_lens_py-0.1.0-py3-none-any.whl Python 3 none any Details for agent_regression_lens_py-0.1.0-py3-none-any.whl

Total release size: 10.6 kB

Release files / agent_regression_lens_py-0.1.0.tar.gz

Download URL agent_regression_lens_py-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5f4558c92c21711e46800006c88d93ee4bbbc3beada6714e262d87a656438fe3
BLAKE2b-256 checksum
How to use checksums
3c8d7fee07f09b360806a884c7c85a5848a332271b5e0d6f5b9bb50c3e93766a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

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

Download URL agent_regression_lens_py-0.1.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cd965c53bf80449bcbfb233d9687a3f29d42d6453a8737482b4907ae225bd76
BLAKE2b-256 checksum
How to use checksums
318a55c523a91c0da098a32c6665ec8cc29adf60dbae9ee3ef58039f68af9c4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for agent-regression-lens-py 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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 No 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