pub struct UserPreferences {
pub preferred_model_family: Option<String>,
pub cost_sensitivity: Option<f64>,
pub speed_preference: Option<f64>,
pub quality_preference: Option<f64>,
pub require_approval: Option<bool>,
pub max_cost_per_request: Option<f64>,
}Expand description
User preferences for sampling
Fields§
§preferred_model_family: Option<String>Preferred model family
cost_sensitivity: Option<f64>Cost sensitivity (0-1, higher = more cost sensitive)
speed_preference: Option<f64>Speed preference (0-1, higher = prefer faster)
quality_preference: Option<f64>Quality preference (0-1, higher = prefer higher quality)
require_approval: Option<bool>Whether to require human approval
max_cost_per_request: Option<f64>Maximum cost per request (in cents)
Trait Implementations§
Source§impl Clone for UserPreferences
impl Clone for UserPreferences
Source§fn clone(&self) -> UserPreferences
fn clone(&self) -> UserPreferences
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 UserPreferences
impl Debug for UserPreferences
Source§impl<'de> Deserialize<'de> for UserPreferences
impl<'de> Deserialize<'de> for UserPreferences
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserPreferences, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserPreferences, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UserPreferences
impl Serialize for UserPreferences
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UserPreferences
impl RefUnwindSafe for UserPreferences
impl Send for UserPreferences
impl Sync for UserPreferences
impl Unpin for UserPreferences
impl UnwindSafe for UserPreferences
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