Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Merge branch 'main' into feature/url-shortener

Gregor Žuničda0300031110
diff --cc browser_use/agent/service.py
index 03662c753,5bd078295..85f24e7f0
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@@ -180,7 -179,7 +180,8 @@@ class Agent(Generic[Context, AgentStruc
directly_open_url: bool = True,
include_recent_events: bool = False,
sample_images: list[ContentPartTextParam | ContentPartImageParam] | None = None,
+ final_response_after_failure: bool = True,
+ _url_shortening_limit: int = 25,
**kwargs,
):
if llm is None: