Struct RetainedContextSnapshot
pub struct RetainedContextSnapshot {
pub retained_messages: Vec<ConversationMessage>,
pub breadcrumb: bool,
}Expand description
Provider-facing context captured at a trim boundary. This remains attached to the internal turn event so the serial RPC consumer can persist it before forwarding the public trim notice without borrowing the live agent again.
Fields§
§retained_messages: Vec<ConversationMessage>Trait Implementations§
Source§impl Clone for RetainedContextSnapshot
impl Clone for RetainedContextSnapshot
Source§fn clone(&self) -> RetainedContextSnapshot
fn clone(&self) -> RetainedContextSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RetainedContextSnapshot
impl RefUnwindSafe for RetainedContextSnapshot
impl Send for RetainedContextSnapshot
impl Sync for RetainedContextSnapshot
impl Unpin for RetainedContextSnapshot
impl UnsafeUnpin for RetainedContextSnapshot
impl UnwindSafe for RetainedContextSnapshot
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