pub struct ExtractedMemory {
pub content: String,
pub memory_type: String,
pub confidence: f32,
pub entities: Vec<String>,
pub tags: Vec<String>,
pub context: Vec<String>,
pub reasoning: String,
}Expand description
A single memory extracted from a conversation by the LLM.
Fields§
§content: StringThe factual content of the memory.
memory_type: StringClassification: decision, preference, correction, fact, entity, anti_pattern.
confidence: f32How confident the LLM is that this is worth remembering (0.0 to 1.0).
entities: Vec<String>Entities mentioned in this memory.
Categorization tags.
context: Vec<String>Life-context categories this memory belongs to (e.g., [“health_device”, “shopping”]). Used for categorical retrieval — stored as context: tags on the memory node.
reasoning: StringWhy this memory was extracted (for debugging and auditing).
Implementations§
Source§impl ExtractedMemory
impl ExtractedMemory
Sourcepub fn embedding_key(&self) -> String
pub fn embedding_key(&self) -> String
Build an augmented text string for embedding generation.
Concatenates the content with entities and tags to create a richer vector representation that matches on more search queries.
Trait Implementations§
Source§impl Clone for ExtractedMemory
impl Clone for ExtractedMemory
Source§fn clone(&self) -> ExtractedMemory
fn clone(&self) -> ExtractedMemory
Returns a duplicate of the value. Read more
1.0.0 · 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 ExtractedMemory
impl Debug for ExtractedMemory
Source§impl<'de> Deserialize<'de> for ExtractedMemory
impl<'de> Deserialize<'de> for ExtractedMemory
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
Auto Trait Implementations§
impl Freeze for ExtractedMemory
impl RefUnwindSafe for ExtractedMemory
impl Send for ExtractedMemory
impl Sync for ExtractedMemory
impl Unpin for ExtractedMemory
impl UnsafeUnpin for ExtractedMemory
impl UnwindSafe for ExtractedMemory
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