feat : file agent improved

This commit is contained in:
martin legrand
2025-03-26 12:06:27 +01:00
parent df922b18a7
commit 8922350379
11 changed files with 75 additions and 41 deletions
+3
View File
@@ -103,7 +103,10 @@ class Interaction:
self.current_agent.memory.push('user', self.last_query)
self.current_agent.memory.push('assistant', self.last_answer)
self.current_agent = agent
tmp = self.last_answer
self.last_answer, _ = agent.process(self.last_query, self.speech)
if self.last_answer == tmp:
self.last_answer = None
def show_answer(self) -> None:
"""Show the answer to the user."""