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 more
mertunsall188642a68e7a
diff --git a/browser_use/agent/message_manager/service.py b/browser_use/agent/message_manager/service.pyindex f042bac3e..f3fd35de0 100644--- a/browser_use/agent/message_manager/service.py+++ b/browser_use/agent/message_manager/service.py@@ -171,7 +171,6 @@ class MessageManager:content='<example_1>\nHere is an example output of thinking and tool call. You can use it as a reference but do not copy it exactly.',cache=True,)- # placeholder_message = HumanMessage(content='Example output:')self._add_message_with_type(placeholder_message)example_content = dict()diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex a4d70d280..2199a90b8 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -171,6 +171,7 @@ class Agent(Generic[Context, AgentStructuredOutput]):cloud_sync: CloudSync | None = None,calculate_cost: bool = False,display_files_in_done_text: bool = True,+ include_tool_call_examples: bool = False,**kwargs,):# Check for deprecated memory parameters@@ -233,6 +234,7 @@ class Agent(Generic[Context, AgentStructuredOutput]):is_planner_reasoning=is_planner_reasoning,extend_planner_system_message=extend_planner_system_message,calculate_cost=calculate_cost,+ include_tool_call_examples=include_tool_call_examples,)# Token cost servicediff --git a/browser_use/agent/views.py b/browser_use/agent/views.pyindex 31e9ef0c6..379dc7486 100644--- a/browser_use/agent/views.py+++ b/browser_use/agent/views.py@@ -63,6 +63,7 @@ class AgentSettings(BaseModel):is_planner_reasoning: bool = False # type: ignoreextend_planner_system_message: str | None = Nonecalculate_cost: bool = False+ include_tool_call_examples: bool = Falseclass AgentState(BaseModel):