pub enum MemoryTypeV1 {
Claim,
Preference,
Directive,
Commitment,
Episode,
Summary,
}Expand description
v1 memory type — closed enum of 6 speech-act-grounded categories.
Each value maps to one of Searle’s illocutionary classes. See spec §type-semantics for boundary tests and legacy-type absorption.
Variants§
Claim
Assertive speech act — state of the world. Absorbs legacy fact / context / decision.
Preference
Expressive speech act — likes / dislikes / tastes.
Directive
Imperative speech act — rules the user wants applied going forward
(absorbs legacy rule).
Commitment
Commissive speech act — future intent (absorbs legacy goal).
Episode
Narrative — notable past events (absorbs legacy episodic).
Summary
Derived synthesis — only valid with source in {derived, assistant}.
Implementations§
Source§impl MemoryTypeV1
impl MemoryTypeV1
Sourcepub fn from_str_lossy(s: &str) -> MemoryTypeV1
pub fn from_str_lossy(s: &str) -> MemoryTypeV1
Case-insensitive parser that returns a fallback default for unknown input.
Returns MemoryTypeV1::Claim for any unrecognised (or empty) string.
Used at boundaries where robustness beats strictness — e.g. parsing
decrypted blobs written by another client version.
Trait Implementations§
Source§impl Clone for MemoryTypeV1
impl Clone for MemoryTypeV1
Source§fn clone(&self) -> MemoryTypeV1
fn clone(&self) -> MemoryTypeV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more