fix : stuck for and back same webpage link
This commit is contained in:
@@ -336,7 +336,7 @@ class BrowserAgent(Agent):
|
||||
complete = True
|
||||
break
|
||||
|
||||
if link == None or Action.GO_BACK.value in answer:
|
||||
if link == None 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)
|
||||
|
||||
@@ -128,6 +128,7 @@ class AgentRouter:
|
||||
("Check if a file named ‘project_proposal.pdf’ exists in my Documents", "LOW"),
|
||||
("Search the web for tips on improving coding skills", "LOW"),
|
||||
("Write a Python script to count words in a text file", "LOW"),
|
||||
("Search the web for restaurant", "LOW"),
|
||||
("Find a public API for sports scores and build a web app to show live updates", "HIGH"),
|
||||
("Create a simple HTML page with CSS styling", "LOW"),
|
||||
("hi", "LOW"),
|
||||
|
||||
Reference in New Issue
Block a user