Memory and tool issues.
We constantly have problems when enabling memory and working with tools. The agent loses the thread it's working on and re-executes tools that had already been executed. Previously, we had lastMessages: 10, and it was even more unstable.
Is there a way to "purge" this type of behavior, or what strategy would be best? When a message is sent to the model, it usually freaks out and re-executes a tool it previously executed, causing a tool to be executed multiple times.
Our solution, for now, is to clear the memory on demand when it starts freaking out and send it the normal message. In this case, it works perfectly.
Any ideas about what could be happening?
Memory configuration when use
Memory configuration:
Is there a way to "purge" this type of behavior, or what strategy would be best? When a message is sent to the model, it usually freaks out and re-executes a tool it previously executed, causing a tool to be executed multiple times.
Our solution, for now, is to clear the memory on demand when it starts freaking out and send it the normal message. In this case, it works perfectly.
Any ideas about what could be happening?
Memory configuration when use
agent.streamMemory configuration: