pub struct RecallResult {
pub short_term: Vec<MemoryItem>,
pub long_term: Vec<(MemoryItem, f32)>,
pub entities: Vec<Entity>,
}Expand description
Result of a memory recall
Fields§
§short_term: Vec<MemoryItem>Memories from short-term
long_term: Vec<(MemoryItem, f32)>Memories from long-term with similarity scores
entities: Vec<Entity>Related entities
Implementations§
Source§impl RecallResult
impl RecallResult
Trait Implementations§
Source§impl Debug for RecallResult
impl Debug for RecallResult
Source§impl Default for RecallResult
impl Default for RecallResult
Source§fn default() -> RecallResult
fn default() -> RecallResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecallResult
impl RefUnwindSafe for RecallResult
impl Send for RecallResult
impl Sync for RecallResult
impl Unpin for RecallResult
impl UnsafeUnpin for RecallResult
impl UnwindSafe for RecallResult
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
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>
Converts
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>
Converts
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