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. 테스트 케이스 추가
데이터셋을 클릭하여 테스트 케이스를 추가합니다. 각 케이스는 세 가지 필드를 가집니다:3. 평가 시작
Eval Runs 탭으로 이동하여 New Evaluation을 클릭합니다. 다음을 선택합니다:- Agent — 소유한 모든 에이전트
- Dataset — 최소 하나 이상의 테스트 케이스가 있는 모든 데이터셋
4. 결과 읽기
결과 페이지에는 다음이 표시됩니다:- 헤더: 에이전트 이름, 데이터셋 이름, 상태 배지, 통과율, 평균 지연시간, 총 토큰
- 진행률 표시줄: 케이스가 완료되면서 채워짐 (녹색 = 통과 비율)
- 결과 테이블: 테스트 케이스당 한 행:
- 프롬프트 (잘림 — 클릭하여 확장)
- 판정: Pass (녹색), Fail (빨강), 또는 Error (주황)
- 에이전트의 답변 (잘림 — 클릭하여 확장)
- 평가자의 추론 (통과 또는 실패 이유)
- 지연시간 (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 통합은 향후 릴리스에서 제공 예정)