Package io.modelcontextprotocol.spec
Record Class McpSchema.CompleteResult.CompleteCompletion
java.lang.Object
java.lang.Record
io.modelcontextprotocol.spec.McpSchema.CompleteResult.CompleteCompletion
- Record Components:
values- An array of completion values. Must not exceed 100 itemstotal- The total number of completion options available. This can exceed the number of values actually sent in the responsehasMore- Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown
- Enclosing class:
- McpSchema.CompleteResult
public static record McpSchema.CompleteResult.CompleteCompletion(List<String> values, Integer total, Boolean hasMore)
extends Record
The server's response to a completion/complete request
-
Constructor Summary
ConstructorsConstructorDescriptionCompleteCompletion(List<String> values, Integer total, Boolean hasMore) Creates an instance of aCompleteCompletionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hasMore()Returns the value of thehasMorerecord component.final StringtoString()Returns a string representation of this record class.total()Returns the value of thetotalrecord component.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
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). -
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-
total
Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
hasMore
Returns the value of thehasMorerecord component.- Returns:
- the value of the
hasMorerecord component
-