pub enum MemoryType {
Identity,
Preference,
Decision,
Lesson,
Gotcha,
Fact,
}Expand description
Closed taxonomy of memory facets – validated at API boundary. Stored as lowercase TEXT in SQLite.
Six user-facing types after taxonomy refactor:
- Identity, Preference – about the user (Protected tier)
- Decision – choices made (Standard tier)
- Lesson – positive learnings (Standard tier)
- Gotcha – traps/warnings/negative learnings (Standard tier)
- Fact – durable knowledge (Standard tier)
Goal is deprecated: incoming “goal” parses as Identity (aspirations are part of who the user is). Existing rows migrate via DB migration.
Variants§
Implementations§
Source§impl MemoryType
impl MemoryType
Sourcepub fn all_values() -> &'static [&'static str]
pub fn all_values() -> &'static [&'static str]
All valid lowercase string values (6 canonical types).
Sourcepub fn is_profile_alias(s: &str) -> bool
pub fn is_profile_alias(s: &str) -> bool
Check if input is the “profile” high-level alias (case-insensitive). Used by the store flow to detect when async LLM sub-classification is needed.
Sourcepub fn is_knowledge_alias(s: &str) -> bool
pub fn is_knowledge_alias(s: &str) -> bool
Check if input is the “knowledge” high-level alias (case-insensitive). Knowledge expands to fact | lesson | gotcha and needs sub-classification.
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 moreSource§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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MemoryType
impl Display for MemoryType
impl Eq for MemoryType
Source§impl FromStr for MemoryType
impl FromStr for MemoryType
Source§impl PartialEq for MemoryType
impl PartialEq for MemoryType
Source§impl Serialize for MemoryType
impl Serialize for MemoryType
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