pub struct ModelHint {
pub name: Option<String>,
}
Expand description
Model hint for model selection (2025-06-18)
Fields§
§name: Option<String>
A hint for a model name.
The client SHOULD treat this as a substring of a model name; for example:
claude-3-5-sonnet
should matchclaude-3-5-sonnet-20241022
sonnet
should matchclaude-3-5-sonnet-20241022
,claude-3-sonnet-20240229
, etc.claude
should match any Claude model
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelHint
impl<'de> Deserialize<'de> for ModelHint
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
impl StructuralPartialEq for ModelHint
Auto Trait Implementations§
impl Freeze for ModelHint
impl RefUnwindSafe for ModelHint
impl Send for ModelHint
impl Sync for ModelHint
impl Unpin for ModelHint
impl UnwindSafe for ModelHint
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