pub struct PersonaManager { /* private fields */ }Expand description
Manages persona lifecycle and coordinates persona-aware execution.
Implementations§
Source§impl PersonaManager
impl PersonaManager
Sourcepub fn with_defaults(personas: Vec<Persona>) -> Self
pub fn with_defaults(personas: Vec<Persona>) -> Self
Creates a new persona manager, optionally loading from existing data.
Sourcepub fn get_active_persona(&self) -> Option<Persona>
pub fn get_active_persona(&self) -> Option<Persona>
Returns the current active persona, if any.
Sourcepub fn set_active_persona(&self, id: &str) -> Result<()>
pub fn set_active_persona(&self, id: &str) -> Result<()>
Sets the active persona by ID.
Sourcepub fn active_system_prompt(&self) -> String
pub fn active_system_prompt(&self) -> String
Returns the system prompt for the active persona. Falls back to a default prompt if no active persona.
Sourcepub fn create_default_personas(&self)
pub fn create_default_personas(&self)
Creates the three default personas (Dev, Review, Research).
Sourcepub fn first_enabled(&self) -> Option<Persona>
pub fn first_enabled(&self) -> Option<Persona>
Returns the first enabled persona, for wiring into OuroborosEngine.
Sourcepub fn store(&self) -> &PersonaStore
pub fn store(&self) -> &PersonaStore
Returns the persona store for direct access.
Sourcepub fn active_persona_id(&self) -> Option<String>
pub fn active_persona_id(&self) -> Option<String>
Returns the ID of the active persona.
Trait Implementations§
Source§impl Clone for PersonaManager
impl Clone for PersonaManager
Source§impl Debug for PersonaManager
impl Debug for PersonaManager
Auto Trait Implementations§
impl !Freeze for PersonaManager
impl !RefUnwindSafe for PersonaManager
impl Send for PersonaManager
impl Sync for PersonaManager
impl Unpin for PersonaManager
impl UnsafeUnpin for PersonaManager
impl UnwindSafe for PersonaManager
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