pub enum MemoryType {
Conversation,
Session,
Fact,
Episode,
Knowledge,
Skill,
Preference,
Decision,
UserProfile,
}Expand description
Memory entry type — 9 types derived from the SOAR/ACT-R cognitive model.
Variants§
Conversation
Conversation compaction summary (auto-generated).
Session
Session-end summary (auto-generated).
Fact
A factual statement (e.g., “API uses port 3000”).
Episode
An event or experience (e.g., “deployed v0.2.0”).
Knowledge
Static knowledge (knowledge-base synced, user/program-provided).
Skill
A learned procedure or pattern (e.g., “run cargo test before commit”).
Preference
A user preference (e.g., “always use dark mode”).
Decision
A recorded decision with rationale (e.g., “chose HNSW over FAISS”).
UserProfile
User identity and expertise profile.
Implementations§
Source§impl MemoryType
impl MemoryType
Sourcepub fn base_importance(&self) -> f32
pub fn base_importance(&self) -> f32
Base importance for each type.
Sourcepub fn base_decay_rate(&self) -> f32
pub fn base_decay_rate(&self) -> f32
Base decay rate for each type.
Sourcepub fn initial_tier(&self) -> MemoryTier
pub fn initial_tier(&self) -> MemoryTier
Initial tier for new entries of this type.
Sourcepub fn is_auto_protected(&self) -> bool
pub fn is_auto_protected(&self) -> bool
Whether this type is automatically protected from deletion.
Sourcepub fn all() -> &'static [MemoryType]
pub fn all() -> &'static [MemoryType]
All memory type variants.
Trait Implementations§
Source§impl Clone for MemoryType
impl Clone for MemoryType
Source§fn clone(&self) -> MemoryType
fn clone(&self) -> MemoryType
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 moreimpl Copy for MemoryType
Source§impl Debug for MemoryType
impl Debug for MemoryType
Source§impl<'de> Deserialize<'de> for MemoryType
impl<'de> Deserialize<'de> for MemoryType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemoryType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemoryType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemoryType
Source§impl Hash for MemoryType
impl Hash for MemoryType
Source§impl PartialEq for MemoryType
impl PartialEq for MemoryType
Source§fn eq(&self, other: &MemoryType) -> bool
fn eq(&self, other: &MemoryType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemoryType
impl Serialize for MemoryType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MemoryType
Auto Trait Implementations§
impl Freeze for MemoryType
impl RefUnwindSafe for MemoryType
impl Send for MemoryType
impl Sync for MemoryType
impl Unpin for MemoryType
impl UnsafeUnpin for MemoryType
impl UnwindSafe for MemoryType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.