Record Class ReviewQueueItem

java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.ReviewQueueItem
Record Components:
itemId - the item result id, used to write an annotation back
runId - the run the item belongs to
experimentId - the experiment the run belongs to
experimentName - the experiment name
projectName - the project name
input - the item input
expectedOutput - the expected output, if any
actualOutput - the produced output
evalResults - the automated eval results for the item
currentVerdict - the existing verdict when the item was previously marked UNSURE, else null for a never-annotated item
createdAt - when the item result was recorded

public record ReviewQueueItem(UUID itemId, UUID runId, UUID experimentId, String experimentName, String projectName, Map<String,Object> input, Map<String,Object> expectedOutput, Map<String,Object> actualOutput, List<RunDetails.EvalSummary> evalResults, AnnotationVerdict currentVerdict, Instant createdAt) extends Record
A run item surfaced in the review queue because it still needs a human verdict, carrying enough run, experiment, and project context for a reviewer to act on it without opening the run first.
  • Constructor Details

  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • itemId

      public UUID itemId()
      Returns the value of the itemId record component.
      Returns:
      the value of the itemId record component
    • runId

      public UUID runId()
      Returns the value of the runId record component.
      Returns:
      the value of the runId 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
    • input

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

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

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

      public List<RunDetails.EvalSummary> evalResults()
      Returns the value of the evalResults record component.
      Returns:
      the value of the evalResults record component
    • currentVerdict

      public AnnotationVerdict currentVerdict()
      Returns the value of the currentVerdict record component.
      Returns:
      the value of the currentVerdict record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component