| Package | Description |
|---|---|
| io.modelcontextprotocol.client | |
| io.modelcontextprotocol.server | |
| io.modelcontextprotocol.spec |
| Modifier and Type | Method and Description |
|---|---|
McpClient.SyncSpec |
McpClient.SyncSpec.sampling(Function<McpSchema.CreateMessageRequest,McpSchema.CreateMessageResult> samplingHandler)
Sets a custom sampling handler for processing message creation requests.
|
McpClient.AsyncSpec |
McpClient.AsyncSpec.sampling(Function<McpSchema.CreateMessageRequest,reactor.core.publisher.Mono<McpSchema.CreateMessageResult>> samplingHandler)
Sets a custom sampling handler for processing message creation requests.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<McpSchema.CreateMessageResult> |
McpAsyncServerExchange.createMessage(McpSchema.CreateMessageRequest createMessageRequest)
Create a new message using the sampling capabilities of the client.
|
McpSchema.CreateMessageResult |
McpSyncServerExchange.createMessage(McpSchema.CreateMessageRequest createMessageRequest)
Create a new message using the sampling capabilities of the client.
|
| Modifier and Type | Method and Description |
|---|---|
McpSchema.CreateMessageRequest |
McpSchema.CreateMessageRequest.Builder.build() |
Copyright © 2025. All rights reserved.