The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Tool handler calls mcpServer.RequestSampling() to request LLM completions
Sampling requests are handled directly by the client's sampling handler
Client Side
MockSamplingHandler - Implements the SamplingHandler interface
NewInProcessClientWithSamplingHandler() - Creates client with sampling support
The handler receives sampling requests and returns mock LLM responses
Running the Example
go run main.go
Expected Output
Tool result: LLM Response (model: mock-llm-v1): Mock LLM response to: 'What is the capital of France?'
Real LLM Integration
To integrate with a real LLM service (OpenAI, Anthropic, etc.), replace the MockSamplingHandler with an implementation that calls your preferred LLM API. See the client sampling documentation for examples with real LLM providers.