Skip to content

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

format?

mertunsalld6af0ef7b42b
diff --git a/browser_use/agent/views.py b/browser_use/agent/views.py
index 569f4c06a..57e94383f 100644
--- a/browser_use/agent/views.py
+++ b/browser_use/agent/views.py
@@ -192,7 +192,10 @@ class AgentOutput(BaseModel):
model_ = create_model(
'AgentOutput',
__base__=AgentOutput,
- thinking=(type(None), Field(default=None, exclude=True)), # Exclude thinking from schema
+ thinking=(
+ type(None), # type: ignore
+ Field(default=None, exclude=True),
+ ), # Exclude thinking from schema
action=(
list[custom_actions], # type: ignore
Field(..., description='List of actions to execute', json_schema_extra={'min_items': 1}),