Record Class RunDetails

java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.RunDetails
Record Components:
pricedItemCount - items that carried a non-null cost, or null if not computed
tokenizedItemCount - items that carried a non-null prompt-token count, or null if not computed

public record RunDetails(UUID id, UUID experimentId, String experimentName, String projectName, RunStatus status, Map<String,Object> config, long totalItems, long passedItems, Double passRate, Instant startedAt, Instant completedAt, UUID datasetVersionId, Integer datasetVersion, Long totalTokensIn, Long totalTokensOut, Double totalCostUsd, Double avgLatencyMs, Long pricedItemCount, Long tokenizedItemCount, org.springframework.data.domain.Page<RunDetails.ItemSummary> items) extends Record
Detail view of a single run. The two coverage counts let the UI flag partial pricing: when pricedItemCount < tokenizedItemCount the summed totalCostUsd omits the unpriced items. Both are nullable and additive; older clients ignore them.
  • Constructor Details

    • RunDetails

      public RunDetails(UUID id, UUID experimentId, String experimentName, String projectName, RunStatus status, Map<String,Object> config, long totalItems, long passedItems, Double passRate, Instant startedAt, Instant completedAt, UUID datasetVersionId, Integer datasetVersion, Long totalTokensIn, Long totalTokensOut, Double totalCostUsd, Double avgLatencyMs, Long pricedItemCount, Long tokenizedItemCount, org.springframework.data.domain.Page<RunDetails.ItemSummary> items)
      Creates an instance of a RunDetails record class.
      Parameters:
      id - the value for the id record component
      experimentId - the value for the experimentId record component
      experimentName - the value for the experimentName record component
      projectName - the value for the projectName record component
      status - the value for the status record component
      config - the value for the config record component
      totalItems - the value for the totalItems record component
      passedItems - the value for the passedItems record component
      passRate - the value for the passRate record component
      startedAt - the value for the startedAt record component
      completedAt - the value for the completedAt record component
      datasetVersionId - the value for the datasetVersionId record component
      datasetVersion - the value for the datasetVersion record component
      totalTokensIn - the value for the totalTokensIn record component
      totalTokensOut - the value for the totalTokensOut record component
      totalCostUsd - the value for the totalCostUsd record component
      avgLatencyMs - the value for the avgLatencyMs record component
      pricedItemCount - the value for the pricedItemCount record component
      tokenizedItemCount - the value for the tokenizedItemCount 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 UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • experimentId

      public UUID experimentId()
      Returns the value of the experimentId record component.
      Returns:
      the value of the experimentId record component
    • experimentName

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

      public String projectName()
      Returns the value of the projectName record component.
      Returns:
      the value of the projectName record component
    • status

      public RunStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • config

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

      public long totalItems()
      Returns the value of the totalItems record component.
      Returns:
      the value of the totalItems record component
    • passedItems

      public long passedItems()
      Returns the value of the passedItems record component.
      Returns:
      the value of the passedItems record component
    • passRate

      public Double passRate()
      Returns the value of the passRate record component.
      Returns:
      the value of the passRate record component
    • startedAt

      public Instant startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • completedAt

      public Instant completedAt()
      Returns the value of the completedAt record component.
      Returns:
      the value of the completedAt record component
    • datasetVersionId

      public UUID datasetVersionId()
      Returns the value of the datasetVersionId record component.
      Returns:
      the value of the datasetVersionId record component
    • datasetVersion

      public Integer datasetVersion()
      Returns the value of the datasetVersion record component.
      Returns:
      the value of the datasetVersion record component
    • totalTokensIn

      public Long totalTokensIn()
      Returns the value of the totalTokensIn record component.
      Returns:
      the value of the totalTokensIn record component
    • totalTokensOut

      public Long totalTokensOut()
      Returns the value of the totalTokensOut record component.
      Returns:
      the value of the totalTokensOut record component
    • totalCostUsd

      public Double totalCostUsd()
      Returns the value of the totalCostUsd record component.
      Returns:
      the value of the totalCostUsd record component
    • avgLatencyMs

      public Double avgLatencyMs()
      Returns the value of the avgLatencyMs record component.
      Returns:
      the value of the avgLatencyMs record component
    • pricedItemCount

      public Long pricedItemCount()
      Returns the value of the pricedItemCount record component.
      Returns:
      the value of the pricedItemCount record component
    • tokenizedItemCount

      public Long tokenizedItemCount()
      Returns the value of the tokenizedItemCount record component.
      Returns:
      the value of the tokenizedItemCount record component
    • items

      public org.springframework.data.domain.Page<RunDetails.ItemSummary> items()
      Returns the value of the items record component.
      Returns:
      the value of the items record component