Detect regressions between baseline and current AI agent runs. Python port of @mukundakatta/agent-regression-lens.
Project description
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) -> RegressionResultcompare_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
Project details
Release history Release notifications | RSS feed
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 agent_regression_lens_py-0.1.0.tar.gz.
File metadata
- Download URL: agent_regression_lens_py-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f4558c92c21711e46800006c88d93ee4bbbc3beada6714e262d87a656438fe3
|
|
| MD5 |
f4e96db2f1ef697e35ec019cc2a63c46
|
|
| BLAKE2b-256 |
3c8d7fee07f09b360806a884c7c85a5848a332271b5e0d6f5b9bb50c3e93766a
|
File details
Details for the file agent_regression_lens_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agent_regression_lens_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cd965c53bf80449bcbfb233d9687a3f29d42d6453a8737482b4907ae225bd76
|
|
| MD5 |
e19bb4bbf8ea7629aac31bc858bfb90d
|
|
| BLAKE2b-256 |
318a55c523a91c0da098a32c6665ec8cc29adf60dbae9ee3ef58039f68af9c4a
|