Package com.tnsai.mcp.model
Class CompletionResponse
java.lang.Object
com.tnsai.mcp.model.CompletionResponse
Response from auto-completion request in MCP.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTotal()Gets the total number of available completions.Gets the list of completion values.booleanhasMore()Checks if there are more completions available.voidsetCompletion(CompletionResponse.Completion completion) toString()
-
Constructor Details
-
CompletionResponse
public CompletionResponse()
-
-
Method Details
-
getCompletion
-
setCompletion
-
getValues
Gets the list of completion values.- Returns:
- list of completion strings
-
getTotal
Gets the total number of available completions.- Returns:
- total count, or null if unknown
-
hasMore
public boolean hasMore()Checks if there are more completions available.- Returns:
- true if more completions exist
-
toString
-