pub struct AutoCompactionInput<'a> {Show 16 fields
pub provider: &'a dyn LLMProvider,
pub model: &'a str,
pub session_id: &'a str,
pub workspace_root: &'a Path,
pub vt_cfg: Option<&'a VTCodeConfig>,
pub current_token_usage: usize,
pub reserved_output_tokens: usize,
pub touched_files: &'a [String],
pub engine_cfg: CompactionConfig,
pub manual_options: ManualCompactionOptions,
pub placement: MemoryEnvelopePlacement,
pub prefire: Option<&'a PrefireState>,
pub auto_compact_suppressed: &'a mut u8,
pub force_compaction: bool,
pub steering_update: Option<&'a SessionMemoryEnvelopeUpdate>,
pub parent_context: Option<CompactionParentContext>,
}Expand description
Inputs for auto_compact_messages.
Fields§
§provider: &'a dyn LLMProvider§model: &'a str§session_id: &'a str§workspace_root: &'a Path§vt_cfg: Option<&'a VTCodeConfig>§current_token_usage: usizeCurrent estimated token usage of the live history (before compaction).
reserved_output_tokens: usizeOutput limit of the next request, excluding prompt/history overhead.
touched_files: &'a [String]Files touched so far this session (enrich the memory envelope).
engine_cfg: CompactionConfigEngine configuration (thresholds, retention, summary prompt overrides).
manual_options: ManualCompactionOptionsManual compaction options (instructions, max output, reasoning, verbosity).
placement: MemoryEnvelopePlacementWhere to place the injected memory envelope in the compacted history.
prefire: Option<&'a PrefireState>Prefire two-pass state (background NOTE₁ cache).
auto_compact_suppressed: &'a mut u8Mutable auto-compaction suppression state. SUPPRESS_NONE allows
compaction; any other value gates automatic compaction until cleared
by success, model switch, or explicit /compact.
force_compaction: boolForce a pending soft-threshold compaction at the next outer turn boundary. This is set only by the runloop boundary, never by a tool loop, so no hidden model call is introduced mid-turn.
steering_update: Option<&'a SessionMemoryEnvelopeUpdate>Live steering state to snapshot with the compaction envelope.
parent_context: Option<CompactionParentContext>Parent segment prefix for cache-safe forking (system prompt + ordered tools from the live request envelope). When supplied, the local-summary fork reuses the parent’s cached prefix instead of re-paying full input cost. Native strategies ignore it.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AutoCompactionInput<'a>
impl<'a> !UnwindSafe for AutoCompactionInput<'a>
impl<'a> Forget for AutoCompactionInput<'a>
impl<'a> Freeze for AutoCompactionInput<'a>
impl<'a> Move for AutoCompactionInput<'a>
impl<'a> Send for AutoCompactionInput<'a>
impl<'a> Sync for AutoCompactionInput<'a>
impl<'a> Unpin for AutoCompactionInput<'a>
impl<'a> UnsafeUnpin for AutoCompactionInput<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more