pub struct ContextLayout { /* private fields */ }Expand description
Arranges memories into attention zones following the U-curve pattern.
Implementations§
Source§impl ContextLayout
impl ContextLayout
pub fn new(thresholds: ZoneThresholds) -> Self
Sourcepub fn arrange(&self, memories: Vec<ScoredMemory>) -> Vec<ContextBlock>
pub fn arrange(&self, memories: Vec<ScoredMemory>) -> Vec<ContextBlock>
Arrange scored memories into attention-optimized zones.
Trait Implementations§
Source§impl Debug for ContextLayout
impl Debug for ContextLayout
Auto Trait Implementations§
impl Freeze for ContextLayout
impl RefUnwindSafe for ContextLayout
impl Send for ContextLayout
impl Sync for ContextLayout
impl Unpin for ContextLayout
impl UnsafeUnpin for ContextLayout
impl UnwindSafe for ContextLayout
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