public static class McpServerFeatures.AsyncToolSpecification
extends java.lang.Object
McpAsyncServerExchange
and a
McpSchema.CallToolRequest
and returning
results. The function's first argument is an McpAsyncServerExchange
upon
which the server can interact with the connected client. The second arguments is a
map of tool arguments.限定符和类型 | 类和说明 |
---|---|
static class |
McpServerFeatures.AsyncToolSpecification.Builder
Builder for creating AsyncToolSpecification instances.
|
构造器和说明 |
---|
AsyncToolSpecification(McpSchema.Tool tool,
java.util.function.BiFunction<McpAsyncServerExchange,java.util.Map<java.lang.String,java.lang.Object>,reactor.core.publisher.Mono<McpSchema.CallToolResult>> call)
已过时。
Use
AsyncToolSpecification(McpSchema.Tool, null,
BiFunction) instead. |
限定符和类型 | 方法和说明 |
---|---|
static McpServerFeatures.AsyncToolSpecification.Builder |
builder()
Creates a new builder instance.
|
@Deprecated public AsyncToolSpecification(McpSchema.Tool tool, java.util.function.BiFunction<McpAsyncServerExchange,java.util.Map<java.lang.String,java.lang.Object>,reactor.core.publisher.Mono<McpSchema.CallToolResult>> call)
AsyncToolSpecification(McpSchema.Tool, null,
BiFunction)
instead.public static McpServerFeatures.AsyncToolSpecification.Builder builder()