> ## Documentation Index
> Fetch the complete documentation index at: https://traceroot.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Reading Results

> Read the summary and per-case results an eval run returns

`evaluate()` returns an `EvalRunResult` — a summary per metric, one result per case, and where the run reported.

## Summary

`summary()` prints one line per metric:

```
matches_expected: mean=0.75 pass=3/4 count=4
```

A boolean score passes or fails on its own value. A numeric score needs a `threshold` to be judged — without one it's averaged, and `pass=k/n` is left off.

> [tab] Python
>
> ```python theme={null}
> result = evaluate(name="weather", dataset=ds, task=task, scorers=[reports_temp])
> print(result.summary())
> ```

> [tab] TypeScript
>
> ```typescript theme={null}
> const result = await evaluate({ name: "weather", dataset: ds, task, scorers: [reportsTemp] });
> console.log(result.summary());
> ```

Token counts and cost aren't in the local summary — the platform prices them from the run's spans and shows them in the UI.

## Per-case results

> [tab] Python
>
> ```python theme={null}
> for item in result.results:
>     print(item.case_id, item.output, item.scores)
> ```

> [tab] TypeScript
>
> ```typescript theme={null}
> for (const item of result.itemResults) {
>   console.log(item.caseId, item.output, item.scores);
> }
> ```

Each item carries `case_id`, `input`, `output`, `expected`, `scores`, `trace_id`, `duration_ms`, and any `error` or `scorer_errors`. A case that hit an error is `errored`; use `case_status(item)` / `caseStatus(item)` to check.

The run also exposes counts (`case_count`, `errored`, `not_scored`), the `candidate_version` it was labelled with, `upload_state` with the run's `dashboard_url`, and `dataset` — the exact dataset version the run measured.

![Evaluation run results table with each case's input, output, expected value and scorer columns](https://mintcdn.com/tracerootai/TLv21OVXbJzkJk5L/images/eval_run_v1.png?fit=max\&auto=format\&n=TLv21OVXbJzkJk5L\&q=85\&s=d009c4f45f8bb55c6d695f71f69dab41)

Evaluation run: each case's input, output, expected answer and scores

## Upload later

Save a run and upload it afterwards, for when the run happens somewhere without credentials.

> [tab] Python
>
> ```python theme={null}
> from traceroot import EvalRunResult
>
> result.save("run.json")
>
> later = EvalRunResult.load("run.json")
> later.upload()
> ```

> [tab] TypeScript
>
> ```typescript theme={null}
> import { EvalRunResult } from "@traceroot-ai/traceroot";
>
> result.save("run.json");
>
> const later = EvalRunResult.load("run.json");
> await later.upload();
> ```

`upload()` rebuilds the reporting destination from the saved run, and keeps its scorers' thresholds — so a later upload records the same pass and fail results as the original run.

## Reading a run later

`EvalRunResult` is what the process that ran the eval holds. Once the run has reported, the [CLI](https://traceroot.ai/docs/evals/cli.md) reads it back from anywhere — including a run somebody else started.

```bash theme={null}
traceroot evals runs list --evaluation-id ev_…   # find the run id
traceroot evals runs get run_…                   # counts, per-scorer means, cost and duration
```

## Next steps

> [card] [From the Terminal](https://traceroot.ai/docs/evals/cli.md)
>
> Read datasets, evaluations, and past runs with the CLI.

> [card] [Running Evals](https://traceroot.ai/docs/evals/running-evals.md)
>
> Every option of `evaluate()`, and where a run reports.

> [card] [Datasets](https://traceroot.ai/docs/evals/datasets.md)
>
> Pull a dataset version to reproduce a past run.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.