Skip to main content

MemoryGate

Type Alias MemoryGate 

Source
pub type MemoryGate = Arc<dyn Fn(&Value, &Signal) -> Result<Value, String> + Send + Sync>;
Expand description

Decides whether a recall runs ({"retrieve", "probability"?}) and whether a write is kept ({"action": "keep" | "skip" | "sensitive", "confidence"?}).

Aliased Typeยง

pub struct MemoryGate { /* private fields */ }