pub struct ContextLimits {
pub max_context_tokens: usize,
}Expand description
Context limits for message selection
This struct provides the information needed by ConversationManager to select which messages fit within the context window.
Fields§
§max_context_tokens: usizeMaximum tokens available for context
Implementations§
Trait Implementations§
Source§impl Clone for ContextLimits
impl Clone for ContextLimits
Source§fn clone(&self) -> ContextLimits
fn clone(&self) -> ContextLimits
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 ContextLimits
impl Debug for ContextLimits
impl Copy for ContextLimits
Auto Trait Implementations§
impl Freeze for ContextLimits
impl RefUnwindSafe for ContextLimits
impl Send for ContextLimits
impl Sync for ContextLimits
impl Unpin for ContextLimits
impl UnwindSafe for ContextLimits
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