Record Class McpServerFeatures.SyncCompletionSpecification

java.lang.Object
java.lang.Record
io.modelcontextprotocol.server.McpServerFeatures.SyncCompletionSpecification
Record Components:
referenceKey - The unique key representing the completion reference.
completionHandler - The synchronous function that processes completion requests and returns results. The first argument is an McpSyncServerExchange used to interact with the client. The second argument is a McpSchema.CompleteRequest.
Enclosing class:
McpServerFeatures

public static record McpServerFeatures.SyncCompletionSpecification(McpSchema.CompleteReference referenceKey, BiFunction<McpSyncServerExchange,McpSchema.CompleteRequest,McpSchema.CompleteResult> completionHandler) extends Record
Specification of a completion handler function with synchronous execution support.