Expand description
Three-tier memory system for the Rustant agent.
- Working Memory: Current task state and scratch data (single task lifetime).
- Short-Term Memory: Sliding window of recent conversation with summarization.
- Long-Term Memory: Persistent facts and preferences across sessions.
Structsยง
- Behavioral
Rule - A distilled behavioral rule generated from accumulated corrections and facts.
- Compression
Result - Result of a context compression operation.
- Context
Breakdown - Breakdown of context window usage for the UI.
- Correction
- A correction recorded from user feedback.
- Fact
- A fact extracted from conversation for long-term storage.
- Flush
Config - Configuration for automatic memory flushing.
- Knowledge
Distiller - The
KnowledgeDistillerprocesses accumulated corrections and facts fromLongTermMemoryto generate compressed behavioral rules. These rules are injected into the system prompt to influence future agent behavior, creating a cross-session learning loop. - Knowledge
Store - Persistent knowledge store containing distilled behavioral rules.
- Long
Term Memory - Long-term memory persisted across sessions.
- Memory
Flusher - Tracks dirty state and triggers for automatic memory persistence.
- Memory
System - The unified memory system combining all three tiers.
- Session
- A persistable session containing the memory state.
- Session
Metadata - Metadata about a saved session.
- Short
Term Memory - Short-term memory: sliding window of recent messages with summarization support.
- Working
Memory - Working memory for the currently executing task.