Skip to content

Evaluation

An evaluation is a scored run of a benchmark against one agent. You run your agent on the benchmark's test cases, bring its results back to MorganaBench in the expected format, and choose which metrics to compute; MorganaBench then scores every case and aggregates the scores into one number per metric.

For what the metrics are and how to read their scores, see Metrics. For where evaluation fits into the wider flow, see Overview. For step-by-step instructions, see the Evaluations UI guide or the Evaluation CLI.

Agent output

Your agent's results are imported as a JSONL file, one SDK Example per line, carrying the case's inputs and expectations alongside what your agent produced.

What the file must carry depends on the kind of benchmark being evaluated. For a search benchmark, each line carries the agent's answer in outputs.response together with the context it retrieved in outputs.trace. For a tool-use benchmark, each line carries the tool calls the agent made in outputs.trace, which are checked against the tool-call items of the benchmark's expectations.

Different metrics apply to each kind of benchmark; see Metrics for which ones and what they measure. The two file formats, the validation rules each must satisfy, and worked examples of both are documented in Agent output format.

Statuses

pending → uploaded → processing → ready
                               ↘ failed
Status Meaning
pending Evaluation created, awaiting the agent output
uploaded Agent results received, waiting for scoring to begin
processing Metrics are being computed, or, once scoring is done, the evaluation is waiting for the benchmark's category discovery (up to 60 minutes)
ready Evaluation complete, scores available
failed An error occurred during evaluation

A ready evaluation is not closed: further metrics can be added to it later, which scores the same rows again for the new metrics only.

Results

Which metrics an evaluation computes is chosen when it is created — the system metrics that apply to the benchmark being evaluated, plus your organization's active custom metrics. Every metric multiplies the scoring work: an evaluation consumes rows × metrics against your organization's evaluation limit.

Each metric on a ready evaluation has a score for every case, included in the downloadable results JSONL, and a benchmark-level result: the average, its confidence interval, and how many cases were scored, skipped as ineligible, or failed. See Benchmark-level results.

Each metric can also be broken down by the benchmark's dimensions (for example persona or question phrasing), alone or two crossed. See Segment analysis. Issues lists the segments that score significantly worse than the evaluation overall.

In the downloaded results, each case carries its per-case scores inline, in the SDK Example's assessments field: system metrics under their machine names (ground_truth_alignment, query_relevance::relevant-portion, …) and each custom metric under its display name, e.g. Tone Politeness.

Custom metrics are pinned. When an evaluation runs, it snapshots each custom metric's name, description and config, so later renaming, duplicating or deleting the metric does not change what a past evaluation's numbers mean, and the definition stays readable from the evaluation itself.