pub struct DriftReport {
pub session_id: String,
pub similarity: Vec<f32>,
pub drifted_at: Option<usize>,
}Expand description
What analyze found in one session.
Fields§
§session_id: String§similarity: Vec<f32>Cosine of each turn against the anchor, in turn order. The anchor’s own entry is 1.0 and is included so indices line up with the prompts.
drifted_at: Option<usize>Index of the first turn of the sustained run that turned the session,
or None when the session held its topic.
Implementations§
Source§impl DriftReport
impl DriftReport
Trait Implementations§
Source§impl Clone for DriftReport
impl Clone for DriftReport
Source§fn clone(&self) -> DriftReport
fn clone(&self) -> DriftReport
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 DriftReport
impl Debug for DriftReport
Source§impl PartialEq for DriftReport
impl PartialEq for DriftReport
impl StructuralPartialEq for DriftReport
Auto Trait Implementations§
impl Freeze for DriftReport
impl RefUnwindSafe for DriftReport
impl Send for DriftReport
impl Sync for DriftReport
impl Unpin for DriftReport
impl UnsafeUnpin for DriftReport
impl UnwindSafe for DriftReport
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