pub struct MemoryNode {Show 13 fields
pub id: MemoryId,
pub agent_id: AgentId,
pub memory_type: MemoryType,
pub embedding: Embedding,
pub content: String,
pub created_at: Timestamp,
pub accessed_at: Timestamp,
pub access_count: u32,
pub salience: Salience,
pub confidence: Confidence,
pub space_id: SpaceId,
pub attributes: HashMap<String, AttributeValue>,
pub tags: Vec<String>,
}Expand description
A memory node: the atomic unit of knowledge in MenteDB.
Combines vector embeddings, graph connections, temporal properties, and flexible attributes in a single primitive.
Fields§
§id: MemoryIdUnique identifier.
agent_id: AgentIdThe agent that owns this memory.
memory_type: MemoryTypeMemory type classification.
embedding: EmbeddingEmbedding vector for semantic similarity search.
content: StringHuman-readable content.
created_at: TimestampWhen this memory was created.
accessed_at: TimestampWhen this memory was last accessed.
access_count: u32How many times this memory has been accessed.
salience: SalienceCurrent salience score (decays over time).
confidence: ConfidenceConfidence in this memory’s accuracy.
space_id: SpaceIdThe memory space this belongs to.
attributes: HashMap<String, AttributeValue>Flexible key-value attributes.
Tags for bitmap indexing.
Implementations§
Source§impl MemoryNode
impl MemoryNode
Trait Implementations§
Source§impl Clone for MemoryNode
impl Clone for MemoryNode
Source§fn clone(&self) -> MemoryNode
fn clone(&self) -> MemoryNode
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 MemoryNode
impl Debug for MemoryNode
Source§impl<'de> Deserialize<'de> for MemoryNode
impl<'de> Deserialize<'de> for MemoryNode
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 MemoryNode
impl RefUnwindSafe for MemoryNode
impl Send for MemoryNode
impl Sync for MemoryNode
impl Unpin for MemoryNode
impl UnsafeUnpin for MemoryNode
impl UnwindSafe for MemoryNode
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