Record Class JevModelRouterMiddleware.RoutingDecision
java.lang.Object
java.lang.Record
io.agentscope.extensions.judge.jev.example.JevModelRouterMiddleware.RoutingDecision
- Enclosing class:
- JevModelRouterMiddleware
public static record JevModelRouterMiddleware.RoutingDecision(io.agentscope.core.model.Model model, Map<String,Double> probabilities, Double confidence)
extends Record
The selected model and the calibrated values returned by Jev.
-
Constructor Summary
ConstructorsConstructorDescriptionRoutingDecision(io.agentscope.core.model.Model model, Map<String, Double> probabilities, Double confidence) Creates an instance of aRoutingDecisionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfidencerecord 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.Returns the value of theprobabilitiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RoutingDecision
public RoutingDecision(io.agentscope.core.model.Model model, Map<String, Double> probabilities, Double confidence) Creates an instance of aRoutingDecisionrecord class.- Parameters:
model- the value for themodelrecord componentprobabilities- the value for theprobabilitiesrecord componentconfidence- the value for theconfidencerecord 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
-
probabilities
Returns the value of theprobabilitiesrecord component.- Returns:
- the value of the
probabilitiesrecord component
-
confidence
Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-