Record Class ScoreQuestion
java.lang.Object
java.lang.Record
io.agentscope.extensions.judge.jev.ScoreQuestion
- All Implemented Interfaces:
Question
public record ScoreQuestion(Object instructions, List<Object> criteria)
extends Record
implements Question
An ordered rubric question.
Each criteria entry describes one level. The answer contains a probability distribution over those levels and a probability-weighted score.
-
Constructor Summary
ConstructorsConstructorDescriptionScoreQuestion(Object instructions, List<Object> criteria) Creates an instance of aScoreQuestionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncriteria()Returns the value of thecriteriarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstructionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScoreQuestion
Creates an instance of aScoreQuestionrecord class.- Parameters:
instructions- the value for theinstructionsrecord componentcriteria- the value for thecriteriarecord 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). -
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
criteria
Returns the value of thecriteriarecord component.- Returns:
- the value of the
criteriarecord component
-