pub struct MemoryEntry {Show 19 fields
pub id: String,
pub agent: String,
pub content: String,
pub category: String,
pub tags: Vec<String>,
pub created_at: DateTime<Utc>,
pub last_accessed: DateTime<Utc>,
pub access_count: u32,
pub importance: u8,
pub memory_type: MemoryType,
pub keywords: Vec<String>,
pub summary: Option<String>,
pub strength: f64,
pub related_ids: Vec<String>,
pub source_ids: Vec<String>,
pub embedding: Option<Vec<f32>>,
pub confidentiality: Confidentiality,
pub author_user_id: Option<String>,
pub author_tenant_id: Option<String>,
}Expand description
A single memory entry stored by an agent.
Fields§
§id: String§agent: String§content: String§category: String§created_at: DateTime<Utc>§last_accessed: DateTime<Utc>§access_count: u32§importance: u8Importance score (1-10). Default: 5. Set by agent at store time.
memory_type: MemoryTypeClassification of memory origin (episodic, semantic, reflection).
keywords: Vec<String>LLM-generated keywords for improved retrieval.
summary: Option<String>One-sentence summary providing context for the memory content.
strength: f64Ebbinghaus strength score. Starts at 1.0, decays over time, reinforced on access. Entries with low strength may be pruned.
Memory::store preserves whatever value the caller supplies — no
normalisation or clamping at insert time. Memory::recall reinforces
the stored value by +0.2 per access (capped at 1.0) unless the
caller opts out via MemoryQuery::reinforce = false. Decay is
applied lazily at read time via effective_strength.
Bidirectional links to related memory entries.
source_ids: Vec<String>IDs of source entries that were consolidated into this one.
embedding: Option<Vec<f32>>Optional vector embedding for semantic search (hybrid retrieval).
confidentiality: ConfidentialityAccess classification — controls which trust levels may read this entry.
User ID of the agent/user who authored this entry (multi-tenant authorship).
Tenant ID of the agent/user who authored this entry (multi-tenant authorship).
Trait Implementations§
Source§impl Clone for MemoryEntry
impl Clone for MemoryEntry
Source§fn clone(&self) -> MemoryEntry
fn clone(&self) -> MemoryEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more