pub struct ModelInfo {
pub id: String,
pub name: String,
pub provider: String,
pub context_window: Option<u32>,
pub max_output_tokens: Option<u32>,
pub supports_tools: bool,
pub supports_vision: bool,
pub supports_streaming: bool,
}Fields§
§id: String§name: String§provider: String§context_window: Option<u32>§max_output_tokens: Option<u32>§supports_tools: bool§supports_vision: bool§supports_streaming: boolImplementations§
Source§impl ModelInfo
impl ModelInfo
pub fn new(id: impl Into<String>, provider: impl Into<String>) -> Self
pub fn with_name(self, name: impl Into<String>) -> Self
pub fn with_context_window(self, size: u32) -> Self
pub fn with_max_output_tokens(self, max: u32) -> Self
pub fn with_tools(self) -> Self
pub fn with_vision(self) -> Self
Trait Implementations§
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