Feat : integration of searxng for private, api free web search

This commit is contained in:
martin legrand
2025-03-17 13:31:43 +01:00
parent e358fd4df7
commit dee4db53fe
15 changed files with 5763 additions and 8 deletions
+3 -2
View File
@@ -3,8 +3,9 @@ import time
from sources.utility import pretty_print, animate_thinking
from sources.agents.agent import Agent
from sources.tools.webSearch import webSearch
from sources.tools.searxSearch import searxSearch
from sources.browser import Browser
class BrowserAgent(Agent):
def __init__(self, model, name, prompt_path, provider):
"""
@@ -12,7 +13,7 @@ class BrowserAgent(Agent):
"""
super().__init__(model, name, prompt_path, provider)
self.tools = {
"web_search": webSearch(),
"web_search": searxSearch(),
}
self.role = "deep research and web search"
self.browser = Browser()