pub struct PrunRecord {
pub pruned_timestamps: Vec<u64>,
pub tokens_removed: usize,
pub memo: Option<String>,
}Expand description
Structured metadata persisted in the details field of a prun ToolResult.
Captured by SessionRecorder so a session replay can reconstruct exactly what
was pruned and (if a memo was supplied) what replaced it. Crucially, the actual
pruned message contents live in the session log proper — pruned_timestamps
is the cross-reference key, not a copy of the content.
Fields§
§pruned_timestamps: Vec<u64>Unix-millis timestamps of every message removed in this prun cycle. Keyed
against Message::*::timestamp so the session log can re-link pruned content.
tokens_removed: usizeActual token count freed (may exceed PrunRequest.tokens_to_remove because
pruning operates on whole-message boundaries).
memo: Option<String>The summary string inserted in place of pruned content, if this was a
prun_with_memo invocation.
Trait Implementations§
Source§impl Clone for PrunRecord
impl Clone for PrunRecord
Source§fn clone(&self) -> PrunRecord
fn clone(&self) -> PrunRecord
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 PrunRecord
impl Debug for PrunRecord
Source§impl<'de> Deserialize<'de> for PrunRecord
impl<'de> Deserialize<'de> for PrunRecord
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 PrunRecord
impl RefUnwindSafe for PrunRecord
impl Send for PrunRecord
impl Sync for PrunRecord
impl Unpin for PrunRecord
impl UnsafeUnpin for PrunRecord
impl UnwindSafe for PrunRecord
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