Package dev.dokimos.mcp.store
Record Class RunRecord.ItemDetail
java.lang.Object
java.lang.Record
dev.dokimos.mcp.store.RunRecord.ItemDetail
- Record Components:
input- the input queryexpectedOutput- the expected answeractualOutput- the model's answersuccess- whether all evaluators passedevaluations- per evaluator results
- Enclosing class:
RunRecord
public static record RunRecord.ItemDetail(String input, String expectedOutput, String actualOutput, boolean success, List<RunRecord.EvalDetail> evaluations)
extends Record
Detail for a single evaluated example.
-
Constructor Summary
ConstructorsConstructorDescriptionItemDetail(String input, String expectedOutput, String actualOutput, boolean success, List<RunRecord.EvalDetail> evaluations) Creates an instance of aItemDetailrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualOutputrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationsrecord component.Returns the value of theexpectedOutputrecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemDetail
public ItemDetail(String input, String expectedOutput, String actualOutput, boolean success, List<RunRecord.EvalDetail> evaluations) Creates an instance of aItemDetailrecord class.- Parameters:
input- the value for theinputrecord componentexpectedOutput- the value for theexpectedOutputrecord componentactualOutput- the value for theactualOutputrecord componentsuccess- the value for thesuccessrecord componentevaluations- the value for theevaluationsrecord component
-
-
Method Details
-
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 '=='. -
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
expectedOutput
Returns the value of theexpectedOutputrecord component.- Returns:
- the value of the
expectedOutputrecord component
-
actualOutput
Returns the value of theactualOutputrecord component.- Returns:
- the value of the
actualOutputrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
evaluations
Returns the value of theevaluationsrecord component.- Returns:
- the value of the
evaluationsrecord component
-