public static class McpServerFeatures.AsyncCompletionSpecification
extends java.lang.Object
| 构造器和说明 |
|---|
AsyncCompletionSpecification(McpSchema.CompleteReference referenceKey,
java.util.function.BiFunction<McpAsyncServerExchange,McpSchema.CompleteRequest,reactor.core.publisher.Mono<McpSchema.CompleteResult>> completionHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.function.BiFunction<McpAsyncServerExchange,McpSchema.CompleteRequest,reactor.core.publisher.Mono<McpSchema.CompleteResult>> |
completionHandler() |
McpSchema.CompleteReference |
referenceKey() |
public AsyncCompletionSpecification(McpSchema.CompleteReference referenceKey, java.util.function.BiFunction<McpAsyncServerExchange,McpSchema.CompleteRequest,reactor.core.publisher.Mono<McpSchema.CompleteResult>> completionHandler)
referenceKey - The unique key representing the completion reference.completionHandler - The asynchronous function that processes completion
requests and returns results. The first argument is an
McpAsyncServerExchange used to interact with the client. The second
argument is a McpSchema.CompleteRequest.public McpSchema.CompleteReference referenceKey()
public java.util.function.BiFunction<McpAsyncServerExchange,McpSchema.CompleteRequest,reactor.core.publisher.Mono<McpSchema.CompleteResult>> completionHandler()