pub struct RecallResult {
pub facts: Vec<RecalledFact>,
pub edges: Vec<RecalledEdge>,
pub rendered: String,
pub truncated: bool,
}Expand description
A recall response. Reusable: pass to
Memory::recall_into repeatedly and the buffers are recycled.
Fields§
§facts: Vec<RecalledFact>Selected facts, descending fused score.
edges: Vec<RecalledEdge>Edges walked by the graph source (deduplicated).
rendered: StringThe compact prompt block (empty string when nothing was found).
truncated: booltrue when selection stopped at k or the token budget with
candidates left over.
Trait Implementations§
Source§impl Clone for RecallResult
impl Clone for RecallResult
Source§fn clone(&self) -> RecallResult
fn clone(&self) -> RecallResult
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 moreSource§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