pub trait HasSamplingContext {
// Required method
fn messages(&self) -> &[SamplingMessage];
// Provided methods
fn system_prompt(&self) -> Option<&str> { ... }
fn include_context(&self) -> Option<&str> { ... }
}
Expand description
Trait for sampling context (from CreateMessageRequest spec)
Required Methods§
Sourcefn messages(&self) -> &[SamplingMessage]
fn messages(&self) -> &[SamplingMessage]
Messages for context (required from spec)
Provided Methods§
Sourcefn system_prompt(&self) -> Option<&str>
fn system_prompt(&self) -> Option<&str>
System prompt (optional from spec)
Sourcefn include_context(&self) -> Option<&str>
fn include_context(&self) -> Option<&str>
Include context setting (optional from spec)