pub struct Mode {
pub name: String,
pub tools: HashMap<String, bool>,
pub model: Option<ModeModel>,
pub prompt: Option<String>,
pub temperature: Option<f64>,
}Expand description
An operational mode with associated tools and optional model override.
Fields§
§name: StringHuman-readable mode name.
tools: HashMap<String, bool>Map of tool names to their enabled state.
model: Option<ModeModel>Optional model override for this mode.
prompt: Option<String>Optional system prompt override.
temperature: Option<f64>Optional temperature override.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mode
impl<'de> Deserialize<'de> for Mode
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
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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