pub struct PreActivationCtx<'a> {
pub messages: &'a mut Vec<ChatMessage>,
pub turn: usize,
}Expand description
Context passed to LifecyclePlugin::pre_activation.
Hooks may mutate messages to redact, inject, or transform conversation
content before activation matching.
Fields§
§messages: &'a mut Vec<ChatMessage>§turn: usizeAuto Trait Implementations§
impl<'a> Freeze for PreActivationCtx<'a>
impl<'a> RefUnwindSafe for PreActivationCtx<'a>
impl<'a> Send for PreActivationCtx<'a>
impl<'a> Sync for PreActivationCtx<'a>
impl<'a> Unpin for PreActivationCtx<'a>
impl<'a> UnsafeUnpin for PreActivationCtx<'a>
impl<'a> !UnwindSafe for PreActivationCtx<'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