public static class McpStatelessServerFeatures.AsyncToolSpecification
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
McpStatelessServerFeatures.AsyncToolSpecification.Builder
Builder for creating AsyncToolSpecification instances.
|
| 构造器和说明 |
|---|
AsyncToolSpecification(McpSchema.Tool tool,
java.util.function.BiFunction<McpTransportContext,McpSchema.CallToolRequest,reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
static McpStatelessServerFeatures.AsyncToolSpecification.Builder |
builder()
Creates a new builder instance.
|
java.util.function.BiFunction<McpTransportContext,McpSchema.CallToolRequest,reactor.core.publisher.Mono<McpSchema.CallToolResult>> |
callHandler() |
McpSchema.Tool |
tool() |
public AsyncToolSpecification(McpSchema.Tool tool, java.util.function.BiFunction<McpTransportContext,McpSchema.CallToolRequest,reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler)
tool - The tool definition including name, description, and parameter schemacallHandler - The function that implements the tool's logic, receiving a
McpSchema.CallToolRequest and returning the result.public McpSchema.Tool tool()
public java.util.function.BiFunction<McpTransportContext,McpSchema.CallToolRequest,reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler()
public static McpStatelessServerFeatures.AsyncToolSpecification.Builder builder()