Package io.quarkiverse.mcp.server
Record Class ModelPreferences
java.lang.Object
java.lang.Record
io.quarkiverse.mcp.server.ModelPreferences
- Record Components:
costPriority-modelHints-intelligencePriority-speedPriority-
public record ModelPreferences(BigDecimal costPriority, List<ModelHint> modelHints, BigDecimal intelligencePriority, BigDecimal speedPriority)
extends Record
The preferences for model selection.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModelPreferences(BigDecimal costPriority, List<ModelHint> modelHints, BigDecimal intelligencePriority, BigDecimal speedPriority) Creates an instance of aModelPreferencesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecostPriorityrecord 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 theintelligencePriorityrecord component.Returns the value of themodelHintsrecord component.Returns the value of thespeedPriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelPreferences
public ModelPreferences(BigDecimal costPriority, List<ModelHint> modelHints, BigDecimal intelligencePriority, BigDecimal speedPriority) Creates an instance of aModelPreferencesrecord class.- Parameters:
costPriority- the value for thecostPriorityrecord componentmodelHints- the value for themodelHintsrecord componentintelligencePriority- the value for theintelligencePriorityrecord componentspeedPriority- the value for thespeedPriorityrecord 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). -
costPriority
Returns the value of thecostPriorityrecord component.- Returns:
- the value of the
costPriorityrecord component
-
modelHints
Returns the value of themodelHintsrecord component.- Returns:
- the value of the
modelHintsrecord component
-
intelligencePriority
Returns the value of theintelligencePriorityrecord component.- Returns:
- the value of the
intelligencePriorityrecord component
-
speedPriority
Returns the value of thespeedPriorityrecord component.- Returns:
- the value of the
speedPriorityrecord component
-