mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-06 08:01:31 +00:00
browser-use upgrade
This commit is contained in:
parent
b546267b70
commit
f3401076cb
4 changed files with 169 additions and 55 deletions
|
|
@ -48,6 +48,7 @@ class State:
|
|||
accept_downloads=True,
|
||||
downloads_dir=files.get_abs_path("tmp/downloads"),
|
||||
downloads_path=files.get_abs_path("tmp/downloads"),
|
||||
allowed_domains=["*"],
|
||||
executable_path=pw_binary,
|
||||
keep_alive=True,
|
||||
minimum_wait_page_load_time=1.0,
|
||||
|
|
@ -143,6 +144,7 @@ class State:
|
|||
),
|
||||
controller=controller,
|
||||
enable_memory=False, # Disable memory to avoid state conflicts
|
||||
llm_timeout=3000, # TODO rem
|
||||
sensitive_data=cast(dict[str, str | dict[str, str]] | None, secrets_dict or {}), # Pass secrets
|
||||
)
|
||||
except Exception as e:
|
||||
|
|
@ -382,7 +384,7 @@ class BrowserAgent(Tool):
|
|||
def get_use_agent_log(use_agent: browser_use.Agent | None):
|
||||
result = ["🚦 Starting task"]
|
||||
if use_agent:
|
||||
action_results = use_agent.state.history.action_results()
|
||||
action_results = use_agent.history.action_results() or []
|
||||
short_log = []
|
||||
for item in action_results:
|
||||
# final results
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue