pub struct Memory {
pub id: String,
pub content: String,
pub memory_type: String,
pub importance: f32,
pub metadata: Option<Value>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub access_count: Option<i64>,
}Expand description
A stored memory returned by agent endpoints (non-recall, no similarity score).
Fields§
§id: StringMemory ID
content: StringMemory content
memory_type: StringMemory type (episodic, semantic, procedural, working)
importance: f32Importance score (0.0–1.0)
metadata: Option<Value>Optional metadata
created_at: Option<String>Creation timestamp (ISO 8601)
updated_at: Option<String>Last update timestamp (ISO 8601)
access_count: Option<i64>Number of times this memory has been accessed
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Memory
impl<'de> Deserialize<'de> for Memory
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 Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnsafeUnpin for Memory
impl UnwindSafe for Memory
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