A deterministic, high-speed evaluation framework for testing autonomous AI agents. Designed for continuous integration (CI) pipelines to grade tool selection accuracy, argument schemas, and structured JSON outputs without spending thousands of dollars on external LLM-as-a-judge API calls.
- Zero Recurring API Costs: Run 100,000 evaluations in your CI/CD pipeline for $0.
- Reproducible & Objective: Eliminates non-deterministic drift and stochastic hallucinations inherent in LLM judges.
- Sub-Second Execution: Millisecond scoring per test case vs. 5–15 second network calls per model probe.
from agent_eval_harness import AgentEvaluator
from agent_eval_harness.evaluator import TestCase
# Initialize evaluator
evaluator = AgentEvaluator(pass_threshold=0.85)
# Define test benchmark case
test = TestCase(
test_id="booking_agent_01",
prompt="Book a train from Mumbai to Ahmedabad for tomorrow morning",
expected_tools=["search_trains", "book_ticket"],
required_output_keys=["booking_id", "pnr", "status"]
)
# Simulated Agent Response
agent_tools = ["search_trains", "book_ticket"]
agent_output = {"booking_id": "BK-9912", "pnr": "44910291", "status": "CONFIRMED"}
# Score response
result = evaluator.evaluate_case(test, agent_tools, agent_output)
print(f"Passed: {result.passed} | Tool Score: {result.tool_score} | Schema Score: {result.schema_score}")python -m pytest testsMIT License. Architected by Milind Chatrabhuji.