Package dev.dokimos.mcp.store
Record Class RunRecord
java.lang.Object
java.lang.Record
dev.dokimos.mcp.store.RunRecord
- Record Components:
id- unique run identifiertimestamp- when the run completedexperimentName- name given to the experimentdatasetName- name of the dataset useddatasetPath- filesystem path to the datasetmodelConfig- model name, temperature, etc.passRate- overall pass rate (0.0 to 1.0)totalCount- number of examples evaluatedpassCount- number of passing examplesfailCount- number of failing examplesaverageScores- per evaluator average scoresitems- per example details
public record RunRecord(String id, Instant timestamp, String experimentName, String datasetName, String datasetPath, Map<String,Object> modelConfig, double passRate, int totalCount, int passCount, int failCount, Map<String,Double> averageScores, List<RunRecord.ItemDetail> items)
extends Record
Persistent record of a single evaluation run.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSingle evaluator result for one example.static final recordDetail for a single evaluated example. -
Constructor Summary
ConstructorsConstructorDescriptionRunRecord(String id, Instant timestamp, String experimentName, String datasetName, String datasetPath, Map<String, Object> modelConfig, double passRate, int totalCount, int passCount, int failCount, Map<String, Double> averageScores, List<RunRecord.ItemDetail> items) Creates an instance of aRunRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaverageScoresrecord component.Returns the value of thedatasetNamerecord component.Returns the value of thedatasetPathrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexperimentNamerecord component.intReturns the value of thefailCountrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.items()Returns the value of theitemsrecord component.Returns the value of themodelConfigrecord component.intReturns the value of thepassCountrecord component.doublepassRate()Returns the value of thepassRaterecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.
-
Constructor Details
-
RunRecord
public RunRecord(String id, Instant timestamp, String experimentName, String datasetName, String datasetPath, Map<String, Object> modelConfig, double passRate, int totalCount, int passCount, int failCount, Map<String, Double> averageScores, List<RunRecord.ItemDetail> items) Creates an instance of aRunRecordrecord class.- Parameters:
id- the value for theidrecord componenttimestamp- the value for thetimestamprecord componentexperimentName- the value for theexperimentNamerecord componentdatasetName- the value for thedatasetNamerecord componentdatasetPath- the value for thedatasetPathrecord componentmodelConfig- the value for themodelConfigrecord componentpassRate- the value for thepassRaterecord componenttotalCount- the value for thetotalCountrecord componentpassCount- the value for thepassCountrecord componentfailCount- the value for thefailCountrecord componentaverageScores- the value for theaverageScoresrecord componentitems- the value for theitemsrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
experimentName
Returns the value of theexperimentNamerecord component.- Returns:
- the value of the
experimentNamerecord component
-
datasetName
Returns the value of thedatasetNamerecord component.- Returns:
- the value of the
datasetNamerecord component
-
datasetPath
Returns the value of thedatasetPathrecord component.- Returns:
- the value of the
datasetPathrecord component
-
modelConfig
Returns the value of themodelConfigrecord component.- Returns:
- the value of the
modelConfigrecord component
-
passRate
public double passRate()Returns the value of thepassRaterecord component.- Returns:
- the value of the
passRaterecord component
-
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
passCount
public int passCount()Returns the value of thepassCountrecord component.- Returns:
- the value of the
passCountrecord component
-
failCount
public int failCount()Returns the value of thefailCountrecord component.- Returns:
- the value of the
failCountrecord component
-
averageScores
Returns the value of theaverageScoresrecord component.- Returns:
- the value of the
averageScoresrecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-