pub struct SessionLimits {
pub max_context_tokens: usize,
pub max_context_blocks: usize,
pub max_expand_depth: usize,
pub max_results_per_operation: usize,
pub max_operations_before_checkpoint: usize,
pub session_timeout: Duration,
pub max_history_size: usize,
pub budget: OperationBudget,
}Expand description
Per-session limits.
Fields§
§max_context_tokens: usizeMaximum context window tokens.
max_context_blocks: usizeMaximum context window blocks.
max_expand_depth: usizeMaximum depth for single expansion.
max_results_per_operation: usizeMaximum blocks returned per operation.
max_operations_before_checkpoint: usizeMaximum operations before forced pause.
session_timeout: DurationSession timeout (inactivity).
max_history_size: usizeMaximum navigation history size.
budget: OperationBudgetBudget for costly operations.
Trait Implementations§
Source§impl Clone for SessionLimits
impl Clone for SessionLimits
Source§fn clone(&self) -> SessionLimits
fn clone(&self) -> SessionLimits
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionLimits
impl Debug for SessionLimits
Auto Trait Implementations§
impl Freeze for SessionLimits
impl RefUnwindSafe for SessionLimits
impl Send for SessionLimits
impl Sync for SessionLimits
impl Unpin for SessionLimits
impl UnwindSafe for SessionLimits
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