pub struct RememberInput<'a> {
pub now: u64,
pub text: &'a str,
pub entity: Option<&'a str>,
pub tags: &'a [&'a str],
pub links: &'a [(&'a str, &'a str)],
pub vector: Option<&'a [f32]>,
pub valid_from: Option<u64>,
pub metadata: Option<&'a [(&'a str, &'a str)]>,
}Expand description
Input of remember and revise.
Fields§
§now: u64Host timestamp, unix milliseconds.
text: &'a strFact text, ≤ Config::max_text bytes.
entity: Option<&'a str>Subject entity name; created lazily on first mention.
Tags, verbatim strings, ≤ 32.
links: &'a [(&'a str, &'a str)](rel, target_entity) pairs, ≤ 16; edges go subject → target.
vector: Option<&'a [f32]>Optional embedding, len == Config::dim; quantized on the way in.
Requires dim > 0 and is dropped by the engine’s own re-quantized
replay, so nothing float-nondeterministic reaches the state.
valid_from: Option<u64>Validity start; defaults to now.
metadata: Option<&'a [(&'a str, &'a str)]>Optional metadata as key→value pairs (UTF-8). Passed in any order; the
engine canonicalizes (sorts keys, rejects duplicates) and stores them as
one opaque blob (see [crate::metadata]). None or an empty slice = no
metadata. The engine never interprets the values.
Implementations§
Source§impl<'a> RememberInput<'a>
impl<'a> RememberInput<'a>
Sourcepub fn text(now: u64, text: &'a str) -> RememberInput<'a>
pub fn text(now: u64, text: &'a str) -> RememberInput<'a>
A minimal input: text only.
Trait Implementations§
Source§impl<'a> Clone for RememberInput<'a>
impl<'a> Clone for RememberInput<'a>
Source§fn clone(&self) -> RememberInput<'a>
fn clone(&self) -> RememberInput<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more