Tathagat Agrawal

Agentic Eval Framework

Scores any LLM agent on six deterministic metrics with no LLM-as-judge, demonstrated on four interchangeable agent architectures.

September 2026 · Complete · Source on GitHub · Comparison report

Result: The metrics separate the four designs clearly: for example 100% against 50% groundedness, and tool-call efficiency from 17% to 100%. No architecture wins on every metric.

The problem

Agent evaluations often use a second LLM as the judge, which is expensive, noisy and hard to trust. I wanted metrics that are deterministic, cheap to rerun, and sharp enough to tell two agent designs apart.

The test bed is a personal-finance Q&A agent over a synthetic transaction history. Every question in that domain (“how much did I spend on dining in Q1?”) has exactly one correct answer that can be computed from the data, so answers can be checked by rules instead of by another model.

What I built

Result

All four architectures, using the same model (gemini-3.5-flash-lite), the same tools and the same data:

Grouped horizontal bar chart of seven evaluation metrics for four agent architectures. LangGraph scores 100% on numeric correctness, both groundedness checks, contextual correctness and refusal, but only 86.7% on clarification and 16.7% on efficiency. Monolithic ReAct is 100% on groundedness and refusal but 50% on contextual correctness. Context-stuffing is the most efficient at 100% but scores 50% on groundedness and 0% on contextual correctness. Plan-and-execute is 100% on groundedness, contextual correctness and refusal, 75% on numeric correctness and 66.7% on efficiency.Grouped horizontal bar chart of seven evaluation metrics for four agent architectures. LangGraph scores 100% on numeric correctness, both groundedness checks, contextual correctness and refusal, but only 86.7% on clarification and 16.7% on efficiency. Monolithic ReAct is 100% on groundedness and refusal but 50% on contextual correctness. Context-stuffing is the most efficient at 100% but scores 50% on groundedness and 0% on contextual correctness. Plan-and-execute is 100% on groundedness, contextual correctness and refusal, 75% on numeric correctness and 66.7% on efficiency.
Figure 1. Scores of the four architectures on each metric, with the best in each row in bold.

No architecture wins every row. The state machine is the most correct but the least efficient, because it can probe repeatedly. Context-stuffing is efficient by construction, but its groundedness collapses: when “the evidence” is a whole table of monthly totals, almost any number can be found in it, so a groundedness check can’t tell right from wrong. Plan-and-execute fails differently again: once its single upfront plan asks for too little, it has no chance to correct itself.

What I learned

The test cases also exposed a gap shared by every architecture: none was told the dataset’s date range, so “this year” and “recently” were resolved inconsistently. That is a fix to the evaluation setup, not a difference between architectures, and the report says so. With 15 cases and a single run per architecture, the percentages are best read as pointers to concrete failure traces, which the report walks through one by one.

Built with

LLM and agent evaluation, Agents and tool calling, LangGraph, LangChain, LLM APIs (Gemini, OpenAI, OpenRouter), Data validation with Pydantic, SQL databases (PostgreSQL, SQLite), Testing and CI (pytest, GitHub Actions), Python