pub struct IntentTrackingIntegration { /* private fields */ }Expand description
Intent tracking integration for the learning manager
Implementations§
Source§impl IntentTrackingIntegration
impl IntentTrackingIntegration
Sourcepub fn with_drift_config(config: DriftDetectionConfig) -> Self
pub fn with_drift_config(config: DriftDetectionConfig) -> Self
Create with custom drift detection configuration
Sourcepub async fn record_decision(
&self,
decision_type: String,
description: String,
rationale: String,
) -> Result<ArchitecturalDecision>
pub async fn record_decision( &self, decision_type: String, description: String, rationale: String, ) -> Result<ArchitecturalDecision>
Record an architectural decision
Sourcepub async fn get_decision(
&self,
decision_id: &str,
) -> Result<ArchitecturalDecision>
pub async fn get_decision( &self, decision_id: &str, ) -> Result<ArchitecturalDecision>
Get a decision by ID
Sourcepub async fn list_decisions(&self) -> Vec<ArchitecturalDecision>
pub async fn list_decisions(&self) -> Vec<ArchitecturalDecision>
List all architectural decisions
Sourcepub async fn identify_patterns(&self) -> Result<Vec<LearnedPattern>>
pub async fn identify_patterns(&self) -> Result<Vec<LearnedPattern>>
Identify architectural patterns from decisions
Sourcepub async fn record_evolution(
&self,
from_version: String,
to_version: String,
description: String,
) -> Result<ArchitecturalEvolution>
pub async fn record_evolution( &self, from_version: String, to_version: String, description: String, ) -> Result<ArchitecturalEvolution>
Record architectural evolution between versions
Sourcepub async fn get_evolution_history(&self) -> Vec<ArchitecturalEvolution>
pub async fn get_evolution_history(&self) -> Vec<ArchitecturalEvolution>
Get evolution history
Sourcepub async fn detect_drift(
&self,
decision_id: &str,
drift_type: String,
description: String,
) -> Result<DriftDetection>
pub async fn detect_drift( &self, decision_id: &str, drift_type: String, description: String, ) -> Result<DriftDetection>
Detect architectural drift
Sourcepub async fn get_drift_detections(&self) -> Vec<DriftDetection>
pub async fn get_drift_detections(&self) -> Vec<DriftDetection>
Get all drift detections
Sourcepub async fn get_drift_for_decision(
&self,
decision_id: &str,
) -> Vec<DriftDetection>
pub async fn get_drift_for_decision( &self, decision_id: &str, ) -> Vec<DriftDetection>
Get drift detections for a specific decision
Sourcepub async fn update_decision_confidence(
&self,
decision_id: &str,
confidence: f32,
) -> Result<()>
pub async fn update_decision_confidence( &self, decision_id: &str, confidence: f32, ) -> Result<()>
Update decision confidence based on observations
Sourcepub async fn increment_occurrence(&self, decision_id: &str) -> Result<()>
pub async fn increment_occurrence(&self, decision_id: &str) -> Result<()>
Increment occurrence count for a decision
Sourcepub async fn get_summary(&self) -> ArchitecturalSummary
pub async fn get_summary(&self) -> ArchitecturalSummary
Get summary of architectural state
Sourcepub async fn register_pattern_for_drift_detection(
&self,
pattern: LearnedPattern,
) -> Result<()>
pub async fn register_pattern_for_drift_detection( &self, pattern: LearnedPattern, ) -> Result<()>
Register an established pattern for drift detection
Sourcepub async fn check_deviation(
&self,
decision: &ArchitecturalDecision,
pattern_type: &str,
) -> Result<Option<DriftDetection>>
pub async fn check_deviation( &self, decision: &ArchitecturalDecision, pattern_type: &str, ) -> Result<Option<DriftDetection>>
Check if a decision deviates from established patterns
Sourcepub async fn detect_inconsistency(
&self,
decision_id: &str,
expected_behavior: &str,
actual_behavior: &str,
) -> Result<DriftDetection>
pub async fn detect_inconsistency( &self, decision_id: &str, expected_behavior: &str, actual_behavior: &str, ) -> Result<DriftDetection>
Detect inconsistencies in decision application
Sourcepub async fn detect_violation(
&self,
decision_id: &str,
violation_description: &str,
) -> Result<DriftDetection>
pub async fn detect_violation( &self, decision_id: &str, violation_description: &str, ) -> Result<DriftDetection>
Detect pattern violations
Sourcepub async fn get_detector_drifts(&self) -> Vec<DriftDetection>
pub async fn get_detector_drifts(&self) -> Vec<DriftDetection>
Get all detected drifts from the detector
Sourcepub async fn get_drifts_by_severity(
&self,
severity: &str,
) -> Vec<DriftDetection>
pub async fn get_drifts_by_severity( &self, severity: &str, ) -> Vec<DriftDetection>
Get drifts by severity
Sourcepub async fn get_detector_drifts_for_decision(
&self,
decision_id: &str,
) -> Vec<DriftDetection>
pub async fn get_detector_drifts_for_decision( &self, decision_id: &str, ) -> Vec<DriftDetection>
Get drifts for a specific decision from the detector
Sourcepub async fn clear_detector_drifts(&self)
pub async fn clear_detector_drifts(&self)
Clear all detected drifts
Sourcepub async fn get_drift_statistics(&self) -> DriftStatistics
pub async fn get_drift_statistics(&self) -> DriftStatistics
Get drift statistics
Sourcepub async fn perform_comprehensive_drift_detection(
&self,
) -> Result<Vec<DriftDetection>>
pub async fn perform_comprehensive_drift_detection( &self, ) -> Result<Vec<DriftDetection>>
Perform comprehensive drift detection on all decisions
Sourcepub async fn get_comprehensive_report(&self) -> ArchitecturalReport
pub async fn get_comprehensive_report(&self) -> ArchitecturalReport
Get a comprehensive report of architectural state