pub struct MemoryItem {
pub id: String,
pub kind: MemoryKind,
pub key: String,
pub content: String,
pub confidence: f64,
pub created_at: DateTime<Utc>,
pub last_reinforced: DateTime<Utc>,
pub last_accessed: Option<DateTime<Utc>>,
pub contradiction_ref: Option<String>,
}Expand description
A single memory item in the semantic or procedural layer.
Fields§
§id: StringUnique identifier for this memory item.
kind: MemoryKindThe kind of memory (semantic or procedural).
key: StringA key identifying the concept or topic this memory relates to.
content: StringThe content of the memory.
confidence: f64Confidence score for this memory (0.0 to 1.0).
created_at: DateTime<Utc>When this memory was first created.
last_reinforced: DateTime<Utc>When this memory was last reinforced (re-inserted with supporting evidence).
last_accessed: Option<DateTime<Utc>>When this memory was last accessed via retrieval.
contradiction_ref: Option<String>Reference to a contradiction record if this item conflicts with another.
Trait Implementations§
Source§impl Clone for MemoryItem
impl Clone for MemoryItem
Source§impl Debug for MemoryItem
impl Debug for MemoryItem
Source§impl<'de> Deserialize<'de> for MemoryItem
impl<'de> Deserialize<'de> for MemoryItem
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 Forget for MemoryItem
impl Freeze for MemoryItem
impl Move for MemoryItem
impl RefUnwindSafe for MemoryItem
impl Send for MemoryItem
impl Sync for MemoryItem
impl Unpin for MemoryItem
impl UnsafeUnpin for MemoryItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
impl UnwindSafe for MemoryItem
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