Record Class ChoiceQuestion
java.lang.Object
java.lang.Record
io.agentscope.extensions.judge.jev.ChoiceQuestion
- All Implemented Interfaces:
Question
public record ChoiceQuestion(Object instructions, Map<String,Object> criteria)
extends Record
implements Question
A closed-set selection question.
The criteria map defines the legal options and their rubrics; the model returns one chosen option and a probability for every declared option.
-
Constructor Summary
ConstructorsConstructorDescriptionChoiceQuestion(Object instructions, Map<String, Object> criteria) Creates an instance of aChoiceQuestionrecord 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
-
ChoiceQuestion
Creates an instance of aChoiceQuestionrecord 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
-