pub struct ModelInfo {
pub name: &'static str,
pub provider: ProviderKind,
pub context_window: u32,
pub supports_tools: bool,
pub supports_vision: bool,
pub cost_per_million_input: Option<f64>,
pub cost_per_million_output: Option<f64>,
}Expand description
Information about a known LLM model.
Fields§
§name: &'static strModel identifier (e.g., “gpt-4o”, “claude-sonnet-4”).
provider: ProviderKindWhich provider this model belongs to.
context_window: u32Context window size in tokens.
supports_tools: boolWhether this model supports tool/function calling.
supports_vision: boolWhether this model supports vision/image inputs.
cost_per_million_input: Option<f64>Cost per million input tokens in USD (None if unknown).
cost_per_million_output: Option<f64>Cost per million output tokens in USD (None if unknown).
Implementations§
Trait Implementations§
impl Copy for ModelInfo
impl StructuralPartialEq for ModelInfo
Auto Trait Implementations§
impl Freeze for ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin 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