pub enum TokenBudgetAction {
None,
Reminder(ChatMessage),
Fallback(ChatMessage),
Reset {
previous_window: usize,
new_window: usize,
},
}Expand description
What the shell should do for this compaction check.
Variants§
None
Below the reminder band — nothing to do.
Reminder(ChatMessage)
Inject this ephemeral reminder (model should save state to notes).
Fallback(ChatMessage)
Inject this fallback prompt (last turn before the reset).
Reset
Work budget + buffer exhausted — archive the current window, then install a fresh one.
Fields
§
new_window: usizeWindow that becomes current after
TokenBudgetCore::commit_reset.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokenBudgetAction
impl RefUnwindSafe for TokenBudgetAction
impl Send for TokenBudgetAction
impl Sync for TokenBudgetAction
impl Unpin for TokenBudgetAction
impl UnsafeUnpin for TokenBudgetAction
impl UnwindSafe for TokenBudgetAction
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