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
Fix structured output
Magnus Müllera7262ef082d1
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex f958d2f47..c56a2e746 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -345,7 +345,7 @@ class Agent(Generic[Context, AgentStructuredOutput]):# Initialize message manager with state# Initial system prompt with all actions - will be updated during each stepself._message_manager = MessageManager(- task=task,+ task=self.task,system_message=SystemPrompt(max_actions_per_step=self.settings.max_actions_per_step,override_system_message=override_system_message,