Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
change max failure to 5
Saurav Panda8263a8d91d00
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex 7916fdb8b..b69bdef4b 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -167,7 +167,7 @@ class Agent(Generic[Context, AgentStructuredOutput]):use_vision: bool | Literal['auto'] = True,save_conversation_path: str | Path | None = None,save_conversation_path_encoding: str | None = 'utf-8',- max_failures: int = 7,+ max_failures: int = 5,override_system_message: str | None = None,extend_system_message: str | None = None,generate_gif: bool | str = False,diff --git a/browser_use/agent/views.py b/browser_use/agent/views.pyindex 0169e2983..b73afc5e1 100644--- a/browser_use/agent/views.py+++ b/browser_use/agent/views.py@@ -62,7 +62,7 @@ class AgentSettings(BaseModel):vision_detail_level: Literal['auto', 'low', 'high'] = 'auto'save_conversation_path: str | Path | None = Nonesave_conversation_path_encoding: str | None = 'utf-8'- max_failures: int = 7+ max_failures: int = 5generate_gif: bool | str = Falseoverride_system_message: str | None = Noneextend_system_message: str | None = None