pub struct SemanticMemory {
pub memory_id: SemanticMemoryId,
pub namespace: MemoryNamespace,
pub content: String,
pub sources: Vec<SemanticMemorySource>,
pub metadata: BTreeMap<String, Value>,
pub revision: u64,
pub created_at_ms: u64,
pub updated_at_ms: u64,
}Expand description
Cross-conversation semantic fact, preference, or durable user knowledge.
Semantic memory is never inferred merely by appending transcript messages. Applications must explicitly curate and upsert it with provenance.
Fields§
§memory_id: SemanticMemoryIdStable memory identity.
namespace: MemoryNamespaceIsolation namespace.
content: StringSearchable semantic content.
sources: Vec<SemanticMemorySource>Immutable transcript provenance.
metadata: BTreeMap<String, Value>Application-owned structured metadata.
revision: u64Monotonic update revision.
created_at_ms: u64Store-authoritative creation time.
updated_at_ms: u64Store-authoritative last-update time.
Trait Implementations§
Source§impl Clone for SemanticMemory
impl Clone for SemanticMemory
Source§fn clone(&self) -> SemanticMemory
fn clone(&self) -> SemanticMemory
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 SemanticMemory
impl Debug for SemanticMemory
Source§impl<'de> Deserialize<'de> for SemanticMemory
impl<'de> Deserialize<'de> for SemanticMemory
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 PartialEq for SemanticMemory
impl PartialEq for SemanticMemory
Source§impl Serialize for SemanticMemory
impl Serialize for SemanticMemory
impl StructuralPartialEq for SemanticMemory
Auto Trait Implementations§
impl Freeze for SemanticMemory
impl RefUnwindSafe for SemanticMemory
impl Send for SemanticMemory
impl Sync for SemanticMemory
impl Unpin for SemanticMemory
impl UnsafeUnpin for SemanticMemory
impl UnwindSafe for SemanticMemory
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