pub struct SoulManager { /* private fields */ }Expand description
Manages the SOUL.md file which contains the agent’s personality and behavior
Implementations§
Source§impl SoulManager
impl SoulManager
pub fn new(soul_path: PathBuf) -> Self
Sourcepub fn get_content(&self) -> Option<&str>
pub fn get_content(&self) -> Option<&str>
Get the SOUL content
Sourcepub fn set_content(&mut self, content: String) -> Result<()>
pub fn set_content(&mut self, content: String) -> Result<()>
Update the SOUL content
Sourcepub fn needs_hatching(&self) -> bool
pub fn needs_hatching(&self) -> bool
Check if this SOUL needs hatching (doesn’t exist or is still default content)
Auto Trait Implementations§
impl Freeze for SoulManager
impl RefUnwindSafe for SoulManager
impl Send for SoulManager
impl Sync for SoulManager
impl Unpin for SoulManager
impl UnsafeUnpin for SoulManager
impl UnwindSafe for SoulManager
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