pub struct MemoryResult {
pub content: String,
pub score: f32,
pub source: String,
pub confidence: f32,
}Expand description
ContextBuilder: layered context loading with token budget management. Priority order: Identity(0) > Bootstrap(1) > AlwaysOnSkills(2) > AvailableSkills(3) > Memory(4) A single memory result with its relevance score and metadata.
Fields§
§content: String§score: f32§source: String§confidence: f32Effective confidence of the memory (0.0 - 1.0).
Trait Implementations§
Source§impl Clone for MemoryResult
impl Clone for MemoryResult
Source§fn clone(&self) -> MemoryResult
fn clone(&self) -> MemoryResult
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 moreAuto Trait Implementations§
impl Freeze for MemoryResult
impl RefUnwindSafe for MemoryResult
impl Send for MemoryResult
impl Sync for MemoryResult
impl Unpin for MemoryResult
impl UnsafeUnpin for MemoryResult
impl UnwindSafe for MemoryResult
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