MemoryBinding

Trait MemoryBinding 

Source
pub trait MemoryBinding: Send + Sync {
    // Required methods
    fn install(&self, live: Live, memory: &MemorySpec) -> Live;
    fn remember(&self, note: String);
}
Expand description

The seam through which a memory engine plugs into a spec-driven session.

The spec’s memory section is pure data; the engine that honors it lives above this crate (gemini-memory-rs implements this trait over its MemorySession). apply calls install once to wire tools/ingestion/slots, and routes every EffectSpec::Remember through remember.

Required Methods§

Source

fn install(&self, live: Live, memory: &MemorySpec) -> Live

Wire the memory subsystem onto the builder per the spec’s declaration.

Source

fn remember(&self, note: String)

Durably remember a note (fire-and-forget; implementations may commit asynchronously).

Implementors§