Two minimal Eval() examples:
simple_eval.py— the smallest possible eval: hardcoded data, a regex task, a constant scorer.eval_example.py— a richer scorer that uses thetraceargument to fetch and inspect the spans recorded for each row (configuration, span hierarchy, inputs/outputs, metadata).
Install the standalone bt CLI and run from this directory:
export BRAINTRUST_API_KEY="YOUR_API_KEY" uv sync bt eval simple_eval.py bt eval eval_example.py
The second example is async, so the scorer prints span info to stdout as the eval runs.