pub enum AutoCompactionDecision {
Send,
Compact,
}Expand description
Outcome of the preflight pressure check run before a main provider request.
Auto-compaction is a preflight gate (plan): when a
submitted turn would exceed the context policy and mode = "auto" permits
compaction, the turn stops before the provider request, compacts with the
configured model, rebuilds context, and restarts the same user turn.
Variants§
Send
The upcoming request fits the policy; send it to the provider.
Compact
The upcoming request is oversized and auto-compaction may compact first.
The known-oversized request must never be sent to the main provider.
Trait Implementations§
Source§impl Clone for AutoCompactionDecision
impl Clone for AutoCompactionDecision
Source§fn clone(&self) -> AutoCompactionDecision
fn clone(&self) -> AutoCompactionDecision
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 moreimpl Copy for AutoCompactionDecision
Source§impl Debug for AutoCompactionDecision
impl Debug for AutoCompactionDecision
impl Eq for AutoCompactionDecision
Source§impl PartialEq for AutoCompactionDecision
impl PartialEq for AutoCompactionDecision
impl StructuralPartialEq for AutoCompactionDecision
Auto Trait Implementations§
impl Freeze for AutoCompactionDecision
impl RefUnwindSafe for AutoCompactionDecision
impl Send for AutoCompactionDecision
impl Sync for AutoCompactionDecision
impl Unpin for AutoCompactionDecision
impl UnsafeUnpin for AutoCompactionDecision
impl UnwindSafe for AutoCompactionDecision
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