pub struct SamplingModelPreferences {
pub hints: Vec<SamplingModelHint>,
}Expand description
Model selection hints from the MCP server for a sampling request.
The server may suggest preferred models via hints; the client is free to
ignore these or use them as ordering hints when multiple models are available.
Fields§
§hints: Vec<SamplingModelHint>Trait Implementations§
Source§impl Clone for SamplingModelPreferences
impl Clone for SamplingModelPreferences
Source§fn clone(&self) -> SamplingModelPreferences
fn clone(&self) -> SamplingModelPreferences
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SamplingModelPreferences
impl Debug for SamplingModelPreferences
Source§impl<'de> Deserialize<'de> for SamplingModelPreferences
impl<'de> Deserialize<'de> for SamplingModelPreferences
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SamplingModelPreferences
impl RefUnwindSafe for SamplingModelPreferences
impl Send for SamplingModelPreferences
impl Sync for SamplingModelPreferences
impl Unpin for SamplingModelPreferences
impl UnsafeUnpin for SamplingModelPreferences
impl UnwindSafe for SamplingModelPreferences
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more