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
Update browser_use/agent/service.py
Carlos A. Planchón78be25ac8384
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex b058b352a..b561105a1 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -651,8 +651,8 @@ class Agent(Generic[Context]):async def run(self,max_steps: int = 100,- before_step_func: Callable | None = None,- after_step_func: Callable | None = None+ on_step_start: AgentHookFunc | None = None,+ on_step_end: AgentHookFunc | None = None) -> AgentHistoryList:"""Execute the task with maximum number of steps"""try: