fix : invalid usage of memory_clear_section

This commit is contained in:
martin legrand 2025-04-15 20:41:23 +02:00
parent a32cf60958
commit e1d55649d5

View File

@ -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__":