pub struct ModelPreferences {
pub speed_priority: Option<f64>,
pub intelligence_priority: Option<f64>,
pub cost_priority: Option<f64>,
pub hints: Vec<ModelHint>,
}Expand description
Preferences for model selection during sampling
Fields§
§speed_priority: Option<f64>Priority for response speed (0.0 to 1.0)
intelligence_priority: Option<f64>Priority for model intelligence/capability (0.0 to 1.0)
cost_priority: Option<f64>Priority for cost efficiency (0.0 to 1.0)
hints: Vec<ModelHint>Hints for model selection
Implementations§
Source§impl ModelPreferences
impl ModelPreferences
Sourcepub fn intelligence(self, priority: f64) -> Self
pub fn intelligence(self, priority: f64) -> Self
Set intelligence priority (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for ModelPreferences
impl Clone for ModelPreferences
Source§fn clone(&self) -> ModelPreferences
fn clone(&self) -> ModelPreferences
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 moreSource§impl Debug for ModelPreferences
impl Debug for ModelPreferences
Source§impl Default for ModelPreferences
impl Default for ModelPreferences
Source§fn default() -> ModelPreferences
fn default() -> ModelPreferences
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelPreferences
impl<'de> Deserialize<'de> for ModelPreferences
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 ModelPreferences
impl RefUnwindSafe for ModelPreferences
impl Send for ModelPreferences
impl Sync for ModelPreferences
impl Unpin for ModelPreferences
impl UnwindSafe for ModelPreferences
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