Record Class ExperimentRunner.CaseResult

Object
Record
akka.javasdk.testkit.eval.ExperimentRunner.CaseResult
Record Components:
run - the run the attempt belongs to, from 1; always 1 without Experiment.repeat(int)
Enclosing class:
ExperimentRunner

public static record ExperimentRunner.CaseResult(String caseId, int run, Interaction interaction, List<Evaluator.EvalResult> evalResults) extends Record
One attempt: one case's evidence and results from one run.
  • Constructor Details

    • CaseResult

      public CaseResult(String caseId, int run, Interaction interaction, List<Evaluator.EvalResult> evalResults)
      Creates an instance of a CaseResult record class.
      Parameters:
      caseId - the value for the caseId record component
      run - the value for the run record component
      interaction - the value for the interaction record component
      evalResults - the value for the evalResults record component
    • CaseResult

      public CaseResult(String caseId, Interaction interaction, List<Evaluator.EvalResult> evalResults)
      An attempt of the first run.
  • Method Details

    • verdict

      public Evaluator.EvalResult.Verdict verdict()
      PASS when every result passed, FAIL when a result failed, INCONCLUSIVE when no result failed and a result is inconclusive or there is no result. A failed load of the recorded calls or a failed agent call is a failed result.
    • passed

      public boolean passed()
      Every result passed.
    • failed

      public boolean failed()
      A failed result.
    • inconclusive

      public boolean inconclusive()
      No failed result, and an inconclusive result or no result at all.
    • describe

      public String describe()
      The evidence and the results as text, for a failed test's output.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • caseId

      public String caseId()
      Returns the value of the caseId record component.
      Returns:
      the value of the caseId record component
    • run

      public int run()
      Returns the value of the run record component.
      Returns:
      the value of the run record component
    • interaction

      public Interaction interaction()
      Returns the value of the interaction record component.
      Returns:
      the value of the interaction record component
    • evalResults

      public List<Evaluator.EvalResult> evalResults()
      Returns the value of the evalResults record component.
      Returns:
      the value of the evalResults record component