Expand description
Cross-session memory: the MemoryManager plugin, the MemoryStore trait backends
implement, and extraction of memories from the conversation.
Ready-made stores are in vended_memory_stores.
Re-exports§
pub use crate::injection::InjectionConfig;pub use crate::injection::InjectionConfigBuilder;pub use crate::injection::InjectionContext;pub use crate::injection::InjectionTrigger;pub use crate::types::Toggle;pub use extraction::ExtractionConfig;pub use extraction::ExtractionConfigBuilder;pub use extraction::ExtractionFire;pub use extraction::ExtractionResult;pub use extraction::ExtractionTrigger;pub use extraction::ExtractionTriggerContext;pub use extraction::Extractor;pub use extraction::ExtractorContext;pub use extraction::IntervalTrigger;pub use extraction::IntervalTriggerOptions;pub use extraction::IntervalTriggerOptionsBuilder;pub use extraction::InvocationTrigger;pub use extraction::MemoryContentBlockType;pub use extraction::MemoryMessageFilter;pub use extraction::ModelExtractor;pub use extraction::ModelExtractorOptions;pub use extraction::ModelExtractorOptionsBuilder;
Modules§
- extraction
- Automatic memory extraction: triggers decide when a store’s unsaved messages are written, extractors decide how.
Structs§
- AddMessages
Context - Context the manager passes to
MemoryStore::add_messageswith a batch (AddMessagesContext). Fields may be added without changing the method. - Aggregate
Error - Several failures reported as one: the message names what failed and
errorsholds each cause. - Memory
AddOptions - Options for
MemoryManager::add(MemoryAddOptions). - Memory
AddOptions Builder - Use builder syntax to set the inputs and finish with
build(). - Memory
AddTool Config - Configuration of the
add_memorytool (MemoryAddToolConfig). - Memory
AddTool Config Builder - Use builder syntax to set the inputs and finish with
build(). - Memory
Entry - One memory entry retrieved from or stored to a memory store (
MemoryEntry). - Memory
Format - Renders retrieved entries into the injected text (
MemoryInjectionConfig.format); an error fails open. A custom format that emits markup does its own escaping. - Memory
Injection Config - Memory context injection (
MemoryInjectionConfig): before a model call the manager searches memory and folds the top results into that call’s input only; they never enter the stored conversation or session. - Memory
Injection Config Builder - Use builder syntax to set the inputs and finish with
build(). - Memory
Manager - Cross-session memory for agents (
MemoryManager): manages one or moreMemoryStores and exposes thesearch_memoryandadd_memorytools, any tools the stores provide, memory injection before model calls and automatic extraction. - Memory
Manager Config - Configuration for the
MemoryManager(MemoryManagerConfig). - Memory
Manager Config Builder - Use builder syntax to set the inputs and finish with
build(). - Memory
Query - Derives the injection search query from the conversation (
MemoryInjectionConfig.query):Ok(None)or blank skips the call, an error fails open. - Memory
Search Options - Options for
MemoryManager::search(MemorySearchOptions). - Memory
Search Options Builder - Use builder syntax to set the inputs and finish with
build(). - Memory
Tool Config - A custom name or description for a memory tool (
MemoryToolConfig). - Memory
Tool Config Builder - Use builder syntax to set the inputs and finish with
build(). - Search
Options - Options for
MemoryStore::search(SearchOptions). - Search
Options Builder - Use builder syntax to set the inputs and finish with
build().
Enums§
- Memory
Manager Source - The memory manager an agent uses: an instance, or a config the agent builds one from.
Traits§
- Memory
Store - A memory store backend (
MemoryStore, with the declarativeMemoryStoreConfigproperties as methods).