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 をクリックします。 データセットはテストケースの名前付きコレクションです。わかりやすい名前(例:「カスタマーサポート — Tier 1 質問」)とオプションの説明を付けます。2. テストケースを追加
データセットをクリックしてテストケースを追加します。各ケースには3つのフィールドがあります:3. 評価を開始する
Eval Runs タブに移動して、New Evaluation をクリックします。以下を選択します:- Agent — 自分が所有するエージェント
- Dataset — 少なくとも 1 つのテストケースを含むデータセット
4. 結果を読む
結果ページには以下が表示されます:- ヘッダー: エージェント名、データセット名、ステータスバッジ、合格率、平均レイテンシ、総トークン数
- プログレスバー: ケースが完了するにつれて埋まります(緑 = 合格の割合)
- 結果テーブル: テストケースごとに1行で以下を表示:
- プロンプト(切り詰め — クリックで展開)
- 判定: 合格(緑)、不合格(赤)、またはエラー(オレンジ)
- エージェントの回答(切り詰め — クリックで展開)
- グレーダーの理由(合格または不合格の理由)
- レイテンシ(ms)とトークン数
テストされる内容
Included
- Builtin tools: calculator, web_search, web_fetch, python_exec, file_ops, etc.
- Agent instructions: The agent’s
instructionsare 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:
- The original prompt
- The expected behavior
- The list of assertions (or “None specified”)
- The agent’s actual answer
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統合は将来のリリースで予定)