pub struct RememberInput {
pub id: Option<String>,
pub text: String,
pub event_time: Option<Millis>,
pub valid_from: Option<Millis>,
pub valid_to: Option<Millis>,
pub subject: Option<String>,
pub supersedes: Option<Vec<String>>,
pub entities: Option<Vec<String>>,
pub metadata: Option<Value>,
pub embedding: Option<Vec<f64>>,
pub source_uri: Option<String>,
}Expand description
One fact to remember.
Fields§
§id: Option<String>Caller-chosen id. Absent: a deterministic id derived from the content, so retrying the
same call stores the same fact once. Ids may not start with hms:.
text: String§event_time: Option<Millis>When the thing the fact describes happened (for example a conversation’s date). It is not the ingest time, which the store records itself.
valid_from: Option<Millis>Start of the interval in which the fact holds. Absent: unbounded.
valid_to: Option<Millis>End (exclusive) of the interval in which the fact holds. Absent: unbounded.
subject: Option<String>What the fact is about; the key supersession policies match on.
supersedes: Option<Vec<String>>Ids of facts this one replaces. They are kept and stay queryable as history.
entities: Option<Vec<String>>Entities the fact mentions; matched exactly by RecallOptions::entities.
metadata: Option<Value>Caller metadata (a JSON object); exact top-level matches work as recall filters.
The key _mem is reserved.
embedding: Option<Vec<f64>>A dense embedding of the text, when the store has an embedding space.
source_uri: Option<String>Trait Implementations§
Source§impl Clone for RememberInput
impl Clone for RememberInput
Source§impl Debug for RememberInput
impl Debug for RememberInput
Source§impl Default for RememberInput
impl Default for RememberInput
Source§impl<'de> Deserialize<'de> for RememberInputwhere
RememberInput: Default,
impl<'de> Deserialize<'de> for RememberInputwhere
RememberInput: Default,
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 RememberInput
impl PartialEq for RememberInput
Source§impl Serialize for RememberInput
impl Serialize for RememberInput
impl StructuralPartialEq for RememberInput
Auto Trait Implementations§
impl Freeze for RememberInput
impl RefUnwindSafe for RememberInput
impl Send for RememberInput
impl Sync for RememberInput
impl Unpin for RememberInput
impl UnsafeUnpin for RememberInput
impl UnwindSafe for RememberInput
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.