pub struct ExtractedMemory {
pub content: String,
pub memory_type: String,
pub confidence: f32,
pub entities: Vec<String>,
pub tags: 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.
reasoning: StringWhy this memory was extracted (for debugging and auditing).
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