Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antonis19/autobrowse
/ functions
Functions
30 in github.com/antonis19/autobrowse
⨍
Functions
30
◇
Types & classes
3
↓ 9 callers
Method
send
Send a message to another agent. Args: message (dict or str): message to be sent. The message could contain the f
retrieve_html_proxy_agent.py:134
↓ 2 callers
Method
connect_websocket
(self)
browser_proxy_agent.py:45
↓ 2 callers
Function
num_tokens_from_string
Returns the number of tokens in a text string.
token_count.py:5
↓ 1 callers
Method
_build_message_with_context
Build a message with the context retrieved from the HTML using RAG
retrieve_html_proxy_agent.py:110
↓ 1 callers
Method
_retrieve_context
Get the most relevant chunk using the user's question as a query
retrieve_html_proxy_agent.py:100
↓ 1 callers
Method
ask_planner
Entrypoint function to Autobrowse to fulfill a web browsing task.
autobrowse.py:178
↓ 1 callers
Method
augment_message_to_code_gen
Augment the question to code_generator by appending the relevant HTML for it to complete the task, and the code executed so far.
autobrowse.py:200
↓ 1 callers
Function
build_vectorstore
(html_chunks: [str])
retrieve_html_proxy_agent.py:29
↓ 1 callers
Function
cleanAttributes
(node)
browser-console/console.js:20
↓ 1 callers
Method
connect_websocket
(self)
retrieve_html_proxy_agent.py:80
↓ 1 callers
Function
executeCode
(code)
browser-console/console.js:53
↓ 1 callers
Function
fetchHTML
()
browser-console/console.js:63
↓ 1 callers
Function
fetch_html
Fetch the HTML from the browser
fetch_html_test.py:7
↓ 1 callers
Method
fetch_html
Fetch the HTML of the current page from the browser console
retrieve_html_proxy_agent.py:83
↓ 1 callers
Function
get_code_blocks
(message: str)
autobrowse.py:14
↓ 1 callers
Function
get_html_chunks
(html: str)
retrieve_html_proxy_agent.py:17
↓ 1 callers
Method
init_code_generator
(self, model_name = "gpt-4", system_message = "", max_consecutive_auto_reply = 3, browser_console_uri = "ws://
autobrowse.py:149
↓ 1 callers
Method
init_html_assistant
(self, model_name = "gpt-3.5-turbo-16k", system_message = "")
autobrowse.py:125
↓ 1 callers
Method
init_planner
Initialize the planner agent, which generates a plan to fulfill a web browsing task.
autobrowse.py:50
↓ 1 callers
Function
initializePuppeteer
()
browser-console/console.js:7
↓ 1 callers
Function
is_termination_message_for_code_generator
function to check if a message is a termination message for the code_generator agent.
autobrowse.py:17
↓ 1 callers
Method
run_puppeteer_code
(self, code: str, **kwargs)
browser_proxy_agent.py:51
↓ 1 callers
Function
run_puppeteer_commands
()
run_puppeteer_test.py:6
Method
__init__
( self, name: str, is_termination_msg: Optional[Callable[[Dict], bool]] = None,
browser_proxy_agent.py:18
Method
__init__
(self, config: Dict[str, Any], browser_console_uri: str = "ws://localhost:3000")
autobrowse.py:40
Method
__init__
( self, name: str, is_termination_msg: Optional[Callable[[Dict], bool]] = None,
retrieve_html_proxy_agent.py:51
Method
ask_code_generator
function to ask code_generator a question. Args: message (str): the question to ask code_generator context_h
autobrowse.py:213
Method
ask_html_assistant
Function to ask the html assistant a question about the HTML content of the current page
autobrowse.py:192
Method
execute_code_blocks
Overriden function Execute the code blocks and return the result. IF the language is Javascript, the code will be sent to the browser console
browser_proxy_agent.py:67
Function
is_termination_message_for_planner
function to check if a message is a termination message for the planner agent.
autobrowse.py:27