pub struct MemoryEntry {
pub id: String,
pub content: Option<Content>,
pub author: String,
pub timestamp: Option<DateTime<Utc>>,
pub custom_metadata: Map<String, Value>,
}Expand description
A single memory entry.
Fields§
§id: StringThe unique identifier of the memory.
content: Option<Content>The main content of the memory.
Author of the memory.
timestamp: Option<DateTime<Utc>>When the original content of this memory happened. It is forwarded to the LLM formatted
as ISO 8601. None when the event’s timestamp is unset (the zero time).
custom_metadata: Map<String, Value>Optional custom metadata associated with the memory.
Trait Implementations§
Source§impl Clone for MemoryEntry
impl Clone for MemoryEntry
Source§impl Debug for MemoryEntry
impl Debug for MemoryEntry
Source§impl Default for MemoryEntry
impl Default for MemoryEntry
Source§impl PartialEq for MemoryEntry
impl PartialEq for MemoryEntry
impl StructuralPartialEq for MemoryEntry
Auto Trait Implementations§
impl Forget for MemoryEntry
impl Freeze for MemoryEntry
impl Move for MemoryEntry
impl RefUnwindSafe for MemoryEntry
impl Send for MemoryEntry
impl Sync for MemoryEntry
impl Unpin for MemoryEntry
impl UnsafeUnpin for MemoryEntrywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Part>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for MemoryEntrywhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
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