Package io.quarkiverse.mcp.server
Interface Sampling
public interface Sampling
If an MCP client supports the "sampling" capability, then the server can request LLM sampling from
language models.
- See Also:
-
Method Summary
-
Method Details
-
isSupported
boolean isSupported()- Returns:
trueif the client supports the "sampling" capability,falseotherwise- See Also:
-
requestBuilder
SamplingRequest.Builder requestBuilder()- Returns:
- a new sampling request builder
- Throws:
IllegalStateException- if the client does not support the "sampling" capability
-