SamplingProvider

fun interface SamplingProvider

A pluggable interface for how the client handles a sampling/createMessage request. Providing model selection, LLM-calling logic, and ultimately returning a CreateMessageResult.

Functions

Link copied to clipboard

Called when a sampling/createMessage request arrives from the server and the client grants permission.