Observed since 20 Oct, 21:56 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A simple evaluation harness for AI agents.
agentbench is an evaluation framework for AI agents. It provides core abstractions for tasks, scenarios, agents, and judges, with an async runner that supports retries, rate limiting, and comprehensive reporting.
Install in editable mode:
pip install -e .
Run a simple example using presets:
python examples/math_with_presets.py
Here's a minimal example that evaluates a simple math agent:
from agentbench import (
RunConfig,
run,
build_math_basic_scenario,
ExactMatchJudge,
)
class SimpleMathAgent:
name = "simple_math_agent"
version = "0.0.1"
provider_key = None
async def setup(self) -> None:
return None
async def reset(self) -> None:
return None
async def teardown(self) -> None:
return None
async def run_task(self, task, context=None):
prompt = task.input["prompt"]
if "2 + 3" in prompt:
response = "5"
elif "4 * 7" in prompt:
response = "28"
else:
response = "I do not know yet"
return {"response": response}
scenario = build_math_basic_scenario()
agent = SimpleMathAgent()
judge = ExactMatchJudge()
config = RunConfig(
name="math_example",
agents=[agent],
scenarios=[scenario],
judges=[judge],
)
results = run(config)
print(f"Got {sum(1 for r in results if r.passed)} / {len(results)} passing results.")
Running an evaluation creates a directory under runs/<run_id>/ with:
Open report.html in your browser to view the detailed evaluation report.
agentbench includes a comprehensive test suite with 43+ tests covering all major components:
Run tests:
# Install dev dependencies
pip install -e ".[dev]"
# Run all tests
pytest
# Generate HTML test report
pytest --html=test-results/report.html --self-contained-html
# Generate coverage report
pytest --cov=src/agentbench --cov-report=html:htmlcov
Test reports are generated in test-results/ and coverage reports in htmlcov/.
agentbench is in active development. The core framework is functional and ready for evaluation use cases.
Current version: 0.0.1
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.1 | 7 Jan 2026 | 5 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:56 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7dfc40ae176dfc127a20d0bd9f9d476c283d7d79e047e0a3ea9b57f64b3ac66a