> ## 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.

> ## Agent Instructions
> To set up traceroot in a repository, follow the setup prompt in https://traceroot.ai/docs/getting-started/coding-agents.md.

# Evaluate AI agents with datasets and scorers

> Inspect the trace for each test case and compare scores across runs.

An **evaluation** runs your system against a dataset of cases and scores each result.

In traceroot every case runs as its own trace, so you inspect an eval with the same span timeline, token, and cost views you already use for tracing. Each scorer emits a metric, and you read a run per metric — there is no single headline score.

The SDK is available in **Python** and **TypeScript**, with the same API in both.

## What you write

* A **dataset** — the cases to run, each with an `input` and an optional `expected` answer.
* A **task** — your system under evaluation, mapping an `input` to an `output`.
* One or more **scorers** — functions that turn a case's result into a metric.

Then `evaluate()` runs the task over every case, scores each result, and reports the run.

## Where to start

> [card] [Get Started](https://traceroot.ai/docs/evals/get-started.md)
>
> Author a dataset, write a scorer, and run your first eval.

> [card] [Datasets](https://traceroot.ai/docs/evals/datasets.md)
>
> Author, version, and publish the cases you run against.

> [card] [Scorers](https://traceroot.ai/docs/evals/scorers.md)
>
> Code scorers and LLM-as-a-judge.

> [card] [Running Evals](https://traceroot.ai/docs/evals/running-evals.md)
>
> `evaluate()` — the task, the scorers, and where a run reports.

> [card] [Reading Results](https://traceroot.ai/docs/evals/reading-results.md)
>
> Per-metric summaries and per-case results.

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


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