Package dev.tachyonmcp.api.runtime
Interface SamplingService
- All Known Implementing Classes:
WireClientContext
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@ExperimentalApi
@FunctionalInterface
@Deprecated(forRemoval=false)
public interface SamplingService
Deprecated.
SEP-2577 explicitly deprecates sampling.
Requests an LLM completion from the client (
sampling/createMessage).
Sampling was deprecated in MCP protocol version 2026-07-28 (SEP-2577) and may be removed from
a future protocol revision. Request and response are kept as raw Args rather than a
per-field domain model, since the wire shape isn't a stable long-term contract to model against.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateMessage(Args params) Deprecated.Sends asampling/createMessagerequest to the client and returns a future completed with the raw result.
-
Method Details
-
createMessage
Deprecated.Sends asampling/createMessagerequest to the client and returns a future completed with the raw result.- Parameters:
params- the request parameters, matchingCreateMessageRequestParams- Returns:
- a future that completes with the client's result
-