Skip to content

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

Update browser_use/agent/views.py

Gregor Žuničd7c8dc99a877
diff --git a/browser_use/agent/views.py b/browser_use/agent/views.py
index f538e2a25..f8c6987e9 100644
--- a/browser_use/agent/views.py
+++ b/browser_use/agent/views.py
@@ -262,7 +262,7 @@ class AgentHistoryList(BaseModel):
"""List of AgentHistory messages, i.e. the history of the agent's actions and thoughts."""
history: list[AgentHistory]
- usage: UsageSummary | None
+ usage: UsageSummary | None = None
def total_duration_seconds(self) -> float:
"""Get total duration of all steps in seconds"""