Class SamplingCapability
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents the capability for a client to generate text or other content using an AI model.
public sealed class SamplingCapability
- Inheritance
-
SamplingCapability
- Inherited Members
Remarks
This capability enables the MCP client to respond to sampling requests from an MCP server.
When this capability is enabled, an MCP server can request the client to generate content using an AI model. The client must set a SamplingHandler to process these requests.
This class is intentionally empty as the Model Context Protocol specification does not currently define additional properties for sampling capabilities. Future versions of the specification may extend this capability with additional configuration options.