Sampling
Sampling allows MCP tools to request LLM completions during their execution.
Configuration
To enable sampling, provide asampling_callback
function when initializing the MCPClient:
Enable LLM sampling capabilities for MCP tools
sampling_callback
function when initializing the MCPClient: