pub enum ContextCommand {
Add(ContextAddCommand),
Remove {
block_id: String,
},
Clear,
Expand(ContextExpandCommand),
Compress {
method: CompressionMethod,
},
Prune(ContextPruneCommand),
Render {
format: Option<RenderFormat>,
},
Stats,
Focus {
block_id: Option<String>,
},
}Expand description
CTX command - context window operations
Variants§
Add(ContextAddCommand)
Add block(s) to context
Remove
Remove block from context
Clear
Clear entire context window
Expand(ContextExpandCommand)
Expand context in a direction
Compress
Compress context using a method
Fields
§
method: CompressionMethodPrune(ContextPruneCommand)
Prune context based on criteria
Render
Render context for LLM prompt
Fields
§
format: Option<RenderFormat>Stats
Get context statistics
Focus
Set/clear focus block
Trait Implementations§
Source§impl Clone for ContextCommand
impl Clone for ContextCommand
Source§fn clone(&self) -> ContextCommand
fn clone(&self) -> ContextCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextCommand
impl Debug for ContextCommand
Source§impl<'de> Deserialize<'de> for ContextCommand
impl<'de> Deserialize<'de> for ContextCommand
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
Source§impl PartialEq for ContextCommand
impl PartialEq for ContextCommand
Source§impl Serialize for ContextCommand
impl Serialize for ContextCommand
impl StructuralPartialEq for ContextCommand
Auto Trait Implementations§
impl Freeze for ContextCommand
impl RefUnwindSafe for ContextCommand
impl Send for ContextCommand
impl Sync for ContextCommand
impl Unpin for ContextCommand
impl UnwindSafe for ContextCommand
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