pub struct ContextEngine { /* private fields */ }Implementations§
Source§impl ContextEngine
impl ContextEngine
pub fn new() -> Self
Sourcepub async fn build_system_prompt(&mut self, cwd: &str, memory_path: &str)
pub async fn build_system_prompt(&mut self, cwd: &str, memory_path: &str)
Chamber: CLAUDE.md INJECTION — build system prompt If a custom system prompt file exists at ~/.claude-agent/system.md or is passed via –system-prompt flag, it replaces the default agent identity preamble.
pub fn add_message(&mut self, msg: Message)
pub fn override_system_prompt(&mut self, prompt: &str)
pub fn messages(&self) -> &[Message]
pub fn system_prompt(&self) -> &str
pub fn token_estimate(&self) -> usize
pub fn is_near_limit(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContextEngine
impl RefUnwindSafe for ContextEngine
impl Send for ContextEngine
impl Sync for ContextEngine
impl Unpin for ContextEngine
impl UnsafeUnpin for ContextEngine
impl UnwindSafe for ContextEngine
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