Package akka.javasdk.testkit.eval
Record Class ExperimentRunner.CaseResult
- Record Components:
run- the run the attempt belongs to, from 1; always 1 withoutExperiment.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 Summary
ConstructorsConstructorDescriptionCaseResult(String caseId, int run, Interaction interaction, List<Evaluator.EvalResult> evalResults) Creates an instance of aCaseResultrecord class.CaseResult(String caseId, Interaction interaction, List<Evaluator.EvalResult> evalResults) An attempt of the first run. -
Method Summary
Modifier and TypeMethodDescriptioncaseId()Returns the value of thecaseIdrecord component.describe()The evidence and the results as text, for a failed test's output.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevalResultsrecord component.booleanfailed()A failed result.final inthashCode()Returns a hash code value for this object.booleanNo failed result, and an inconclusive result or no result at all.Returns the value of theinteractionrecord component.booleanpassed()Every result passed.intrun()Returns the value of therunrecord component.final StringtoString()Returns a string representation of this record class.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.
-
Constructor Details
-
CaseResult
public CaseResult(String caseId, int run, Interaction interaction, List<Evaluator.EvalResult> evalResults) Creates an instance of aCaseResultrecord class.- Parameters:
caseId- the value for thecaseIdrecord componentrun- the value for therunrecord componentinteraction- the value for theinteractionrecord componentevalResults- the value for theevalResultsrecord component
-
CaseResult
An attempt of the first run.
-
-
Method Details
-
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
The evidence and the results as text, for a failed test's output. -
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
caseId
Returns the value of thecaseIdrecord component.- Returns:
- the value of the
caseIdrecord component
-
run
public int run()Returns the value of therunrecord component.- Returns:
- the value of the
runrecord component
-
interaction
Returns the value of theinteractionrecord component.- Returns:
- the value of the
interactionrecord component
-
evalResults
Returns the value of theevalResultsrecord component.- Returns:
- the value of the
evalResultsrecord component
-