Fix : prevent asking for clarification multiple time + readme update

This commit is contained in:
martin legrand
2025-04-14 11:58:02 +02:00
parent 8da3d2b3f8
commit 454e68033c
3 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -341,7 +341,7 @@ class BrowserAgent(Agent):
complete = True
break
if link == None or Action.GO_BACK.value in answer or link in self.search_history:
if (link == None and not len(extracted_form)) or Action.GO_BACK.value in answer or link in self.search_history:
pretty_print(f"Going back to results. Still {len(unvisited)}", color="status")
unvisited = self.select_unvisited(search_result)
prompt = self.make_newsearch_prompt(user_prompt, unvisited)