ExAgent.Eval.Report (ExAgent v2.3.0)

View Source

The results of ExAgent.Eval.run/3 and their summary.

summary holds runs, passed, pass_rate, errors, per-evaluator evaluators (%{name => %{mean, pass_rate}}, skips excluded), per-case cases (%{name => pass_rate}), latency duration_ms (p50, p95, max), token and request totals (failed runs included), and cost_cents (nil unless every run reported a cost).

Summary

Functions

Compare a candidate report with a baseline: cases whose pass rate dropped (regressed) or rose (improved), cases only in the candidate (added) or only in the baseline (removed), and the change in overall pass rate.

A plain-text summary and the failed runs, for a console or CI log.

Types

t()

@type t() :: %ExAgent.Eval.Report{results: [ExAgent.Eval.Result.t()], summary: map()}

Functions

compare(report1, report2)

@spec compare(t(), t()) :: %{
  regressed: [{String.t(), float(), float()}],
  improved: [{String.t(), float(), float()}],
  added: [String.t()],
  removed: [String.t()],
  pass_rate_delta: float()
}

Compare a candidate report with a baseline: cases whose pass rate dropped (regressed) or rose (improved), cases only in the candidate (added) or only in the baseline (removed), and the change in overall pass rate.

format(report)

@spec format(t()) :: String.t()

A plain-text summary and the failed runs, for a console or CI log.