pub struct CognitiveMemorySystem { /* private fields */ }Expand description
Main cognitive memory system orchestrator
Implementations§
Source§impl CognitiveMemorySystem
impl CognitiveMemorySystem
Sourcepub async fn new(
repository: Arc<MemoryRepository>,
config: CognitiveMemoryConfig,
) -> Result<Self>
pub async fn new( repository: Arc<MemoryRepository>, config: CognitiveMemoryConfig, ) -> Result<Self>
Create a new cognitive memory system
Sourcepub async fn store_memory_with_cognitive_processing(
&self,
request: CognitiveMemoryRequest,
) -> Result<CognitiveMemoryResult>
pub async fn store_memory_with_cognitive_processing( &self, request: CognitiveMemoryRequest, ) -> Result<CognitiveMemoryResult>
Store memory with full cognitive processing
Sourcepub async fn cognitive_search(
&self,
query: &str,
context: ScoringContext,
limit: Option<i32>,
) -> Result<Vec<EnhancedSearchResult>>
pub async fn cognitive_search( &self, query: &str, context: ScoringContext, limit: Option<i32>, ) -> Result<Vec<EnhancedSearchResult>>
Perform enhanced search with cognitive scoring
Sourcepub async fn trigger_reflection(
&self,
reason: String,
) -> Result<ReflectionSession>
pub async fn trigger_reflection( &self, reason: String, ) -> Result<ReflectionSession>
Manually trigger reflection for insight generation
Sourcepub async fn get_performance_metrics(&self) -> CognitivePerformanceMetrics
pub async fn get_performance_metrics(&self) -> CognitivePerformanceMetrics
Get current system performance metrics
Sourcepub async fn get_loop_prevention_statistics(&self) -> PreventionStatistics
pub async fn get_loop_prevention_statistics(&self) -> PreventionStatistics
Get loop prevention statistics
Sourcepub async fn update_configuration(
&mut self,
config: CognitiveMemoryConfig,
) -> Result<()>
pub async fn update_configuration( &mut self, config: CognitiveMemoryConfig, ) -> Result<()>
Update system configuration
Sourcepub async fn background_maintenance(&self) -> Result<()>
pub async fn background_maintenance(&self) -> Result<()>
Perform background maintenance tasks
Auto Trait Implementations§
impl Freeze for CognitiveMemorySystem
impl !RefUnwindSafe for CognitiveMemorySystem
impl Send for CognitiveMemorySystem
impl Sync for CognitiveMemorySystem
impl Unpin for CognitiveMemorySystem
impl !UnwindSafe for CognitiveMemorySystem
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> 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