pub struct ContextBlock {
pub zone: AttentionZone,
pub memories: Vec<ScoredMemory>,
pub estimated_tokens: usize,
}Expand description
A block of memories assigned to a specific attention zone.
Fields§
§zone: AttentionZone§memories: Vec<ScoredMemory>§estimated_tokens: usizeTrait Implementations§
Source§impl Clone for ContextBlock
impl Clone for ContextBlock
Source§fn clone(&self) -> ContextBlock
fn clone(&self) -> ContextBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextBlock
impl RefUnwindSafe for ContextBlock
impl Send for ContextBlock
impl Sync for ContextBlock
impl Unpin for ContextBlock
impl UnsafeUnpin for ContextBlock
impl UnwindSafe for ContextBlock
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