Evaluation Reports

In shortHow 10xGraph evaluation reports work, HTML dashboard, JSON output, JUnit XML for CI, ReporterConfig, and how to interpret results.

  • 7 min read
  • 10 sections
  • Updated
  • v1.0.0
  • Markdown

After every evaluation run, 10xGraph generates structured reports so you can understand what passed, what failed, and why. Reports are always generated by default, no flags required.


Report types

Format File Best for
HTML eval_reports/<id>_<timestamp>.html Human review, scorecard (written and opened by 10xgraph eval; opt-in with ReporterConfig(html=True) in the library)
JSON eval_reports/<id>_<timestamp>.json Programmatic analysis, dashboards; the file 10xgraph eval writes and the playground Evals page opens
JUnit XML eval_reports/<id>_<timestamp>_junit.xml CI systems (GitHub Actions test summary)
Console stdout Quick local feedback during development

HTML report

10xgraph eval writes a self-contained HTML scorecard next to the JSON report, and library code gets the same file with ReporterConfig(html=True). It is one file with no external requests, so it opens offline from disk. From top to bottom:

  • Verdict: “Gate passed” or “Gate failed”, with the pass rate against the gate. The gate is the --threshold value (for example “the gate is 62%”). Without a threshold the gate is every case (“the gate requires every case to pass”), which matches the exit code of 10xgraph eval. A report built outside the CLI has no recorded threshold and uses the same every-case wording.
  • Key numbers: pass rate, average score (the mean of all criterion scores), latency per case and tokens, each with its change from the previous report.
  • Regression line: cases that newly fail, newly pass, still fail, are new or were removed since the previous report.
  • Scorecard matrix: one row per case, one column per criterion. Each cell shows a mark and the score: a check for a pass, a half circle for a pass within 0.10 of the threshold, a cross for a fail, a dash when the criterion did not run. A corner mark flags cells that changed since the previous report. Filter by status, search cases, and sort by failures, lowest score, slowest, most tokens or changed first.
  • Case drawer: click a row (or press Enter on it) to see the input, expected and actual output or the simulation conversation, each criterion’s score against its threshold with the judge’s reasoning, tool calls, node order, trajectory and tokens. Use the arrow buttons or the down and up keys to move between cases and Esc to close. The URL fragment is the case id, so report.html#london_weather opens that case.
  • Run over run, cost and latency, run details: per-criterion score bars against the previous report, per-case duration and token bars, and collapsed token, criteria-per-file and configuration tables.

The page has light and dark themes (a toggle in the header), a phone layout and a print layout.

Comparison with the previous report

The report finds its own baseline: the most recent earlier JSON report with the same eval set id in the folder the HTML file is written to. The JSON file written by the current run is never used. If there is none, the page says so and shows no deltas. Keep the JSON reports in the same folder (the default eval_reports/ does this) to get comparisons. Durations recorded as 0.0s in older simulation reports cannot be compared, so the latency delta is shown as not comparable in that case.

Report content (model output, user input, tool results) is treated as untrusted: it is embedded as data, rendered as text, and a Content-Security-Policy in the file blocks scripts that do not come from the report itself.

Open it manually:

Terminal
open eval_reports/weather-agent-regression_20260519_142301.html

JSON report

The JSON report contains every piece of data from the run in a machine-readable format. 10xgraph eval writes it next to the HTML report. To view it in the playground: Evals > Open report file (file picker or drag and drop). The page can also download a Markdown report. You can consume it in post-processing scripts, ingest it into a metrics dashboard, or archive it for trend analysis.

Structure (simplified):

JSON
{
  "eval_set_id": "weather-agent",
  "eval_set_name": "Weather Agent Regression",
  "summary": {
    "total_cases": 5,
    "passed_cases": 4,
    "failed_cases": 1,
    "error_cases": 0,
    "pass_rate": 0.8,
    "criterion_stats": {
      "tool_trajectory_avg_score": {
        "total": 5, "passed": 5, "failed": 0,
        "avg_score": 1.0, "pass_rate": 1.0
      },
      "rouge_match": {
        "total": 5, "passed": 4, "failed": 1,
        "avg_score": 0.72, "pass_rate": 0.8
      }
    }
  },
  "results": [
    {
      "eval_id": "london_weather",
      "name": "London weather",
      "passed": true,
      "criterion_results": [
        {"criterion": "tool_trajectory_avg_score", "score": 1.0, "passed": true, "threshold": 1.0},
        {"criterion": "rouge_match", "score": 0.65, "passed": true, "threshold": 0.5}
      ],
      "actual_response": "The weather in London is sunny.",
      "actual_tool_calls": [{"name": "get_weather", "args": {"location": "London"}}]
    }
  ]
}

Note that criterion_results is a list, and per-criterion aggregates live under summary.criterion_stats keyed by criterion name.


JUnit XML report

JUnit XML output lets CI systems (GitHub Actions, Jenkins, GitLab CI) display eval results as structured test results, with pass/fail summaries, per-case details, and failure messages in the test tab.

Enable it via ReporterConfig:

Python
from tenxgraph.qa.evaluation import ReporterConfig, ReporterManager

manager = ReporterManager(
    ReporterConfig(
        output_dir="eval_reports",
        junit_xml=True,
        html=True,
        json_report=True,
    )
)
manager.run_all(report)

The 10xgraph eval command always writes only HTML and JSON (console off, JUnit not available as a flag). To get JUnit XML in CI, run your evaluation from a Python script or pytest and use ReporterManager as above. The file is written as <id>_<timestamp>_junit.xml.

