智能体
dev.to ·
@Agentic Affairs
如何评估 AI Agent 性能:实用指南
文章认为只评判 Agent 最终回复等于只看预告片,应评估任务终态(工单是否关闭、记录是否更新)而非措辞。作者给出八项指标阶梯:任务成功率、工具选择准确率、工具参数准确率,以及区分严谨团队的 pass^k 一致性——成功率 75% 的 Agent 连续三次全过的概率仅约 42%。
AI推荐理由 提出评估 Agent 应看最终状态而非措辞,并给出任务成功率、工具选择与参数准确率、pass^k 一致性等八项指标,对 Agent 评测实践有参考价值;但为经验性指南,未附具体实验数据。
64
正文
Your agent passed its demo. Then it hit production and started hallucinating refunds.
Here's the uncomfortable truth the agent-eval industry whispers around: grading an agent's final message is grading the trailer, not the film. An agent that closes a refund ticket through three wrong tool calls and one lucky guess isn't a pass — it's a latent incident wearing a success costume. And most teams' "eval suites" would wave it right through.
The metric that matters most is the one everyone skips
The piece lays out an eight-metric ladder, working from outcomes inward: task success (grade the end state — ticket closed, record updated — not the wording), tool selection accuracy, tool parameter accuracy, and then the one that separates serious teams from cargo-cult eval shops: consistency (pass^k).
The math is brutal. An agent that succeeds 75% of the time clears all three of three runs only about 42% of the time. Your "passing" demo was probably just a lucky day. Report capability (pass@k: can it do the job at all) and reliability (pass^k: can it do it every time) side by side — high pass@k with low pass^k means an agent that can work but can't be trusted to work.
The most common eval bug in the wild isn't the agent — it's the judge
LLM-as-a-judge is fine. An uncalibrated rubric treated as gospel is how teams grade fiction. The fix is unglamorous: 50–100 human-labeled golden examples per rubric, measure judge–human agreement, and below ~75% agreement, fix the rubric — not the agent. Recalibrate quarterly, version the rubric like code.
And the judges cheat in documented ways: they prefer whichever answer appears first, they rate longer answers higher regardless of accuracy, and they rate their own model family higher. Shuffle answer order, cap response length, and judge with a different model family. As DataFramer puts it: LLMs are trained to generate text, not to score it consistently.
Benchmarks are snapshots, not titles
GAIA, SWE-bench Verified — read them honestly. Leaderboards mix self-reported scores with maintainer-verified ones, and top-system standings shift with the board. Compare only within the same board and verification standard, and treat any single #1 as a photograph of one moment, not a championship.
The three traps that make evals lie to you: grading only the final message, trusting single-run results, and running an uncalibrated judge. Plus the quiet fourth: a test set with zero failure modes will green-light an agent that collapses on its first ambiguous instruction in production. Convert every real failure into a regression test, and your evals finally measure the agent your users actually meet.
Go deeper
Full guide with the eight-metric ladder, the pass@k vs pass^k math, calibration recipes, and the framework landscape (DeepEval, RAGAS, LangSmith, Braintrust, Arize Phoenix — and when to build your own): https://agentic-affairs.com/ai-agent-performance-evaluation/
Originally published on Agentic Affairs (https://agentic-affairs.com)