pub struct ContextAssembler;Expand description
Main entry point for context assembly.
Implementations§
Source§impl ContextAssembler
impl ContextAssembler
Sourcepub fn assemble(
memories: Vec<ScoredMemory>,
edges: Vec<MemoryEdge>,
config: &AssemblyConfig,
) -> ContextWindow
pub fn assemble( memories: Vec<ScoredMemory>, edges: Vec<MemoryEdge>, config: &AssemblyConfig, ) -> ContextWindow
Assemble memories and edges into a context window.
Sourcepub fn assemble_delta(
current_memories: Vec<ScoredMemory>,
edges: Vec<MemoryEdge>,
delta_tracker: &mut DeltaTracker,
config: &AssemblyConfig,
) -> ContextWindow
pub fn assemble_delta( current_memories: Vec<ScoredMemory>, edges: Vec<MemoryEdge>, delta_tracker: &mut DeltaTracker, config: &AssemblyConfig, ) -> ContextWindow
Assemble with delta tracking: only sends changes from the previous turn.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContextAssembler
impl RefUnwindSafe for ContextAssembler
impl Send for ContextAssembler
impl Sync for ContextAssembler
impl Unpin for ContextAssembler
impl UnsafeUnpin for ContextAssembler
impl UnwindSafe for ContextAssembler
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