Skip to content

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

Add missing tool descriptions

jhachirag787411c8ac309
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 2dcad7d43..efc8c12d0 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -639,6 +639,9 @@ class Agent:
return True
class ValidationResult(BaseModel):
+ """
+ Validation results.
+ """
is_valid: bool
reason: str
diff --git a/browser_use/agent/views.py b/browser_use/agent/views.py
index ba3cfffbb..21e8c8a06 100644
--- a/browser_use/agent/views.py
+++ b/browser_use/agent/views.py
@@ -57,12 +57,14 @@ class AgentOutput(BaseModel):
@staticmethod
def type_with_custom_actions(custom_actions: Type[ActionModel]) -> Type['AgentOutput']:
"""Extend actions with custom actions"""
- return create_model(
+ model_ = create_model(
'AgentOutput',
__base__=AgentOutput,
action=(list[custom_actions], Field(...)), # Properly annotated field with no default
__module__=AgentOutput.__module__,
)
+ model_.__doc__ = "AgentOutput model"
+ return model_
class AgentHistory(BaseModel):