pub struct Intervention {
pub trigger: Trigger,
pub context: String,
pub text: String,
pub aftermath: String,
pub at: usize,
}Expand description
One moment in a transcript where the user stepped in.
Fields§
§trigger: Trigger§context: StringWhat mecha was doing at that point, compact.
text: StringWhat the user said, or what was denied.
aftermath: StringHow the assistant responded after the intervention. Without this a
reflector cannot tell a correction from a test the model passed — the
first false lesson in this store was exactly that, caught by
mecha validate probing it.
at: usizeIndex of the message the intervention rides in. What lets provenance classification look up the taint covering this exact moment rather than guessing from the whole session.
Trait Implementations§
Source§impl Clone for Intervention
impl Clone for Intervention
Source§fn clone(&self) -> Intervention
fn clone(&self) -> Intervention
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 moreAuto Trait Implementations§
impl Freeze for Intervention
impl RefUnwindSafe for Intervention
impl Send for Intervention
impl Sync for Intervention
impl Unpin for Intervention
impl UnsafeUnpin for Intervention
impl UnwindSafe for Intervention
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