refactor : memory clear section function logic
This commit is contained in:
1 parent
ed2a9cc204
commit
7553d9dbb6
5 files changed
+21
-87
No files matched your search
@@ -357,7 +357,7 @@ 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, mem_last_idx)
|
||||
self.memory.clear_section(mem_begin_idx+1, mem_last_idx-1)
|
||||
return answer, reasoning
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user