pub struct ContextCompactionRecorded {
pub thread_id: ThreadId,
pub turn_id: TurnId,
pub original_item_count: u64,
pub original_estimated_tokens: u32,
pub compacted_item_count: u64,
pub compacted_estimated_tokens: u32,
pub file_backed: bool,
pub strategy: Option<String>,
pub pruned_tool_count: Option<u32>,
pub timestamp: OffsetDateTime,
}Fields§
§thread_id: ThreadId§turn_id: TurnId§original_item_count: u64§original_estimated_tokens: u32§compacted_item_count: u64§compacted_estimated_tokens: u32§file_backed: bool§strategy: Option<String>§pruned_tool_count: Option<u32>§timestamp: OffsetDateTimeTrait Implementations§
Source§impl Clone for ContextCompactionRecorded
impl Clone for ContextCompactionRecorded
Source§fn clone(&self) -> ContextCompactionRecorded
fn clone(&self) -> ContextCompactionRecorded
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContextCompactionRecorded
impl Debug for ContextCompactionRecorded
Source§impl<'de> Deserialize<'de> for ContextCompactionRecorded
impl<'de> Deserialize<'de> for ContextCompactionRecorded
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContextCompactionRecorded
impl RefUnwindSafe for ContextCompactionRecorded
impl Send for ContextCompactionRecorded
impl Sync for ContextCompactionRecorded
impl Unpin for ContextCompactionRecorded
impl UnsafeUnpin for ContextCompactionRecorded
impl UnwindSafe for ContextCompactionRecorded
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