MCPcopy Create free account

hub / github.com/antonis19/autobrowse / functions

Functions30 in github.com/antonis19/autobrowse

↓ 9 callersMethodsend
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 callersMethodconnect_websocket
(self)
browser_proxy_agent.py:45
↓ 2 callersFunctionnum_tokens_from_string
Returns the number of tokens in a text string.
token_count.py:5
↓ 1 callersMethod_build_message_with_context
Build a message with the context retrieved from the HTML using RAG
retrieve_html_proxy_agent.py:110
↓ 1 callersMethod_retrieve_context
Get the most relevant chunk using the user's question as a query
retrieve_html_proxy_agent.py:100
↓ 1 callersMethodask_planner
Entrypoint function to Autobrowse to fulfill a web browsing task.
autobrowse.py:178
↓ 1 callersMethodaugment_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 callersFunctionbuild_vectorstore
(html_chunks: [str])
retrieve_html_proxy_agent.py:29
↓ 1 callersFunctioncleanAttributes
(node)
browser-console/console.js:20
↓ 1 callersMethodconnect_websocket
(self)
retrieve_html_proxy_agent.py:80
↓ 1 callersFunctionexecuteCode
(code)
browser-console/console.js:53
↓ 1 callersFunctionfetchHTML
()
browser-console/console.js:63
↓ 1 callersFunctionfetch_html
Fetch the HTML from the browser
fetch_html_test.py:7
↓ 1 callersMethodfetch_html
Fetch the HTML of the current page from the browser console
retrieve_html_proxy_agent.py:83
↓ 1 callersFunctionget_code_blocks
(message: str)
autobrowse.py:14
↓ 1 callersFunctionget_html_chunks
(html: str)
retrieve_html_proxy_agent.py:17
↓ 1 callersMethodinit_code_generator
(self, model_name = "gpt-4", system_message = "", max_consecutive_auto_reply = 3, browser_console_uri = "ws://
autobrowse.py:149
↓ 1 callersMethodinit_html_assistant
(self, model_name = "gpt-3.5-turbo-16k", system_message = "")
autobrowse.py:125
↓ 1 callersMethodinit_planner
Initialize the planner agent, which generates a plan to fulfill a web browsing task.
autobrowse.py:50
↓ 1 callersFunctioninitializePuppeteer
()
browser-console/console.js:7
↓ 1 callersFunctionis_termination_message_for_code_generator
function to check if a message is a termination message for the code_generator agent.
autobrowse.py:17
↓ 1 callersMethodrun_puppeteer_code
(self, code: str, **kwargs)
browser_proxy_agent.py:51
↓ 1 callersFunctionrun_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
Methodask_code_generator
function to ask code_generator a question. Args: message (str): the question to ask code_generator context_h
autobrowse.py:213
Methodask_html_assistant
Function to ask the html assistant a question about the HTML content of the current page
autobrowse.py:192
Methodexecute_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
Functionis_termination_message_for_planner
function to check if a message is a termination message for the planner agent.
autobrowse.py:27