pub struct TruncationResult<'a> {
pub messages: Vec<&'a Message>,
pub truncated_count: usize,
pub estimated_total_tokens: usize,
}Expand description
Result of truncation.
Fields§
§messages: Vec<&'a Message>Messages to include in the inference request (system + kept history).
truncated_count: usizeNumber of history messages dropped.
estimated_total_tokens: usizeEstimated total tokens after truncation (system + history + tools).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TruncationResult<'a>
impl<'a> RefUnwindSafe for TruncationResult<'a>
impl<'a> Send for TruncationResult<'a>
impl<'a> Sync for TruncationResult<'a>
impl<'a> Unpin for TruncationResult<'a>
impl<'a> UnsafeUnpin for TruncationResult<'a>
impl<'a> UnwindSafe for TruncationResult<'a>
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