[Add] browser-use and main.py
This commit is contained in:
parent
08e64bdf45
commit
96914d44ac
221 changed files with 30952 additions and 1 deletions
35
browser-use/browser_use/__init__.py
Normal file
35
browser-use/browser_use/__init__.py
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
import warnings
|
||||
|
||||
# Suppress specific deprecation warnings from FAISS
|
||||
warnings.filterwarnings('ignore', category=DeprecationWarning, module='faiss.loader')
|
||||
warnings.filterwarnings('ignore', message='builtin type SwigPyPacked has no __module__ attribute')
|
||||
warnings.filterwarnings('ignore', message='builtin type SwigPyObject has no __module__ attribute')
|
||||
warnings.filterwarnings('ignore', message='builtin type swigvarlink has no __module__ attribute')
|
||||
|
||||
from browser_use.logging_config import setup_logging
|
||||
|
||||
setup_logging()
|
||||
|
||||
from browser_use.agent.prompts import SystemPrompt as SystemPrompt
|
||||
from browser_use.agent.service import Agent as Agent
|
||||
from browser_use.agent.views import ActionModel as ActionModel
|
||||
from browser_use.agent.views import ActionResult as ActionResult
|
||||
from browser_use.agent.views import AgentHistoryList as AgentHistoryList
|
||||
from browser_use.browser.browser import Browser as Browser
|
||||
from browser_use.browser.browser import BrowserConfig as BrowserConfig
|
||||
from browser_use.browser.context import BrowserContextConfig
|
||||
from browser_use.controller.service import Controller as Controller
|
||||
from browser_use.dom.service import DomService as DomService
|
||||
|
||||
__all__ = [
|
||||
'Agent',
|
||||
'Browser',
|
||||
'BrowserConfig',
|
||||
'Controller',
|
||||
'DomService',
|
||||
'SystemPrompt',
|
||||
'ActionResult',
|
||||
'ActionModel',
|
||||
'AgentHistoryList',
|
||||
'BrowserContextConfig',
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue