Skip to content

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

Switch max error and attributes in arguments

magmueller9ca311652e9a
diff --git a/browser_use/agent/prompts.py b/browser_use/agent/prompts.py
index ab1d3046b..c14c8db0b 100644
--- a/browser_use/agent/prompts.py
+++ b/browser_use/agent/prompts.py
@@ -106,8 +106,8 @@ class AgentMessagePrompt:
self,
state: BrowserState,
result: Optional[ActionResult] = None,
- max_error_length: int = 400,
include_attributes: list[str] = [],
+ max_error_length: int = 400,
):
self.state = state
self.result = result