pub struct RecalledMemory {Show 14 fields
pub id: String,
pub content: String,
pub memory_type: MemoryType,
pub importance: f32,
pub score: f32,
pub smart_score: Option<f32>,
pub weighted_score: Option<f32>,
pub tags: Vec<String>,
pub session_id: Option<String>,
pub metadata: Option<Value>,
pub created_at: u64,
pub last_accessed_at: u64,
pub access_count: u32,
pub depth: Option<u8>,
}Expand description
A recalled memory
Fields§
§id: String§content: String§memory_type: MemoryType§importance: f32§score: f32The ranking score — equals smart_score when present, then weighted_score, then raw score.
smart_score: Option<f32>Raw smart_score from the server (the primary ranking key).
weighted_score: Option<f32>Raw weighted_score from the server.
session_id: Option<String>§metadata: Option<Value>§created_at: u64§last_accessed_at: u64§access_count: u32§depth: Option<u8>KG-3: hop depth at which this memory was found (only set on associated memories)
Trait Implementations§
Source§impl Clone for RecalledMemory
impl Clone for RecalledMemory
Source§fn clone(&self) -> RecalledMemory
fn clone(&self) -> RecalledMemory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecalledMemory
impl Debug for RecalledMemory
Source§impl<'de> Deserialize<'de> for RecalledMemory
impl<'de> Deserialize<'de> for RecalledMemory
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RecalledMemory
impl RefUnwindSafe for RecalledMemory
impl Send for RecalledMemory
impl Sync for RecalledMemory
impl Unpin for RecalledMemory
impl UnsafeUnpin for RecalledMemory
impl UnwindSafe for RecalledMemory
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