Package io.modelcontextprotocol.spec
Record Class McpSchema.ModelPreferences
java.lang.Object
java.lang.Record
io.modelcontextprotocol.spec.McpSchema.ModelPreferences
- Enclosing class:
- McpSchema
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionModelPreferences(List<McpSchema.ModelHint> hints, Double costPriority, Double speedPriority, Double intelligencePriority) Creates an instance of aModelPreferencesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns 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.hints()Returns the value of thehintsrecord component.Returns the value of theintelligencePriorityrecord component.Returns the value of thespeedPriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelPreferences
public ModelPreferences(List<McpSchema.ModelHint> hints, Double costPriority, Double speedPriority, Double intelligencePriority) Creates an instance of aModelPreferencesrecord class.- Parameters:
hints- the value for thehintsrecord componentcostPriority- the value for thecostPriorityrecord componentspeedPriority- the value for thespeedPriorityrecord componentintelligencePriority- the value for theintelligencePriorityrecord component
-
-
Method Details
-
builder
-
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). -
hints
Returns the value of thehintsrecord component.- Returns:
- the value of the
hintsrecord component
-
costPriority
Returns the value of thecostPriorityrecord component.- Returns:
- the value of the
costPriorityrecord component
-
speedPriority
Returns the value of thespeedPriorityrecord component.- Returns:
- the value of the
speedPriorityrecord component
-
intelligencePriority
Returns the value of theintelligencePriorityrecord component.- Returns:
- the value of the
intelligencePriorityrecord component
-