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
abstract suspend fun createMessage(params: CreateMessageRequest.CreateMessageParams): CreateMessageResult
Called when a sampling/createMessage request arrives from the server and the client grants permission.