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
whoops dont mix branch changes
Nick Sweeting48a63fa3af29
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex ed80216fe..abb7d35b1 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -16,7 +16,6 @@ from typing import Any, Generic, TypeVarfrom dotenv import load_dotenvfrom browser_use.browser.session import DEFAULT_BROWSER_PROFILE-from browser_use.eventbus.models import UUIDStrload_dotenv()@@ -173,8 +172,8 @@ class Agent(Generic[Context]):page_extraction_llm = llm# Generate unique IDs for this agent session and task early- self.session_id: UUIDStr = uuid7str()- self.task_id: UUIDStr = uuid7str()+ self.session_id: str = uuid7str()+ self.task_id: str = uuid7str()# Create instance-specific loggerself._logger = logging.getLogger(f'browser_use.Agent[{self.task_id[-3:]}]')