mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-19 16:31:30 +00:00
BIG PYTHON REFACTOR
Python scripts moved out of python/ folder to root to be unified with plugins + frontend extension around api calls
This commit is contained in:
parent
f94b7d742c
commit
d02dda3667
326 changed files with 1096 additions and 862 deletions
|
|
@ -1,30 +0,0 @@
|
|||
# import asyncio
|
||||
# from python.helpers.tool import Tool, Response
|
||||
# from python.tools import browser
|
||||
# from python.tools.browser import Browser
|
||||
|
||||
|
||||
# class BrowserOpen(Browser):
|
||||
|
||||
# async def execute(self, url="", **kwargs):
|
||||
# self.update_progress("Initializing...")
|
||||
# await self.prepare_state()
|
||||
|
||||
# try:
|
||||
# if url:
|
||||
# self.update_progress("Opening page...")
|
||||
# await self.state.browser.open(url)
|
||||
|
||||
# self.update_progress("Retrieving...")
|
||||
# await self.state.browser.wait_for_action()
|
||||
# response = await self.state.browser.get_clean_dom()
|
||||
# self.update_progress("Taking screenshot...")
|
||||
# screenshot = await self.save_screenshot()
|
||||
# self.log.update(screenshot=screenshot)
|
||||
# except Exception as e:
|
||||
# response = str(e)
|
||||
# self.log.update(error=response)
|
||||
|
||||
# self.cleanup_history()
|
||||
# self.update_progress("Done")
|
||||
# return Response(message=response, break_loop=False)
|
||||
Loading…
Add table
Add a link
Reference in a new issue