跳转到主要内容
The Evaluation Center lets you verify agent quality before deploying to production. Create a dataset of test cases, run them against any agent you own, and get a quantitative report with per-case pass/fail verdicts, latency, and token usage.
Designed for enterprise procurement review — every result is auditable, reproducible, and stored persistently.

How It Works

Each evaluation run executes a three-stage pipeline for every test case:
1

Agent Execution

A real ReActAgent runs the test case prompt. Same engine as chat, with the agent’s instructions and the built-in tools. No mocking, no shortcuts.Produces: answer, latency, token usage.
2

LLM Grading

A separate “grader” LLM (fast model) judges the answer against the expected behavior and assertions.Input: prompt + expected behavior + assertions + answer. Output: { verdict: "pass"|"fail", reasoning: "..." }.
3

Persist & Aggregate

Each case result is saved to the database. After all cases finish: pass rate, avg latency, total tokens are computed and attached to the run.

关键设计决策

工作流

1. 创建数据集

导航到 Eval Center → Datasets 标签页,然后点击 New Dataset。 数据集是测试用例的命名集合。为其提供一个描述性的名称(例如,“Customer Support — Tier 1 Questions”)和可选的描述。

2. 添加测试用例

点击进入您的数据集并添加测试用例。每个用例有三个字段:
编写好的测试用例:
  • 提示词:要具体。“我们企业计划的退款政策是什么?“比”告诉我关于退款的事情”更好。
  • 预期行为:描述结果,而不是确切的措辞。“解释30天退款窗口并提及年度计划的例外情况”。
  • 断言:用于硬性要求。评分器将显式验证每个断言。

3. 启动评估

转到 Eval Runs 选项卡,然后点击 New Evaluation。选择:
  1. Agent — 任何您拥有的智能体
  2. Dataset — 任何至少包含一个测试用例的数据集
点击 Start Evaluation。您将被重定向到结果页面。

4. 查看结果

结果页面显示:
  • 标题:智能体名称、数据集名称、状态徽章、通过率、平均延迟、总令牌数
  • 进度条:随着用例完成而填充(绿色 = 通过比例)
  • 结果表:每个测试用例一行,包含:
    • 提示词(截断 — 点击展开)
    • 判定:通过(绿色)、失败(红色)或错误(橙色)
    • 智能体的回答(截断 — 点击展开)
    • 评分器的推理(为什么通过或失败)
    • 延迟(毫秒)和令牌计数
当运行进行中(pending 或 running 状态)时,页面每 3 秒自动刷新一次。如果您想实时查看结果出现,请勿离开此页面。

测试内容

Included

  • Builtin tools: calculator, web_search, web_fetch, python_exec, file_ops, etc.
  • Agent instructions: The agent’s instructions are passed through
  • Agent’s configured model: If the agent has an inline model config, that model is used; otherwise the system default model

Not Included (by design)

  • Connectors: External HTTP connectors require live third-party services — skipped in eval to avoid flaky tests
  • MCP servers: Same reason — external process dependencies
  • Conversation history: Each case runs in isolation with no prior context
  • Knowledge bases: The agent’s knowledge bases are not attached in eval mode
This means eval results reflect the agent’s reasoning and tool-use ability, not its integration with external services. Test connectors separately via the Connector Test feature.

The Grader

The grader is an LLM (the system’s “fast” model) that receives four pieces of information and returns a structured JSON verdict: System prompt:
You are an impartial AI evaluator. Your job is to judge whether an AI agent’s answer meets the expected behavior for a given prompt. Be strict but fair. A “pass” requires the answer to genuinely address the prompt according to the expected behavior. A “fail” means the answer is wrong, incomplete, off-topic, or misses key requirements.
User message includes:
  1. The original prompt
  2. The expected behavior
  3. The list of assertions (or “None specified”)
  4. The agent’s actual answer
Output schema:
The grader uses structured_llm_call with function calling to enforce the schema. If the grader produces no verdict (network error, malformed response), the case is recorded as fail with the reasoning “Grader failed to produce a verdict.” error means the agent run itself raised.

最佳实践

数据集设计

  • 从小处开始:5–10 个案例涵盖智能体的核心用例
  • 覆盖边界情况:至少包含 2–3 个对抗性或超出范围的提示
  • 在预期行为中保持具体:模糊的期望会导致评分不一致
  • 使用断言来处理硬性要求:“必须提及价格”比希望评分器捕捉到它更可靠

解释结果

  • 80%+ 通过率 是配置良好的智能体的良好基线
  • 低通过率且高延迟 表明智能体在多步推理方面遇到困难
  • 错误状态 意味着智能体或评分器崩溃 — 检查服务器日志了解详情
  • 评分器分歧:如果您认为评分器有误,请阅读其推理。您可能需要优化您的预期行为描述

何时重新评估

  • 更改智能体指令后
  • 切换智能体的 LLM 模型后
  • 添加或删除工具类别后
  • 在任何生产部署前(CI/CD 集成将在未来版本中推出)