GitHub Actions example that publishes JUnit XML produced by such a script:

YAML
- name: Run evaluations
  run: python run_evals.py

- name: Publish eval results
  uses: EnricoMi/publish-unit-test-result-action@v2
  if: always()
  with:
    files: eval_reports/*.xml

EvalReport object

When running programmatically, AgentEvaluator.evaluate() returns an EvalReport:

Python
from tenxgraph.qa.evaluation import AgentEvaluator, EvalPresets

evaluator = AgentEvaluator(app, collector, config=EvalPresets.tool_usage())
report = await evaluator.evaluate(eval_set)

Summary

Python
summary = report.summary

summary.total_cases            # int, total number of cases
summary.passed_cases           # int, cases where all criteria passed
summary.failed_cases           # int, cases that failed a criterion without erroring
summary.error_cases            # int, cases that raised during the run
summary.pass_rate              # float 0.0-1.0
summary.criterion_stats        # dict[str, dict], per-criterion aggregates
summary.total_duration_seconds # float
summary.total_token_usage      # TokenUsage, agent + judge tokens

Each entry in criterion_stats is keyed by the criterion’s reported name and holds total, passed, failed, avg_score and pass_rate:

Python
for name, stats in report.summary.criterion_stats.items():
    print(f"{name}: avg {stats['avg_score']:.2f}, {stats['passed']}/{stats['total']} passed")

The counting invariant is total_cases == passed_cases + failed_cases + error_cases, an errored case is counted in error_cases, never also in failed_cases.

Per-case results

criterion_results is a list of CriterionResult objects, not a dict:

Python
for result in report.results:
    print(result.eval_id, "PASS" if result.passed else "FAIL")

    for cr in result.criterion_results:
        print(f"  {cr.criterion}: {cr.score:.2f} ({'PASS' if cr.passed else 'FAIL'})")

    # Look one up by name
    traj = result.get_criterion_result("tool_trajectory_avg_score")

result.failed_criteria and result.passed_criteria are ready-made filters over the same list.

Python
from tenxgraph.qa.evaluation import print_report

print_report(report, verbose=False, use_color=True)

report.format_summary() returns the same kind of overview as a plain string if you would rather log it than print it.


ReporterConfig reference

ReporterConfig controls all automatic reporting. Pass it to ReporterManager when generating reports manually.

Python
from tenxgraph.qa.evaluation import ReporterConfig

config = ReporterConfig(
    enabled=True,
    output_dir="eval_reports",
    console=True,
    json_report=True,
    html=True,
    junit_xml=False,
    verbose=True,
    include_details=True,
    include_trajectory=True,
    include_node_responses=True,
    include_actual_response=True,
    include_tool_call_details=True,
    timestamp_files=True,
)
Field Default Description
enabled True Master switch, when False, no reporters run
output_dir eval_reports Directory for generated files
console True Print summary to stdout
json_report True Write JSON file
html True Write HTML file
junit_xml False Write JUnit XML file
verbose True Show all cases; when False, show only failures
include_details True Include per-criterion details in file reports
include_trajectory True Include tool call trajectory in JSON
include_node_responses True Include per-node intermediate data
include_actual_response True Include the agent’s final response
include_tool_call_details True Include tool arguments and results
timestamp_files True Append timestamp so runs do not overwrite each other

Running reporters manually

Python
from tenxgraph.qa.evaluation import ReporterManager, ReporterConfig

manager = ReporterManager(
    ReporterConfig(
        output_dir="my_reports",
        html=True,
        json_report=True,
        console=False,
        timestamp_files=True,
    )
)

output = manager.run_all(report)

if output.html_path:
    print(f"HTML: {output.html_path}")
if output.json_path:
    print(f"JSON: {output.json_path}")
if output.has_errors:
    for name, err in output.errors:
        print(f"Reporter error [{name}]: {err}")

Combined reports from multiple eval files

When 10xgraph eval produces more than one eval set (for example from several eval files), the results are merged into a single combined report with eval_set_id="combined_eval". If there is only one eval set, its own id is used.

If you run multiple files manually, merge them the same way:

Python
from tenxgraph.qa.evaluation import EvalReport

merged = EvalReport.create(
    eval_set_id="combined",
    results=[*report_a.results, *report_b.results],
    eval_set_name="Combined Evaluation",
)

EvalReport.create() recomputes summary from the results you pass in.


Interpreting results

Pass rate

A case passes only when all enabled criteria meet their thresholds. The pass rate is passed_cases / total_cases.

  • 1.0 (100%): every criterion passed for every case
  • < 1.0: at least one case has at least one criterion below threshold

The 10xgraph eval CLI exits with code 0 when the pass rate meets the gate and 1 otherwise. Without --threshold the gate is 1.0, so only a clean run passes. With --threshold 0.8, a run at 80% or more exits 0. The gate is recorded in the report metadata as pass_rate_threshold, with pass_rate_threshold_source set to threshold or default, and the HTML report shows it in its verdict.

Diagnosing failures

  1. Open the JSON report in the playground Evals page (or the HTML report that 10xgraph eval opens) and look at the matrix for the crosses and half circles, then open the case.
  2. Find which criterion scored lowest.
  3. If it is a trajectory criterion, the trajectory section shows which tool calls were expected vs actual.
  4. If it is an LLM criterion, the detail section shows the judge’s reasoning (when include_details=True).
  5. Adjust the eval set (add missing tool expectations), tighten the prompt, or revise the threshold.

Next steps

Last updated for v1.0.0Edit this page on GitHubReport an issue