Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Fix Error: 'AgentSettings' object has no attribute 'enable_memory'

Anirudha619b43648b6ad8b
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index f84d5d2ee..fdce73670 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -215,7 +215,7 @@ class Agent(Generic[Context]):
f'{" +tools" if self.tool_calling_method == "function_calling" else ""}'
f'{" +rawtools" if self.tool_calling_method == "raw" else ""}'
f'{" +vision" if self.settings.use_vision else ""}'
- f'{" +memory" if self.settings.enable_memory else ""}, '
+ f'{" +memory" if self.enable_memory else ""}, '
f'planner_model={self.planner_model_name}'
f'{" +reasoning" if self.settings.is_planner_reasoning else ""}'
f'{" +vision" if self.settings.use_vision_for_planner else ""}, '