Skip to main content

RememberCapable

Trait RememberCapable 

Source
pub trait RememberCapable {
    // Required method
    fn memory(&self) -> Option<&Arc<dyn LoopMemory>>;
}
Expand description

Capability to store, retrieve, and consolidate agent memory.

When a LoopMemory backend is configured, the engine stores tool-execution trajectories, retrieves relevant entries as context before each turn, and consolidates the store at the end of a successful run.

§Implementors

  • LoopManagers — the framework’s default implementation.

§When to use

Use this trait bound when you need to access the memory backend during the agent loop — for example to inspect what was stored or trigger a manual consolidation.

Required Methods§

Source

fn memory(&self) -> Option<&Arc<dyn LoopMemory>>

Returns the memory backend, if configured.

Returns None when no memory store is attached.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§