pub struct MemoryHandles {
pub short_term: Arc<dyn ShortTermMemory>,
pub long_term: Arc<dyn LongTermMemory>,
pub episodic: Arc<dyn EpisodicMemory>,
}Expand description
Resolved trio of memory handles ready to drop into an
crate::agent::AgentContext or an App.
Impl crates (klieo-memory-sqlite, klieo-memory-neo4j,
klieo-memory-qdrant) provide From conversions where they cover
the full trio. Crates that only carry a subset (Neo4j covers
short + episodic; Qdrant covers long) compose via the App builder’s
per-trait setters rather than a direct From.
Fields§
§short_term: Arc<dyn ShortTermMemory>Short-term conversation memory.
long_term: Arc<dyn LongTermMemory>Long-term semantic memory.
episodic: Arc<dyn EpisodicMemory>Episodic event log.
Implementations§
Source§impl MemoryHandles
impl MemoryHandles
Sourcepub fn new(
short_term: Arc<dyn ShortTermMemory>,
long_term: Arc<dyn LongTermMemory>,
episodic: Arc<dyn EpisodicMemory>,
) -> Self
pub fn new( short_term: Arc<dyn ShortTermMemory>, long_term: Arc<dyn LongTermMemory>, episodic: Arc<dyn EpisodicMemory>, ) -> Self
Build directly from three already-Arc-wrapped handles.
Most callers go through an impl crate’s From instead.
Trait Implementations§
Source§impl Clone for MemoryHandles
impl Clone for MemoryHandles
Source§fn clone(&self) -> MemoryHandles
fn clone(&self) -> MemoryHandles
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for MemoryHandles
impl !UnwindSafe for MemoryHandles
impl Freeze for MemoryHandles
impl Send for MemoryHandles
impl Sync for MemoryHandles
impl Unpin for MemoryHandles
impl UnsafeUnpin for MemoryHandles
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