Class MemoryFlushManager

java.lang.Object
io.agentscope.harness.agent.memory.MemoryFlushManager

public class MemoryFlushManager extends Object
Manages memory flush operations: extracting long-term memories from a conversation window and appending them to today's daily memory ledger.

Two-layer memory model (this class owns only the first layer):

  • memory/YYYY-MM-DD.md — append-only daily ledger. Each compaction's flush appends a timestamped section here. Written ONLY by this class.
  • MEMORY.md — globally curated, deduplicated, size-bounded long-term memory. Written ONLY by MemoryConsolidator on a periodic schedule. Treated as read-only context here.