Package dev.dokimos.server.dto.v1
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 backrunId- the run the item belongs toexperimentId- the experiment the run belongs toexperimentName- the experiment nameprojectName- the project nameinput- the item inputexpectedOutput- the expected output, if anyactualOutput- the produced outputevalResults- the automated eval results for the itemcurrentVerdict- the existing verdict when the item was previously markedUNSURE, else null for a never-annotated itemcreatedAt- 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 Summary
ConstructorsConstructorDescriptionReviewQueueItem(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) Creates an instance of aReviewQueueItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualOutputrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thecurrentVerdictrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevalResultsrecord component.Returns the value of theexpectedOutputrecord component.Returns the value of theexperimentIdrecord component.Returns the value of theexperimentNamerecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.itemId()Returns the value of theitemIdrecord component.Returns the value of theprojectNamerecord component.runId()Returns the value of therunIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReviewQueueItem
public 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) Creates an instance of aReviewQueueItemrecord class.- Parameters:
itemId- the value for theitemIdrecord componentrunId- the value for therunIdrecord componentexperimentId- the value for theexperimentIdrecord componentexperimentName- the value for theexperimentNamerecord componentprojectName- the value for theprojectNamerecord componentinput- the value for theinputrecord componentexpectedOutput- the value for theexpectedOutputrecord componentactualOutput- the value for theactualOutputrecord componentevalResults- the value for theevalResultsrecord componentcurrentVerdict- the value for thecurrentVerdictrecord componentcreatedAt- the value for thecreatedAtrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
itemId
Returns the value of theitemIdrecord component.- Returns:
- the value of the
itemIdrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
experimentId
Returns the value of theexperimentIdrecord component.- Returns:
- the value of the
experimentIdrecord component
-
experimentName
Returns the value of theexperimentNamerecord component.- Returns:
- the value of the
experimentNamerecord component
-
projectName
Returns the value of theprojectNamerecord component.- Returns:
- the value of the
projectNamerecord component
-
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
-
evalResults
Returns the value of theevalResultsrecord component.- Returns:
- the value of the
evalResultsrecord component
-
currentVerdict
Returns the value of thecurrentVerdictrecord component.- Returns:
- the value of the
currentVerdictrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-