fix: browser bug
This commit is contained in:
@@ -311,6 +311,8 @@ class BrowserAgent(Agent):
|
||||
links = self.parse_answer(answer)
|
||||
link = self.select_link(links)
|
||||
self.search_history.append(link)
|
||||
hist = '\n'.join([x for x in self.search_history if x is not None])
|
||||
pretty_print(hist, color="warning")
|
||||
|
||||
if "REQUEST_EXIT" in answer:
|
||||
pretty_print(f"Agent requested exit.", color="status")
|
||||
|
||||
@@ -83,7 +83,7 @@ class PlannerAgent(Agent):
|
||||
def show_plan(self, json_plan: dict) -> None:
|
||||
agents_tasks = self.parse_agent_tasks(json_plan)
|
||||
if agents_tasks == (None, None):
|
||||
pretty_print("Failed to make a plan.", color="failure")
|
||||
pretty_print("Failed to make a plan. This can happen with (too) small LLM. Clarify your request and insist on it making a plan.", color="failure")
|
||||
return
|
||||
pretty_print("\n▂▘ P L A N ▝▂", color="status")
|
||||
for task_name, task in agents_tasks:
|
||||
|
||||
Reference in New Issue
Block a user