pub struct CreateMessageRequest {
pub method: SamplingCreateMessageMethod,
pub params: CreateMessageRequestParams,
}Deprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
Expand description
A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.
Fields§
§method: SamplingCreateMessageMethodDeprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
params: CreateMessageRequestParamsDeprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
Implementations§
Source§impl CreateMessageRequest
impl CreateMessageRequest
Sourcepub fn new(params: CreateMessageRequestParams) -> CreateMessageRequest
pub fn new(params: CreateMessageRequestParams) -> CreateMessageRequest
Creates a value from its required fields; optional fields are None.
Trait Implementations§
Source§impl Clone for CreateMessageRequest
impl Clone for CreateMessageRequest
Source§fn clone(&self) -> CreateMessageRequest
fn clone(&self) -> CreateMessageRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more