Summarization for Multi Agent Systems

Are there any summarization tools/modules that come with langgraph when it comes to better managing context? I have a multi agent system where multiple agents can be tapped in to have conversations with a user. Over time the context builds up and then the performance of the agent degrades. I could just do some context engineering to summarize the current state of the conversation and clean up the message history but curious if there are any helper functions/libraries that help with this in langchain or langgraph.

@jriedel199715 have you checked summarization middleware ? depending on your implementation this may help , check it out anyway

1 Like

This is great! I have a lot of questions about this as the video I watched here does not go over some key aspects of what is going on and how you add control over the summarization prompt. I am using langgraph so I am using this middle ware step as a node in my graph.

1 Like