← Back to the notebook← 返回笔记列表

Agent Evaluation Beyond Task Success智能体评估不应止于任务成功

Why agent evaluation should track traces, recovery behavior, tool choices, and controllability instead of only final answers.为何评估应跟踪执行轨迹、故障恢复、工具选择和可控性,而不只是最终回答。

TLDR. A final answer can look correct while the agent's path is fragile. Evaluation should inspect the trace, the tool calls, and the failure recovery behavior.最终答案看似正确,执行路径却可能十分脆弱。评估还应检查轨迹、工具调用与失败恢复行为。

Many agent benchmarks focus on whether the final task was completed. That is useful, but it is not enough for reliable deployment. An agent can arrive at a correct-looking answer through an unsafe tool call, a lucky retrieval result, or a reasoning path that cannot recover when the environment changes.

Better evaluation should include the trace: what the agent observed, which tools it selected, whether it verified evidence, how it handled missing information, and whether it stopped when it should. These signals help separate robust behavior from accidental success.

For practical systems, trace-level evaluation also improves engineering. It gives developers a way to identify brittle prompts, weak retrieval, missing guardrails, and unclear fallback routes.

许多智能体基准关注最终任务是否完成。这是有用的指标,但不足以支撑可靠部署。一个看似正确的答案,可能来自不安全的工具调用、碰巧有效的检索,或一条在环境变化后无法恢复的推理路径。

更好的评估应包含执行轨迹:智能体观察到了什么、选择了哪些工具、是否核验证据、如何处理缺失信息,以及是否在应当停止时停止。这些信号有助于区分稳健行为与偶然成功。

对实际系统而言,轨迹级评估也能改善工程过程。它让开发者能够定位脆弱的提示词、薄弱的检索、缺失的护栏和不明确的回退路径。