Join early access
Menu

Evaluation · Engineering guide

How to evaluate an AI agent

A useful agent test asks not only “was the answer good?” but “did the right work happen, with the right permissions, when the workflow got messy?”

By Triangulum Labs · 25 November 2026 · All guides

Define success before running the model

Choose a real workflow, such as resolving a support request. Define the allowed inputs and tools, the expected result and actions requiring human review. For each case, record the starting state, user request, simulated tool responses and observable pass conditions. Protect sensitive customer data; use appropriately reviewed or synthetic examples for testing.

Build a representative test set

Keep a held-out set that was not used to tune prompts. Repeatedly adjusting to the same cases can improve the score without improving real-world performance. Use multiple runs when model output varies and report both the sample size and failure categories.

Score outcomes and traces separately

Measure task completion, unauthorized actions, approval correctness, escalation rate, latency and cost per completed task. Inspect tool call names and arguments, policy decisions and final state. A fluent response can hide a wrong record update; an agent that refuses everything can appear safe while failing its job.

Automated graders can help scale review, but calibrate them against human-reviewed cases. Treat a model judge's score as another measurement with its own errors. OpenAI's agent evaluation guide describes trace grading; Google Cloud's evaluation documentation covers multi-turn cases and simulated tool behavior.

Turn the suite into a release gate

  1. Establish a baseline for the current agent, model, tools and policy.
  2. Set thresholds with the people responsible for the workflow; do not treat a sample percentage as a universal guarantee.
  3. Run the same suite after changes to prompts, models, connectors, authorization or state handling.
  4. Investigate regressions by failure type and reproduce high-impact cases before release.
  5. Monitor real outcomes after deployment and add reviewed failures back to the test set.

What our proof records

Triangulum's internal security run recorded 15 passed and 11 partial claims on one AWS server, with upstream vendors and sign-in simulated. A separate real-model evaluation tested 100 public attack texts against each of two models with zero successful attacks in one agent shape. These results address specific configurations, not every agent. See the whitepaper for the scope and remaining gaps.

For the model comparison itself, read how to choose an LLM for AI agents. For adversarial cases, use the prompt injection checklist.

Bring your hardest workflow

Discuss the tools, approvals and outcomes your team wants to evaluate.