Package akka.javasdk.testkit.eval
Record Class ExperimentRunner.RequirementSummary
- Record Components:
caseId- the caseindex- the position of the result in the attempt, from 0evaluator- the evaluator labelpassedIn- the runs with the verdict PASS, ascendingfailedIn- the runs with the verdict FAIL, ascendinginconclusiveIn- the runs with the verdict INCONCLUSIVE, ascending
- Enclosing class:
ExperimentRunner
public static record ExperimentRunner.RequirementSummary(String caseId, int index, String evaluator, List<Integer> passedIn, List<Integer> failedIn, List<Integer> inconclusiveIn)
extends Record
One requirement of a case over all runs: one evaluator at one position in the results of the
case's attempts. Two requirements of a case may carry the same label, for example two
Evaluators.shouldCallToolWith(java.lang.String, java.lang.String, java.lang.Object) expectations. The runner's Evaluators.TARGET and Evaluators.SETUP results are requirements too, with no run passed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseId()Returns the value of thecaseIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorrecord component.failedIn()Returns the value of thefailedInrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinconclusiveInrecord component.intindex()Returns the value of theindexrecord component.outcome()The outcome over the runs where the requirement was conclusive.passedIn()Returns the value of thepassedInrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequirementSummary
public RequirementSummary(String caseId, int index, String evaluator, List<Integer> passedIn, List<Integer> failedIn, List<Integer> inconclusiveIn) Creates an instance of aRequirementSummaryrecord class.- Parameters:
caseId- the value for thecaseIdrecord componentindex- the value for theindexrecord componentevaluator- the value for theevaluatorrecord componentpassedIn- the value for thepassedInrecord componentfailedIn- the value for thefailedInrecord componentinconclusiveIn- the value for theinconclusiveInrecord component
-
-
Method Details
-
outcome
The outcome over the runs where the requirement was conclusive. -
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
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
evaluator
Returns the value of theevaluatorrecord component.- Returns:
- the value of the
evaluatorrecord component
-
passedIn
Returns the value of thepassedInrecord component.- Returns:
- the value of the
passedInrecord component
-
failedIn
Returns the value of thefailedInrecord component.- Returns:
- the value of the
failedInrecord component
-
inconclusiveIn
Returns the value of theinconclusiveInrecord component.- Returns:
- the value of the
inconclusiveInrecord component
-