Tagged articles

SummarizationMiddleware

2 articles · Page 1 of 1
Code Archaeology
Code Archaeology
Mar 18, 2026 · Artificial Intelligence

Deep Agents Context Management: How SummarizationMiddleware Auto-Compresses History

This article details Deep Agents' context management implementation using SummarizationMiddleware, which automatically compresses conversation history during model calls by offloading old messages to backend storage and replacing them with generated summaries, including threshold configuration, cutoff determination, and the three message views that enable traceable, iterative summarization.

Agent MiddlewareBackend StorageConversation Summarization
0 likes · 11 min read
Deep Agents Context Management: How SummarizationMiddleware Auto-Compresses History
Fun with Large Models
Fun with Large Models
Feb 25, 2026 · Artificial Intelligence

Fast Guide to LangChain DeepAgents: Using Summarization Middleware to Optimize Agent Memory

This article explains how LangChain DeepAgents' Summarization middleware automatically compresses conversation history to overcome large‑model context window limits, detailing its core mechanism, applicable scenarios, configuration parameters (trigger, keep, model, summary_prompt), and step‑by‑step Python examples that illustrate its integration and internal message flow.

AI AgentsContext WindowDeepAgents
0 likes · 23 min read
Fast Guide to LangChain DeepAgents: Using Summarization Middleware to Optimize Agent Memory