pub struct VisualMemory {Show 16 fields
pub id: u32,
pub description: String,
pub detailed_description: Option<String>,
pub embedding: Vec<f64>,
pub captured_at_ms: f64,
pub last_accessed_ms: f64,
pub access_count: u32,
pub emotional_context: EmotionalContext,
pub significance: f64,
pub source: VisualSource,
pub shared_by: Option<String>,
pub video_id: Option<String>,
pub frame_number: Option<u32>,
pub objects: Vec<String>,
pub tags: Vec<String>,
pub is_pinned: bool,
}Expand description
A visual memory with full metadata.
This represents a stored image or video frame with its associated context, embeddings, and retrieval metadata.
Fields§
§id: u32Unique identifier
description: StringShort description (the “gist” of what’s in the image)
detailed_description: Option<String>Detailed description (specific elements, decays faster)
embedding: Vec<f64>Visual embedding vector (from vision model)
captured_at_ms: f64When the image was captured/received
last_accessed_ms: f64Most recent access timestamp
access_count: u32Access count (for familiarity computation)
emotional_context: EmotionalContextEmotional context at capture time
significance: f64Significance score (0-1, how memorable/important)
source: VisualSourceWhere this image came from
Who shared this (if applicable)
video_id: Option<String>Video ID if this is a frame
frame_number: Option<u32>Frame number within video
objects: Vec<String>Detected objects/entities
Semantic tags (auto-generated or manual)
is_pinned: boolWhether this memory is pinned (protected from decay/pruning)
Implementations§
Source§impl VisualMemory
impl VisualMemory
Sourcepub const fn is_video_frame(&self) -> bool
pub const fn is_video_frame(&self) -> bool
Check if this is a video frame.
Sourcepub fn emotional_weight(&self) -> f64
pub fn emotional_weight(&self) -> f64
Compute emotional weight for retrieval.
Trait Implementations§
Source§impl Clone for VisualMemory
impl Clone for VisualMemory
Source§fn clone(&self) -> VisualMemory
fn clone(&self) -> VisualMemory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more