pub struct HopeMemory { /* private fields */ }Expand description
HopeMemory - 6 rétegű kognitív memória
Implementations§
Source§impl HopeMemory
impl HopeMemory
Sourcepub fn with_graph(self, graph: Arc<CodeGraph>) -> Self
pub fn with_graph(self, graph: Arc<CodeGraph>) -> Self
CodeGraph beállítása
Sourcepub async fn remember(
&mut self,
content: &str,
memory_type: MemoryType,
importance: f64,
) -> HopeResult<String>
pub async fn remember( &mut self, content: &str, memory_type: MemoryType, importance: f64, ) -> HopeResult<String>
Emlék mentése
Sourcepub async fn recall(&mut self, id: &str) -> HopeResult<Option<Memory>>
pub async fn recall(&mut self, id: &str) -> HopeResult<Option<Memory>>
Emlék keresése ID alapján
Sourcepub async fn find(
&self,
memory_type: MemoryType,
limit: usize,
) -> HopeResult<Vec<Memory>>
pub async fn find( &self, memory_type: MemoryType, limit: usize, ) -> HopeResult<Vec<Memory>>
Emlékek keresése típus alapján
Sourcepub fn clear_working(&mut self)
pub fn clear_working(&mut self)
Working memory törlése
Sourcepub fn working_capacity(&self) -> usize
pub fn working_capacity(&self) -> usize
Working memory kapacitás
Sourcepub fn working_usage(&self) -> (usize, usize)
pub fn working_usage(&self) -> (usize, usize)
Working memory kihasználtság
Trait Implementations§
Source§impl Aware for HopeMemory
impl Aware for HopeMemory
Source§fn identity(&self) -> &CodeIdentity
fn identity(&self) -> &CodeIdentity
Ki vagyok? - Identitás lekérdezése
Source§fn identity_mut(&mut self) -> &mut CodeIdentity
fn identity_mut(&mut self) -> &mut CodeIdentity
Ki vagyok? - Mutable identitás
Source§fn reflect(&self) -> Reflection
fn reflect(&self) -> Reflection
Önreflexió - Mit gondolok magamról?
Source§fn init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = HopeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = HopeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Modul inicializálása
Source§fn state(&self) -> ModuleState
fn state(&self) -> ModuleState
Aktuális állapot
Source§fn shutdown<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = HopeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = HopeResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Modul leállítása
Source§fn deactivate(&mut self)
fn deactivate(&mut self)
Modul deaktiválása (idle)
Auto Trait Implementations§
impl Freeze for HopeMemory
impl RefUnwindSafe for HopeMemory
impl Send for HopeMemory
impl Sync for HopeMemory
impl Unpin for HopeMemory
impl UnwindSafe for HopeMemory
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request