Evaluating AI agents now demands more than assessing individual function calls; the critical question is whether an agent can reliably complete multi-step tasks in a live environment, even when errors occur. Scoring whether the model sounds right tells you almost nothing about whether the work finished, according to researchers at Berkeley.
This shift has led serious agent benchmarks to focus on tool use as the connective tissue for evaluating entire tasks, moving beyond isolated function accuracy to assess actual task completion. A new approach tracks every step of an agent’s process, creating a “trace” to grade both individual actions and the final outcome.
SWE-bench Demonstrates End-to-End Agent Testing with Real Environments
SWE-bench utilizes real GitHub issues to verify agent performance. The system assesses whether an agent can not only select the correct functions but also successfully resolve a problem within a live, persistent environment; a trial run on issue demonstrated this capability. During this test, the agent addressed a bug where _pytest.capture.EncodedFile accepted binary mode but only processed string writes, causing crashes in external code like youtube-dl.
The evaluation framework exposes tools like terminal, file_editor, task_tracker, and finish to the agent, mirroring a real-world development workflow. A trace of the run reveals the agent first used the terminal tool to locate the relevant “capture.py” file, returning the path /testbed/src/_pytest/capture.py. This initial step was deemed “valid” as it correctly identified the target file before any modifications were attempted. The harness maintained repository state across turns, utilizing a real filesystem and git for persistence, rather than a simulated environment.
Beyond simply verifying individual tool calls, SWE-bench provides an end-to-end check confirming that the tests associated with the resolved issue passed, resulting in an E2E score of 1, indicating a successful resolution. This contrasts with benchmarks like HumanEval, which focuses on generating Python code against unit tests without the complexity of tool interaction or environmental impact. E2E is what your users actually experience, and that is why most production evaluations gate the release on it while keeping step-level tracing for debugging.
From Function Calls to Complete Task Evaluation: The Agentic AI Shift
Evaluating agents now demands a complete execution environment, one that tracks state across multiple steps and verifies actual task completion, rather than simply assessing individual function calls. The shift acknowledges that a series of accurate tool invocations does not guarantee success if important underlying checks or updates are bypassed, a limitation observed in benchmarks like the Berkeley Function-Calling Leaderboard (BFCL). While BFCL effectively measures function selection and argument accuracy, a valid call, for example, can still fail if subsequent steps are incomplete.
Traditional benchmarks designed for static tasks prove inadequate for agentic AI, which operates across multi-step processes involving tool calls, error handling, and observation of results over numerous iterations. A single output string is insufficient for assessment when an agent’s performance is defined by a chain of work executed against a live environment.
This realization prompted the development of model-agnostic, open-source harnesses that decouple the model from the evaluation protocol, allowing for a more comprehensive assessment of agent capabilities. These harnesses are designed to execute each tool call and track the resulting state changes, providing a more nuanced evaluation than previous methods. This approach necessitates a layered scoring system, beginning with step-level process scoring which determines if each call was valid, relevant, and useful given the context.
However, parallel tool calling, while reducing latency, does not diminish the total number of calls issued, meaning evaluation must account for all actions taken, not just the speed of execution. “Implement the necessary changes to the repository ( /testbed ) so that the requirements specified in the issue are satisfied,” explains the need for a thorough evaluation approach.
Task complexity significantly impacts the meaningfulness of benchmark results, with multi-turn scenarios requiring planning, error recovery, and state management presenting a far greater challenge than single-turn tasks with one tool. Adapting models to specific workloads and use-cases remains important, and researchers recommend running published agentic suites to record success rates across multiple trials, gating evaluations on verifiable environment state, a database row, a merged pull request, or a closed ticket, provides a more objective measure of success than relying on subjective human judgment of the final message. This focus on demonstrable outcomes marks a significant evolution in how AI agents are assessed, prioritizing task completion over superficial correctness.
Trace Analysis: Step-Level vs. End-to-End Scoring of Agent Workflows
A detailed trace, the ordered log of an agent’s attempt, now underpins rigorous evaluation of AI workflows, moving beyond simple assessments of individual tool calls to a layered scoring system. This approach grades both the process, the validity of each step, and the outcome, verifying demonstrable task completion against a verifiable environment state. SWE-bench, a benchmark utilizing real GitHub issues and executable tests, exemplifies this by tracking a complete agent attempt from user prompt to final result.
Current evaluations employ two distinct scoring layers applied to this trace data: step-level process scoring and end-to-end outcome scoring. Step-level scoring assesses each action’s relevance and usefulness given the current state, pinpointing where a failure originates during multi-step tasks; while end-to-end scoring disregards the process, focusing solely on the final result, did the agent successfully resolve the issue or not?
This distinction is crucial, as a failure on the first step receives the same “task failed” designation as one occurring on the ninth, yet step-level analysis provides valuable debugging information for targeted fine-tuning. The SWE-bench evaluation of trial. 2 of issue pytest-dev__pytest-5262 illustrates this scoring in practice. EncodedFile module incorrectly handled binary data. Benchmarks must also account for new forms of contamination, extending beyond traditional training data leaks.
Web-searching agents, for example, could inadvertently retrieve answer keys during evaluation, artificially inflating their performance. Private domain evaluations mitigate this risk by operating within environments inaccessible to external scraping, ensuring the integrity of the assessment.
Key Metrics for Agent Benchmarking: Accuracy, Verbosity, and Cost
Evaluating an agent’s economic performance requires tracking cost per successful task, a metric that considers both tokens and GPU-seconds, according to recent analyses of agent benchmarking methodologies. Simply measuring success rate without assessing consistency provides only a snapshot of a stochastic system; a model achieving 90% success followed by 74% is less reliable than one consistently reaching 84%, highlighting the importance of stable performance indicators.
Step count, often varying significantly between models tackling the same task, provides another important dimension for comparison, though benchmarks like Terminal-Bench 2.0 also reveal variation in steps per turn. A robust evaluation framework necessitates tracking several key metrics beyond simple task completion, including re-measuring success rate, consistency, steps per success, and cost per success, to provide a holistic understanding of agent capabilities.
Maintaining detailed step-level traces is essential for debugging and identifying points of failure within the agent’s process, allowing developers to pinpoint specific areas for improvement. Verification of consequences within the environment, coupled with human judgment for language quality, further enhances the reliability of the evaluation process.
Tool-call precision, alongside argument accuracy, is critical for identifying breakdowns in the agent’s reasoning chain; a high precision score without accurate arguments indicates the agent may be selecting the correct tools but failing to provide the necessary information for them to function effectively. The evaluation hierarchy, benchmark, trial, task, turn, and step, provides a structured approach to assessing agent performance, with scores rolling up from individual steps to provide an overall assessment.
Evaluating Agent Reliability: Task Complexity, Statefulness, and Methodology
Traditional benchmarks for large language models prove insufficient when assessing agentic AI, as these systems require evaluation of multi-step tasks where agents utilize tools, manage errors, and interpret results across numerous steps, rendering a single output string inadequate for accurate assessment. A model’s ability to request a tool when a direct answer is possible is as indicative of failure as omitting a necessary tool, highlighting the need to move beyond simply verifying if a model and instead focus on whether the work actually completes. Statefulness, defined as whether the environment updates with each action, further complicates assessment, as stateful benchmarks reveal drift, context loss, and corrupted state that static benchmarks often miss.
Methodology is important in establishing reliable evaluation, with executable verification, confirming database updates or successful test runs, representing the gold standard for assessing agent performance. Reference-based evaluation, relying on pre-annotated answer sets, requires ongoing maintenance, while utilizing a large language model as a judge provides a provisional score until validated against human ratings on a representative sample.
Source: https://developer.nvidia.com/blog/how-to-evaluate-ai-agents-from-tool-calls-to-task-completion/




See today’s quantum computing news on Quantum Zeitgeist for the latest breakthroughs in qubits, hardware, algorithms, and industry deals.
