pub struct NewMemory {
pub scope: Scope,
pub content: String,
pub metadata: Value,
pub kind: MemoryKind,
pub source_pid: Option<String>,
pub event_at: Option<DateTime<FixedOffset>>,
pub confidence: Confidence,
}Expand description
The attributes of a new memory row for MemoryStore::remember.
Groups the row’s write-time attributes into one value so the insert path
has a single self-documenting parameter rather than a long positional list
(M-INIT-CASCADED). Every field is stated explicitly by the caller — there
are no silent defaults at this layer; the episodic and extract write paths
each supply their own kind, confidence, etc.
Fields§
§scope: ScopeTenant + agent + user partition.
content: StringRaw text of the memory.
metadata: ValueArbitrary JSON attached at write time; round-trips unchanged.
kind: MemoryKindEpisodic (raw utterance) or semantic (extracted fact).
source_pid: Option<String>Originating episodic pid for semantic rows; None for episodic.
event_at: Option<DateTime<FixedOffset>>Event-time of the remembered thing; None when unknown.
confidence: ConfidenceHow sure memoir is of this memory: MAX for episodic, the scaled
extraction score for semantic.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewMemory
impl RefUnwindSafe for NewMemory
impl Send for NewMemory
impl Sync for NewMemory
impl Unpin for NewMemory
impl UnsafeUnpin for NewMemory
impl UnwindSafe for NewMemory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request