Feat : prompt improve and start link check to avoid paywall

This commit is contained in:
martin legrand
2025-03-14 21:55:23 +01:00
parent 0ee77e8ad9
commit f53647ad3f
4 changed files with 42 additions and 22 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class Agent():
name: str,
prompt_path:str,
provider,
recover_last_session=False) -> None:
recover_last_session=True) -> None:
self.agent_name = name
self.role = None
self.current_directory = os.getcwd()
+2 -1
View File
@@ -19,6 +19,7 @@ class BrowserAgent(Agent):
self.browser.go_to("https://github.com/")
self.search_history = []
self.navigable_links = []
self.ai_notes = []
def extract_links(self, search_result: str):
links = re.findall(r'https?://[^\s]+', search_result)
@@ -64,8 +65,8 @@ class BrowserAgent(Agent):
If you found a clear answer, please say "REQUEST_EXIT".
You must choose a link to navigate to, go back or exit.
Do not explain your choice.
You can take note about your finding with TAKE_NOTE("<your note>")
"""
def llm_decide(self, prompt):
animate_thinking("Thinking...", color="status")