pub struct MemoryGuide { /* private fields */ }Expand description
Guide that recalls relevant prior memories and injects them as a
Block::Text into ctx.guides so the model sees them in the system
prompt for every iteration of this run.
Implementations§
Source§impl MemoryGuide
impl MemoryGuide
Trait Implementations§
Source§impl Guide for MemoryGuide
impl Guide for MemoryGuide
fn id(&self) -> &GuideId
fn kind(&self) -> Execution
fn scope(&self) -> &GuideScope
fn apply<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
_w: &'life2 World,
) -> Pin<Box<dyn Future<Output = Result<(), GuideError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for MemoryGuide
impl !RefUnwindSafe for MemoryGuide
impl Send for MemoryGuide
impl Sync for MemoryGuide
impl Unpin for MemoryGuide
impl UnsafeUnpin for MemoryGuide
impl !UnwindSafe for MemoryGuide
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