pub struct ModelInfo {
pub id: String,
pub display_name: String,
pub description: String,
pub capabilities: ModelCapabilities,
pub context_window: u32,
pub max_output_tokens: u32,
pub supported_effort_levels: Vec<EffortLevel>,
}Expand description
Model metadata and capabilities.
Fields§
§id: StringModel identifier.
display_name: StringHuman-readable name.
description: StringModel description.
capabilities: ModelCapabilitiesFeature support flags.
context_window: u32Max context tokens.
max_output_tokens: u32Max output tokens.
supported_effort_levels: Vec<EffortLevel>Supported reasoning levels.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelInfo
impl<'de> Deserialize<'de> for ModelInfo
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 ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin for ModelInfo
impl UnsafeUnpin for ModelInfo
impl UnwindSafe for ModelInfo
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