pub struct SessionAnalyzerConfig {
pub max_session_age: Duration,
pub max_events_per_session: usize,
pub escalation_threshold: f64,
pub cumulative_risk_threshold: f64,
pub max_escalation_count: u32,
pub topic_shift_sensitivity: f64,
}Expand description
Tuneable thresholds for session analysis.
Fields§
§max_session_age: DurationSessions older than this are eligible for cleanup.
max_events_per_session: usizeMaximum events stored per session before the oldest are dropped.
escalation_threshold: f64Minimum risk delta between consecutive turns to count as an escalation.
cumulative_risk_threshold: f64Cumulative risk sum that triggers an alert.
max_escalation_count: u32More than this many escalations triggers an alert.
topic_shift_sensitivity: f64Jaccard similarity drop threshold for topic-shift detection.
Trait Implementations§
Source§impl Clone for SessionAnalyzerConfig
impl Clone for SessionAnalyzerConfig
Source§fn clone(&self) -> SessionAnalyzerConfig
fn clone(&self) -> SessionAnalyzerConfig
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 SessionAnalyzerConfig
impl Debug for SessionAnalyzerConfig
Auto Trait Implementations§
impl Freeze for SessionAnalyzerConfig
impl RefUnwindSafe for SessionAnalyzerConfig
impl Send for SessionAnalyzerConfig
impl Sync for SessionAnalyzerConfig
impl Unpin for SessionAnalyzerConfig
impl UnsafeUnpin for SessionAnalyzerConfig
impl UnwindSafe for SessionAnalyzerConfig
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