pub enum AgentMode {
Casual,
Planning,
Agent,
Research,
}Variants§
Implementations§
Source§impl AgentMode
impl AgentMode
Sourcepub fn prompts_filename(&self) -> &'static str
pub fn prompts_filename(&self) -> &'static str
Returns the filename for this mode’s prompt file (e.g. “casual.md”).
Sourcepub fn load_system_prompt(&self, prompts_dir: &Path) -> String
pub fn load_system_prompt(&self, prompts_dir: &Path) -> String
Load the system prompt for this mode from a .md file in prompts_dir.
Falls back to the hardcoded default if the file cannot be read.
Sourcepub fn default_system_prompt(&self) -> &'static str
pub fn default_system_prompt(&self) -> &'static str
Returns the hardcoded default system prompt (embedded at compile time
via include_str!). Used as fallback when no custom prompt file exists
and as the seed for first-launch initialization.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentMode
impl<'de> Deserialize<'de> for AgentMode
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 Copy for AgentMode
impl StructuralPartialEq for AgentMode
Auto Trait Implementations§
impl Freeze for AgentMode
impl RefUnwindSafe for AgentMode
impl Send for AgentMode
impl Sync for AgentMode
impl Unpin for AgentMode
impl UnsafeUnpin for AgentMode
impl UnwindSafe for AgentMode
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