pub struct ModeConfig {
pub temperature: f32,
pub max_tokens: usize,
pub system_prompt: String,
pub capabilities: Vec<Capability>,
pub constraints: ModeConstraints,
}Expand description
Configuration for a mode
Fields§
§temperature: f32Temperature for response generation
max_tokens: usizeMaximum tokens for response
system_prompt: StringSystem prompt for the mode
capabilities: Vec<Capability>Capabilities available in this mode
constraints: ModeConstraintsConstraints for this mode
Trait Implementations§
Source§impl Clone for ModeConfig
impl Clone for ModeConfig
Source§fn clone(&self) -> ModeConfig
fn clone(&self) -> ModeConfig
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 ModeConfig
impl Debug for ModeConfig
Source§impl<'de> Deserialize<'de> for ModeConfig
impl<'de> Deserialize<'de> for ModeConfig
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 ModeConfig
impl RefUnwindSafe for ModeConfig
impl Send for ModeConfig
impl Sync for ModeConfig
impl Unpin for ModeConfig
impl UnwindSafe for ModeConfig
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