Memory · Software component

Summarizing History Compressor

Software componentMemoryCognition & Memoryarc:SummarizingHistoryCompressor

A context window manager that summarises older turns into compact goal, fact, and decision summaries kept in state before pruning the full messages.

Responsibility. Replaces pruned history with compact summaries.

Also known as: Truncation with summarisation, ConversationSummaryMemory, Prompt compression, Conversation summarization, Progressive summarization, Incremental summarization, Periodic history summarization

Variant of Context Window Manager abstract

When to choose. Choose when early context (user goals, key facts, binding decisions) remains relevant later and naive truncation would lose it.

reads; writesis evaluated by; is triggered byinvokesspecializesis target of alternativeTois target of alternativeTois target of alternativeToalternative tois target of alternativeToConversation State Store: reads; writesConversation State StoreCompression Fidelity Validator: is evaluated by; is triggered byCompression Fidelity Val…LLM Inference Service: invokesLLM Inference ServiceContext Window Manager: specializesContext Window ManagerHierarchical History Compressor: is target of alternativeToHierarchical History Com…Full Conversation Buffer: is target of alternativeToFull Conversation BufferSliding-Window History Truncator: is target of alternativeToSliding-Window History T…Trajectory Pruner: alternative toTrajectory PrunerImportance-Weighted History Retainer: is target of alternativeToImportance-Weighted Hist…
Direct neighbourhood (hover for relationship types)

Relationships

invokes dependency

reads dependency

writes dependency

is triggered by dynamic

is evaluated by assurance

alternative to variability

Design guidance

Quantitative guidance

As stated by the sources; verify before use.

Classification

Patterns
Summarise-then-pruneRecent-turns-verbatim plus summary of earlier turnsIncremental summarization every N (typically 5-10) turns
Technologies
LangChain
Quality attributes
Functional suitability: correctness and validity (ISO/IEC 25010 | NIST AI RMF: valid)Performance efficiency (ISO/IEC 25010)
Risks mitigated
Loss of critical early context from truncationExplosive context growth in long conversationsExpensive crisis-point compression

Sources

  1. Ch1.6: T. Nguyen, "Stateful Orchestration - Pitfalls, Integration, and Synthesis," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 1.6. ISBN: 9798244538229.
  2. Ch2.3: T. Nguyen, "LangChain Sequential Frameworks," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 2.3. ISBN: 9798244538229.
  3. Ch3.4: T. Nguyen, "Tuning Model Parameters for Production Performance," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.4. ISBN: 9798244538229.
  4. Ch3.5: T. Nguyen, "Prompt Optimization, Few-Shot Learning, Fine-Tuning," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.5. ISBN: 9798244538229.
  5. Ch3.10: T. Nguyen, "Efficiency Metrics," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.10. ISBN: 9798244538229.
  6. Ch5.9: T. Nguyen, "Working Memory," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 5.9. ISBN: 9798244538229.