pub struct LoopPreventionConfig {Show 14 fields
pub semantic_similarity_threshold: f64,
pub max_causal_depth: usize,
pub insight_cooldown_hours: i64,
pub min_novelty_threshold: f64,
pub min_coherence_threshold: f64,
pub min_evidence_threshold: f64,
pub max_insights_per_cluster: usize,
pub tracking_window_days: i64,
pub diversity_bonus_multiplier: f64,
pub repetition_penalty_factor: f64,
pub max_derivation_depth: usize,
pub enable_quality_filtering: bool,
pub enable_semantic_fingerprinting: bool,
pub enable_causal_analysis: bool,
}Expand description
Configuration for insight loop prevention
Fields§
§semantic_similarity_threshold: f64Minimum semantic distance for considering insights different
max_causal_depth: usizeMaximum depth for causal chain analysis
insight_cooldown_hours: i64Cooldown period between similar insights (hours)
min_novelty_threshold: f64Minimum novelty score for insight acceptance
min_coherence_threshold: f64Minimum coherence score for insight acceptance
min_evidence_threshold: f64Minimum evidence strength for insight acceptance
max_insights_per_cluster: usizeMaximum insights per concept cluster
tracking_window_days: i64Window for tracking recent insights (days)
diversity_bonus_multiplier: f64Diversity bonus for underrepresented insight types
repetition_penalty_factor: f64Penalty for overrepresented insight types
max_derivation_depth: usizeMaximum allowed insight derivation depth
enable_quality_filtering: boolEnable automatic quality filtering
enable_semantic_fingerprinting: boolEnable semantic fingerprinting
enable_causal_analysis: boolEnable causal chain analysis
Trait Implementations§
Source§impl Clone for LoopPreventionConfig
impl Clone for LoopPreventionConfig
Source§fn clone(&self) -> LoopPreventionConfig
fn clone(&self) -> LoopPreventionConfig
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 LoopPreventionConfig
impl Debug for LoopPreventionConfig
Source§impl Default for LoopPreventionConfig
impl Default for LoopPreventionConfig
Source§impl<'de> Deserialize<'de> for LoopPreventionConfig
impl<'de> Deserialize<'de> for LoopPreventionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LoopPreventionConfig
impl RefUnwindSafe for LoopPreventionConfig
impl Send for LoopPreventionConfig
impl Sync for LoopPreventionConfig
impl Unpin for LoopPreventionConfig
impl UnwindSafe for LoopPreventionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more