Record Class RunRecord

java.lang.Object
java.lang.Record
dev.dokimos.mcp.store.RunRecord
Record Components:
id - unique run identifier
timestamp - when the run completed
experimentName - name given to the experiment
datasetName - name of the dataset used
datasetPath - filesystem path to the dataset
modelConfig - model name, temperature, etc.
passRate - overall pass rate (0.0 to 1.0)
totalCount - number of examples evaluated
passCount - number of passing examples
failCount - number of failing examples
averageScores - per evaluator average scores
items - 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.
  • 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 a RunRecord record class.
      Parameters:
      id - the value for the id record component
      timestamp - the value for the timestamp record component
      experimentName - the value for the experimentName record component
      datasetName - the value for the datasetName record component
      datasetPath - the value for the datasetPath record component
      modelConfig - the value for the modelConfig record component
      passRate - the value for the passRate record component
      totalCount - the value for the totalCount record component
      passCount - the value for the passCount record component
      failCount - the value for the failCount record component
      averageScores - the value for the averageScores record component
      items - the value for the items record component
  • Method Details

    • 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • timestamp

      public Instant timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • experimentName

      public String experimentName()
      Returns the value of the experimentName record component.
      Returns:
      the value of the experimentName record component
    • datasetName

      public String datasetName()
      Returns the value of the datasetName record component.
      Returns:
      the value of the datasetName record component
    • datasetPath

      public String datasetPath()
      Returns the value of the datasetPath record component.
      Returns:
      the value of the datasetPath record component
    • modelConfig

      public Map<String,Object> modelConfig()
      Returns the value of the modelConfig record component.
      Returns:
      the value of the modelConfig record component
    • passRate

      public double passRate()
      Returns the value of the passRate record component.
      Returns:
      the value of the passRate record component
    • totalCount

      public int totalCount()
      Returns the value of the totalCount record component.
      Returns:
      the value of the totalCount record component
    • passCount

      public int passCount()
      Returns the value of the passCount record component.
      Returns:
      the value of the passCount record component
    • failCount

      public int failCount()
      Returns the value of the failCount record component.
      Returns:
      the value of the failCount record component
    • averageScores

      public Map<String,Double> averageScores()
      Returns the value of the averageScores record component.
      Returns:
      the value of the averageScores record component
    • items

      public List<RunRecord.ItemDetail> items()
      Returns the value of the items record component.
      Returns:
      the value of the items record component