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 agent_history_description format in service.py to include user_request tags for improved clarity in message logging.
Magnus Müllercdd1bd7f1cd8
diff --git a/browser_use/agent/message_manager/service.py b/browser_use/agent/message_manager/service.pyindex 77d0bdb07..2c23e1a9b 100644--- a/browser_use/agent/message_manager/service.py+++ b/browser_use/agent/message_manager/service.py@@ -209,7 +209,7 @@ class MessageManager:self.state = stateself.system_prompt = system_messageself.file_system = file_system- self.agent_history_description = f'Agent initialized with USER REQUEST: {task}\n'+ self.agent_history_description = f'Agent initialized with <user_request>{task}</user_request>\n'self.read_state_description = ''self.sensitive_data_description = ''# Only initialize messages if state is empty