pub struct WindowOpts {
pub tool_head: usize,
pub tool_tail: usize,
pub per_msg_chars: usize,
pub budget_chars: Option<usize>,
pub tool_byte_cap: usize,
}Fields§
§tool_head: usizeLines kept at the head of a folded tool result.
tool_tail: usizeLines kept at the tail of a folded tool result.
per_msg_chars: usizeChar cap for a single user/assistant message (head+tail beyond it).
budget_chars: Option<usize>Total char budget across the rendered turns; None folds the whole
session. When set, the most RECENT turns are kept (walk from the end).
tool_byte_cap: usizeByte cap for a single folded tool result. Line folding alone can’t bound a result that is one enormous line, so the folded text is additionally clipped to this many bytes (on a char boundary).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WindowOpts
impl RefUnwindSafe for WindowOpts
impl Send for WindowOpts
impl Sync for WindowOpts
impl Unpin for WindowOpts
impl UnsafeUnpin for WindowOpts
impl UnwindSafe for WindowOpts
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