Feat : planning agent task parsing and agents assignation

This commit is contained in:
martin legrand
2025-03-10 13:42:07 +01:00
parent 6ea24974c1
commit aece8de10b
11 changed files with 146 additions and 52 deletions
+3 -3
View File
@@ -57,9 +57,10 @@ class Interaction:
"""Read the input from the user."""
buffer = ""
PROMPT = "\033[1;35m➤➤➤ \033[0m"
while buffer == "" or buffer.isascii() == False:
try:
buffer = input(f">>> ")
buffer = input(PROMPT)
except EOFError:
return None
if buffer == "exit" or buffer == "goodbye":
@@ -94,8 +95,7 @@ class Interaction:
"""Request AI agents to process the user input."""
if self.last_query is None or len(self.last_query) == 0:
return
#agent = self.router.select_agent(self.last_query)
agent = self.agents[3]
agent = self.router.select_agent(self.last_query)
if agent is None:
return
if self.current_agent != agent: