IntentTrackingIntegration

Struct IntentTrackingIntegration 

Source
pub struct IntentTrackingIntegration { /* private fields */ }
Expand description

Intent tracking integration for the learning manager

Implementations§

Source§

impl IntentTrackingIntegration

Source

pub fn new() -> Self

Create a new intent tracking integration

Source

pub fn with_drift_config(config: DriftDetectionConfig) -> Self

Create with custom drift detection configuration

Source

pub async fn record_decision( &self, decision_type: String, description: String, rationale: String, ) -> Result<ArchitecturalDecision>

Record an architectural decision

Source

pub async fn get_decision( &self, decision_id: &str, ) -> Result<ArchitecturalDecision>

Get a decision by ID

Source

pub async fn list_decisions(&self) -> Vec<ArchitecturalDecision>

List all architectural decisions

Source

pub async fn identify_patterns(&self) -> Result<Vec<LearnedPattern>>

Identify architectural patterns from decisions

Source

pub async fn record_evolution( &self, from_version: String, to_version: String, description: String, ) -> Result<ArchitecturalEvolution>

Record architectural evolution between versions

Source

pub async fn get_evolution_history(&self) -> Vec<ArchitecturalEvolution>

Get evolution history

Source

pub async fn detect_drift( &self, decision_id: &str, drift_type: String, description: String, ) -> Result<DriftDetection>

Detect architectural drift

Source

pub async fn get_drift_detections(&self) -> Vec<DriftDetection>

Get all drift detections

Source

pub async fn get_drift_for_decision( &self, decision_id: &str, ) -> Vec<DriftDetection>

Get drift detections for a specific decision

Source

pub async fn update_decision_confidence( &self, decision_id: &str, confidence: f32, ) -> Result<()>

Update decision confidence based on observations

Source

pub async fn increment_occurrence(&self, decision_id: &str) -> Result<()>

Increment occurrence count for a decision

Source

pub async fn get_summary(&self) -> ArchitecturalSummary

Get summary of architectural state

Source

pub async fn register_pattern_for_drift_detection( &self, pattern: LearnedPattern, ) -> Result<()>

Register an established pattern for drift detection

Source

pub async fn check_deviation( &self, decision: &ArchitecturalDecision, pattern_type: &str, ) -> Result<Option<DriftDetection>>

Check if a decision deviates from established patterns

Source

pub async fn detect_inconsistency( &self, decision_id: &str, expected_behavior: &str, actual_behavior: &str, ) -> Result<DriftDetection>

Detect inconsistencies in decision application

Source

pub async fn detect_violation( &self, decision_id: &str, violation_description: &str, ) -> Result<DriftDetection>

Detect pattern violations

Source

pub async fn get_detector_drifts(&self) -> Vec<DriftDetection>

Get all detected drifts from the detector

Source

pub async fn get_drifts_by_severity( &self, severity: &str, ) -> Vec<DriftDetection>

Get drifts by severity

Source

pub async fn get_detector_drifts_for_decision( &self, decision_id: &str, ) -> Vec<DriftDetection>

Get drifts for a specific decision from the detector

Source

pub async fn clear_detector_drifts(&self)

Clear all detected drifts

Source

pub async fn get_drift_statistics(&self) -> DriftStatistics

Get drift statistics

Source

pub async fn perform_comprehensive_drift_detection( &self, ) -> Result<Vec<DriftDetection>>

Perform comprehensive drift detection on all decisions

Source

pub async fn get_comprehensive_report(&self) -> ArchitecturalReport

Get a comprehensive report of architectural state

Trait Implementations§

Source§

impl Default for IntentTrackingIntegration

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more