Expand description
Memory providers for storing and retrieving conversation history Memory module for storing and retrieving conversation history.
This module provides various memory implementations for LLM conversations:
- SlidingWindowMemory: Simple FIFO memory with size limit
- EmbeddingMemory: Semantic search using embeddings (future)
- RAGMemory: Document-based retrieval (future)
Re-exports§
pub use chat_wrapper::ChatWithMemory;pub use sliding_window::SlidingWindowMemory;pub use sliding_window::TrimStrategy;
Modules§
- chat_
wrapper - Chat wrapper that adds memory capabilities to any ChatProvider.
- cond_
macros - shared_
memory - sliding_
window - Simple sliding window memory implementation.
Structs§
- Message
Event - Event emitted when a message is added to reactive memory
Enums§
- Memory
Type - Types of memory implementations available
- Message
Condition - Conditions for triggering reactive message handlers
Traits§
- Memory
Provider - Trait for memory providers that can store and retrieve conversation history.