fix: browser bug

This commit is contained in:
martin legrand
2025-04-07 14:55:41 +02:00
parent ff8fdddbdc
commit 21bf224fef
6 changed files with 7 additions and 3 deletions
+2
View File
@@ -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")