pub struct ContextManager { /* private fields */ }Expand description
Progressive context manager
Implementations§
Source§impl ContextManager
impl ContextManager
Sourcepub fn load_skill_instructions(
&self,
name: &str,
instructions: String,
) -> Result<()>
pub fn load_skill_instructions( &self, name: &str, instructions: String, ) -> Result<()>
Load skill instructions (Level 2 loading)
Sourcepub fn load_full_skill(&self, skill: Skill) -> Result<()>
pub fn load_full_skill(&self, skill: Skill) -> Result<()>
Load full skill with resources (Level 3 loading)
Sourcepub fn get_stats(&self) -> ContextStats
pub fn get_stats(&self) -> ContextStats
Get current context usage statistics
Sourcepub fn clear_loaded_skills(&self)
pub fn clear_loaded_skills(&self)
Clear all loaded skills (keep metadata)
Sourcepub fn get_memory_usage(&self) -> usize
pub fn get_memory_usage(&self) -> usize
Get memory usage estimate
Trait Implementations§
Source§impl Clone for ContextManager
impl Clone for ContextManager
Auto Trait Implementations§
impl Freeze for ContextManager
impl RefUnwindSafe for ContextManager
impl Send for ContextManager
impl Sync for ContextManager
impl Unpin for ContextManager
impl UnsafeUnpin for ContextManager
impl UnwindSafe for ContextManager
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