ddg-web-search-chat / web_search_interfaces.py
Lumpen1's picture
Web search update with summarization.
cae1372
raw
history blame
364 Bytes
import abc
class WebCrawler(abc.ABC):
@abc.abstractmethod
def get_website_content_from_url(self, url: str):
"""Get the website content from an url."""
pass
class WebSearchProvider(abc.ABC):
@abc.abstractmethod
def search_web(self, query: str):
"""Searches the web and returns a list of urls of the result"""
pass