Skip to content

About

Deterministic evaluation harness for LLM agent tool-calling, schema adherence, and multi-step reasoning accuracy without paid API judges

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Eval Harness 🎯

License: MIT Python 3.9+ Zero External LLM Cost

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.


🌟 Why Deterministic Evaluation?

  1. Zero Recurring API Costs: Run 100,000 evaluations in your CI/CD pipeline for $0.
  2. Reproducible & Objective: Eliminates non-deterministic drift and stochastic hallucinations inherent in LLM judges.
  3. Sub-Second Execution: Millisecond scoring per test case vs. 5–15 second network calls per model probe.

🚀 Quickstart

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}")

🧪 Testing

python -m pytest tests

📄 License

MIT License. Architected by Milind Chatrabhuji.

About

Deterministic evaluation harness for LLM agent tool-calling, schema adherence, and multi-step reasoning accuracy without paid API judges

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages