Skip to content

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

fix format?

mertunsall763d3f13ef9c
diff --git a/browser_use/agent/views.py b/browser_use/agent/views.py
index 57e94383f..effdd5494 100644
--- a/browser_use/agent/views.py
+++ b/browser_use/agent/views.py
@@ -203,17 +203,6 @@ class AgentOutput(BaseModel):
__module__=AgentOutput.__module__,
)
- # Add the current_state property with proper typing
- def current_state_property(self: Any) -> AgentBrain:
- """For backward compatibility - returns an AgentBrain with the flattened properties"""
- return AgentBrain(
- thinking=None,
- evaluation_previous_goal=self.evaluation_previous_goal,
- memory=self.memory,
- next_goal=self.next_goal,
- )
-
- model_.current_state = property(current_state_property)
model_.__doc__ = 'AgentOutput model with custom actions'
return model_