Multi AI Agent Memory Bleed Issues

You can enable the Group Messages option to get a 1-item array for the messages:

Then use any AI node (such as Basic LLM Chain) to ask a model to summarize the messages:

The prompt would look something like this:

So the whole idea is that you’ve separated the memory from the first agent and the second agent.

In other words, there isn’t really a second agent, you’re just reading the memory from the first agent, then summarizing that messages, this process has nothing to do with the first agent itself..

I hope everything makes sense now..

2 Likes