pub enum PrunVariant {
Prun,
PrunWithMemo,
}Expand description
Which flavour of prun this PrunTool instance exposes to the model.
The same PrunTool struct backs both variants — only name(), description(),
parameters_schema(), and the memo-handling branch in execute() differ. Two
variants are exposed (rather than a single tool with an optional memo) so the
LLM sees them in tools/list as distinct affordances with separate descriptions
— easier for the model to pick the right one.
Variants§
Prun
prun(tokens) — silently remove the last N tokens of in-run context.
PrunWithMemo
prun_with_memo(tokens, memo) — remove and replace with an LLM-written summary.
Trait Implementations§
Source§impl Clone for PrunVariant
impl Clone for PrunVariant
Source§fn clone(&self) -> PrunVariant
fn clone(&self) -> PrunVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PrunVariant
impl Debug for PrunVariant
impl Copy for PrunVariant
Auto Trait Implementations§
impl Freeze for PrunVariant
impl RefUnwindSafe for PrunVariant
impl Send for PrunVariant
impl Sync for PrunVariant
impl Unpin for PrunVariant
impl UnsafeUnpin for PrunVariant
impl UnwindSafe for PrunVariant
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