pub enum MemoryEvent {
Show 15 variants
FinalTranscriptRecorded {
text: String,
},
ObservationExtracted {
observation: Box<MemoryObservation>,
},
ExtractionFailed {
stage: String,
reason: String,
},
ObservationRejected {
fingerprint: FactFingerprint,
reason: DiscardReason,
},
SessionCandidateMerged {
fingerprint: FactFingerprint,
evidence_count: u32,
},
SessionOverlayUpdated {
revision: u64,
},
ExplicitMutationRequested {
intent: MutationIntent,
statement: String,
},
SessionCheckpointed {
turns: u64,
},
SessionSealed {
candidate_count: usize,
},
MutationProposed {
fingerprint: FactFingerprint,
kind: String,
},
MutationCommitted {
memory_id: MemoryId,
kind: String,
},
MutationRejected {
fingerprint: FactFingerprint,
reason: DiscardReason,
},
MemorySuperseded {
old: MemoryId,
new: MemoryId,
},
MemoryDeleted {
memory_id: MemoryId,
},
IndexRevisionPublished {
revision: u64,
},
}Expand description
A durable fact about something that happened to memory.
Variants§
FinalTranscriptRecorded
A finalized user utterance was accepted as evidence.
ObservationExtracted
An observation was extracted from a finalized utterance.
Fields
observation: Box<MemoryObservation>The observation.
ExtractionFailed
An extraction attempt failed outright.
Distinct from “the turn revealed nothing”: a systematically failing extractor and a quiet conversation look identical from the ledger, and only this event tells them apart.
ObservationRejected
An observation was refused by policy.
Fields
fingerprint: FactFingerprintFingerprint of the refused candidate, for auditing.
reason: DiscardReasonWhy it was refused.
SessionCandidateMerged
Two observations were recognised as the same candidate.
Fields
fingerprint: FactFingerprintThe surviving fingerprint.
SessionOverlayUpdated
The in-session overlay changed.
ExplicitMutationRequested
The user issued an explicit memory command.
Fields
intent: MutationIntentWhat they asked for.
SessionCheckpointed
A long session reached a checkpoint.
SessionSealed
A logical session was sealed and accepts no further writes.
MutationProposed
Consolidation proposed a mutation.
Fields
fingerprint: FactFingerprintFingerprint of the proposal.
MutationCommitted
A mutation was committed to canonical memory.
MutationRejected
A proposal was refused at commit time.
Fields
fingerprint: FactFingerprintFingerprint of the refused proposal.
reason: DiscardReasonWhy it was refused.
MemorySuperseded
An active record was replaced.
MemoryDeleted
A record was deleted at the user’s request.
IndexRevisionPublished
A new retrieval index revision was published.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryEvent
impl Clone for MemoryEvent
Source§fn clone(&self) -> MemoryEvent
fn clone(&self) -> MemoryEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MemoryEvent
impl Debug for MemoryEvent
Source§impl<'de> Deserialize<'de> for MemoryEvent
impl<'de> Deserialize<'de> for MemoryEvent
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>,
Source§impl PartialEq for MemoryEvent
impl PartialEq for MemoryEvent
Source§impl Serialize for MemoryEvent
impl Serialize for MemoryEvent
impl StructuralPartialEq for MemoryEvent
Auto Trait Implementations§
impl Freeze for MemoryEvent
impl RefUnwindSafe for MemoryEvent
impl Send for MemoryEvent
impl Sync for MemoryEvent
impl Unpin for MemoryEvent
impl UnwindSafe for MemoryEvent
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,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].