pub struct MemoryRecord {
pub id: Uuid,
pub content: String,
pub metadata: HashMap<String, Value>,
pub user_id: Option<String>,
pub agent_id: Option<String>,
pub run_id: Option<String>,
pub hash: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A stored memory record
Fields§
§id: UuidUnique identifier
content: StringMemory content
metadata: HashMap<String, Value>Associated metadata
user_id: Option<String>User ID scope
agent_id: Option<String>Agent ID scope
run_id: Option<String>Run ID scope
hash: StringContent hash for deduplication
created_at: DateTime<Utc>Creation timestamp
updated_at: DateTime<Utc>Last update timestamp
Implementations§
Trait Implementations§
Source§impl Clone for MemoryRecord
impl Clone for MemoryRecord
Source§fn clone(&self) -> MemoryRecord
fn clone(&self) -> MemoryRecord
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryRecord
impl Debug for MemoryRecord
Source§impl<'de> Deserialize<'de> for MemoryRecord
impl<'de> Deserialize<'de> for MemoryRecord
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
Source§impl From<&MemoryRecord> for Payload
impl From<&MemoryRecord> for Payload
Source§fn from(record: &MemoryRecord) -> Self
fn from(record: &MemoryRecord) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MemoryRecord
impl RefUnwindSafe for MemoryRecord
impl Send for MemoryRecord
impl Sync for MemoryRecord
impl Unpin for MemoryRecord
impl UnwindSafe for MemoryRecord
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)