Skip to main content

Module memory

Module memory 

Source
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ยง

BehavioralRule
A distilled behavioral rule generated from accumulated corrections and facts.
CompressionResult
Result of a context compression operation.
ContextBreakdown
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.
FlushConfig
Configuration for automatic memory flushing.
KnowledgeDistiller
The KnowledgeDistiller processes accumulated corrections and facts from LongTermMemory to generate compressed behavioral rules. These rules are injected into the system prompt to influence future agent behavior, creating a cross-session learning loop.
KnowledgeStore
Persistent knowledge store containing distilled behavioral rules.
LongTermMemory
Long-term memory persisted across sessions.
MemoryFlusher
Tracks dirty state and triggers for automatic memory persistence.
MemorySystem
The unified memory system combining all three tiers.
Session
A persistable session containing the memory state.
SessionMetadata
Metadata about a saved session.
ShortTermMemory
Short-term memory: sliding window of recent messages with summarization support.
WorkingMemory
Working memory for the currently executing task.