From e1d55649d574f80acc3aeb49d1e483a920d51969 Mon Sep 17 00:00:00 2001 From: martin legrand Date: Tue, 15 Apr 2025 20:41:23 +0200 Subject: [PATCH] fix : invalid usage of memory_clear_section --- sources/agents/browser_agent.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sources/agents/browser_agent.py b/sources/agents/browser_agent.py index 9d5bc5e..25fdcfe 100644 --- a/sources/agents/browser_agent.py +++ b/sources/agents/browser_agent.py @@ -361,7 +361,6 @@ class BrowserAgent(Agent): mem_last_idx = self.memory.push('user', prompt) answer, reasoning = self.llm_request() pretty_print(answer, color="output") - self.memory.clear_section(mem_begin_idx+1, mem_last_idx-1) return answer, reasoning if __name__ == "__main__":