public static class McpStatelessServerFeatures.AsyncCompletionSpecification
extends java.lang.Object
| 构造器和说明 |
|---|
AsyncCompletionSpecification(McpSchema.CompleteReference referenceKey,
java.util.function.BiFunction<McpTransportContext,McpSchema.CompleteRequest,reactor.core.publisher.Mono<McpSchema.CompleteResult>> completionHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.function.BiFunction<McpTransportContext,McpSchema.CompleteRequest,reactor.core.publisher.Mono<McpSchema.CompleteResult>> |
completionHandler() |
McpSchema.CompleteReference |
referenceKey() |
public AsyncCompletionSpecification(McpSchema.CompleteReference referenceKey, java.util.function.BiFunction<McpTransportContext,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 function's argument is a
McpSchema.CompleteRequest.public McpSchema.CompleteReference referenceKey()
public java.util.function.BiFunction<McpTransportContext,McpSchema.CompleteRequest,reactor.core.publisher.Mono<McpSchema.CompleteResult>> completionHandler()