Interface ExperimentRunner.EvalReport

Enclosing class:
ExperimentRunner

public static interface ExperimentRunner.EvalReport
The batch outcome: the attempts, the cases over their runs, and the gate's verdict.
  • Method Summary

    Modifier and Type
    Method
    Description
    One summary per case, in the order the cases were given, with its outcome over all runs.
    The report as data, for tools that collect runs or render their own reports.
    The name given with Experiment.name(java.lang.String), or the test method that ran the experiment, for example SupportAgentEvalTest.qualityGate.
    boolean
    Whether the gate passed.
    double
    The share of attempts that passed.
    The run as text: the gate verdict, rates per evaluator, the requirements that passed in some runs and failed in others, and the attempts that did not pass with their evidence.
    The file Experiment.run() wrote the report to: <name>-<start time>.json in the report directory, for example SupportAgentEvalTest.qualityGate-20261001-101530-123.json, holding document() as JSON.
    One result per attempt: every case in the order the cases were given, its runs ascending.
    int
    How many times every case ran, see Experiment.repeat(int).
  • Method Details

    • name

      String name()
      The name given with Experiment.name(java.lang.String), or the test method that ran the experiment, for example SupportAgentEvalTest.qualityGate.
    • runs

      int runs()
      How many times every case ran, see Experiment.repeat(int).
    • reportFile

      Optional<Path> reportFile()
      The file Experiment.run() wrote the report to: <name>-<start time>.json in the report directory, for example SupportAgentEvalTest.qualityGate-20261001-101530-123.json, holding document() as JSON. Empty when the experiment was run Experiment.withoutReportFile() or the file could not be written.
    • document

      ReportDocument document()
      The report as data, for tools that collect runs or render their own reports. This is what reportFile() holds, and what ReportDocument.read(java.nio.file.Path) gives back.
    • passed

      boolean passed()
      Whether the gate passed.
    • passRate

      double passRate()
      The share of attempts that passed. An inconclusive attempt counts against the rate.
    • results

      One result per attempt: every case in the order the cases were given, its runs ascending. One result per case without Experiment.repeat(int).
    • cases

      One summary per case, in the order the cases were given, with its outcome over all runs.
    • render

      String render()
      The run as text: the gate verdict, rates per evaluator, the requirements that passed in some runs and failed in others, and the attempts that did not pass with their evidence.