pub struct PrunedOrphans {
pub removed: usize,
pub orphan_tool_call_ids: Vec<String>,
}Expand description
Outcome of a single remove_orphaned_tool_messages pass. The caller
is responsible for logging — that’s where the agent/channel/session
context lives.
Fields§
§removed: usizeTotal tool / assistant messages removed across both passes.
orphan_tool_call_ids: Vec<String>tool_call_ids that lost their pairing.
Implementations§
Trait Implementations§
Source§impl Clone for PrunedOrphans
impl Clone for PrunedOrphans
Source§fn clone(&self) -> PrunedOrphans
fn clone(&self) -> PrunedOrphans
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 PrunedOrphans
impl Debug for PrunedOrphans
Source§impl Default for PrunedOrphans
impl Default for PrunedOrphans
Source§fn default() -> PrunedOrphans
fn default() -> PrunedOrphans
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrunedOrphans
impl RefUnwindSafe for PrunedOrphans
impl Send for PrunedOrphans
impl Sync for PrunedOrphans
impl Unpin for PrunedOrphans
impl UnsafeUnpin for PrunedOrphans
impl UnwindSafe for PrunedOrphans
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more