pub struct MemoryEntry {
pub id: String,
pub session_id: String,
pub topic: String,
pub summary: String,
pub raw_excerpt: String,
pub keywords: Vec<String>,
pub importance: MemoryImportance,
pub embedding: Option<Vec<f32>>,
pub created_at_epoch_ms: i64,
}Expand description
Persisted memory record.
Fields§
§id: StringStable entry identifier.
session_id: StringConversation session identifier.
topic: StringTopic key.
summary: StringCompact summary used for retrieval.
raw_excerpt: StringFull excerpt or concatenated turn content.
keywords: Vec<String>Searchable keywords.
importance: MemoryImportanceImportance signal.
embedding: Option<Vec<f32>>Optional vector embedding.
created_at_epoch_ms: i64Unix epoch milliseconds.
Trait Implementations§
Source§impl Clone for MemoryEntry
impl Clone for MemoryEntry
Source§fn clone(&self) -> MemoryEntry
fn clone(&self) -> MemoryEntry
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 MemoryEntry
impl Debug for MemoryEntry
Source§impl<'de> Deserialize<'de> for MemoryEntry
impl<'de> Deserialize<'de> for MemoryEntry
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 PartialEq for MemoryEntry
impl PartialEq for MemoryEntry
Source§impl Serialize for MemoryEntry
impl Serialize for MemoryEntry
impl StructuralPartialEq for MemoryEntry
Auto Trait Implementations§
impl Freeze for MemoryEntry
impl RefUnwindSafe for MemoryEntry
impl Send for MemoryEntry
impl Sync for MemoryEntry
impl Unpin for MemoryEntry
impl UnsafeUnpin for MemoryEntry
impl UnwindSafe for MemoryEntry
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