pub struct ModelOptions {
pub chat_model: Option<String>,
pub multimodal_model: Option<String>,
pub fallback_models: Vec<String>,
pub auto_discovery: bool,
}
Expand description
Model configuration options for explicit model selection
Fields§
§chat_model: Option<String>
§multimodal_model: Option<String>
§fallback_models: Vec<String>
§auto_discovery: bool
Implementations§
Source§impl ModelOptions
impl ModelOptions
Sourcepub fn with_chat_model(self, model: &str) -> Self
pub fn with_chat_model(self, model: &str) -> Self
Set chat model
Sourcepub fn with_multimodal_model(self, model: &str) -> Self
pub fn with_multimodal_model(self, model: &str) -> Self
Set multimodal model
Sourcepub fn with_fallback_models(self, models: Vec<&str>) -> Self
pub fn with_fallback_models(self, models: Vec<&str>) -> Self
Set fallback models
Sourcepub fn with_auto_discovery(self, enabled: bool) -> Self
pub fn with_auto_discovery(self, enabled: bool) -> Self
Enable or disable auto discovery
Trait Implementations§
Source§impl Clone for ModelOptions
impl Clone for ModelOptions
Source§fn clone(&self) -> ModelOptions
fn clone(&self) -> ModelOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ModelOptions
impl RefUnwindSafe for ModelOptions
impl Send for ModelOptions
impl Sync for ModelOptions
impl Unpin for ModelOptions
impl UnwindSafe for ModelOptions
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