pub struct ModeConfig {
pub disable: Option<bool>,
pub model: Option<String>,
pub prompt: Option<String>,
pub temperature: Option<f64>,
pub tools: Option<HashMap<String, bool>>,
}Expand description
Configuration for an operational mode (shared base for agents/modes).
Fields§
§disable: Option<bool>Whether this mode is disabled.
model: Option<String>Optional model override for this mode.
prompt: Option<String>Optional system prompt override.
temperature: Option<f64>Optional temperature override.
tools: Option<HashMap<String, bool>>Map of tool names to their enabled state.
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 Default for ModeConfig
impl Default for ModeConfig
Source§fn default() -> ModeConfig
fn default() -> ModeConfig
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for ModeConfig
impl PartialEq for ModeConfig
Source§impl Serialize for ModeConfig
impl Serialize for ModeConfig
impl StructuralPartialEq for ModeConfig
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