mcp.schema.`package`.Sampling
See theSampling companion object
Provides a standardized way for servers to request LLM sampling ("completions" or "generations") from language models via clients. This flow allows clients to maintain control over model access, selection, and permissions while enabling servers to leverage AI capabilities—with no server API keys necessary. Servers can request text or image-based interactions and optionally include context from MCP servers in their prompts.
Attributes
- Companion
- object
- Source
- package.scala
- Graph
-
- Supertypes
Members list
In this article