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§
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>
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 moreimpl<'a> Copy for RememberInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for RememberInput<'a>
impl<'a> RefUnwindSafe for RememberInput<'a>
impl<'a> Send for RememberInput<'a>
impl<'a> Sync for RememberInput<'a>
impl<'a> Unpin for RememberInput<'a>
impl<'a> UnsafeUnpin for RememberInput<'a>
impl<'a> UnwindSafe for RememberInput<'a>
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