feat : improve planner agent handling of multifiles project

This commit is contained in:
martin legrand
2025-04-07 12:02:01 +02:00
parent 416d9d00ad
commit a1e71fd0ce
6 changed files with 29 additions and 10 deletions
+1
View File
@@ -297,6 +297,7 @@ class BrowserAgent(Agent):
unvisited = [None]
while not complete:
answer, reasoning = self.llm_decide(prompt, show_reasoning = False)
pretty_print(''*32, color="status")
extracted_form = self.extract_form(answer)
if len(extracted_form) > 0:
+3 -1
View File
@@ -37,9 +37,11 @@ class PlannerAgent(Agent):
lines = text.strip().split('\n')
for line in lines:
if line is None or len(line) == 0:
if line is None:
continue
line = line.strip()
if len(line) == 0:
continue
if '##' in line or line[0].isdigit():
tasks_names.append(line)
continue