Module sampling

Module sampling 

Source
Expand description

LLM sampling types (MCP 2025-06-18)

This module contains types for server-initiated LLM sampling, allowing servers to request LLM interactions from clients.

Structs§

CreateMessageRequest
Create message request (for LLM sampling)
CreateMessageResult
Create message result
ModelHint
Model hint for selection (MCP 2025-06-18 compliant)
ModelPreferences
Model preferences for sampling (MCP 2025-06-18 compliant)
SamplingMessage
Sampling message structure
UsageStats
Usage statistics for sampling

Enums§

IncludeContext
Include context options for sampling
StopReason
Stop reason for generation