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
remove agent call method
Magnus Müller9d27efaf044e
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex ab925982c..197e0477c 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -2006,12 +2006,3 @@ class Agent(Generic[Context, AgentStructuredOutput]):import asyncioreturn asyncio.run(self.run(max_steps=max_steps, on_step_start=on_step_start, on_step_end=on_step_end))-- def __call__(- self,- max_steps: int = 100,- on_step_start: AgentHookFunc | None = None,- on_step_end: AgentHookFunc | None = None,- ) -> AgentHistoryList[AgentStructuredOutput]:- """Make Agent instances callable for simple usage: Agent('task')()"""- return self.run_sync(max_steps=max_steps, on_step_start=on_step_start, on_step_end=on_step_end)diff --git a/examples/simple.py b/examples/simple.pyindex 3ae799bf8..830f7e8e3 100644--- a/examples/simple.py+++ b/examples/simple.py@@ -1,3 +1,3 @@from browser_use import Agent-Agent('Summarize the most recent issue of browser-use library')()+Agent('Find the founders of browser-use').run_sync()