Record Class JevModelRouterMiddleware.ModelChoice
java.lang.Object
java.lang.Record
io.agentscope.extensions.judge.jev.example.JevModelRouterMiddleware.ModelChoice
- Enclosing class:
- JevModelRouterMiddleware
public static record JevModelRouterMiddleware.ModelChoice(io.agentscope.core.model.Model model, String criteria)
extends Record
A model candidate and the routing criteria sent to Jev.
-
Constructor Summary
ConstructorsConstructorDescriptionModelChoice(io.agentscope.core.model.Model model, String criteria) Creates an instance of aModelChoicerecord 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.io.agentscope.core.model.Modelmodel()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelChoice
Creates an instance of aModelChoicerecord class.- Parameters:
model- the value for themodelrecord 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). -
model
public io.agentscope.core.model.Model model()Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
criteria
Returns the value of thecriteriarecord component.- Returns:
- the value of the
criteriarecord component
-