Skip to content

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

Update code style

zhcn963ec6747299
diff --git a/browser_use/agent/message_manager/service.py b/browser_use/agent/message_manager/service.py
index 2c6e17489..711b74662 100644
--- a/browser_use/agent/message_manager/service.py
+++ b/browser_use/agent/message_manager/service.py
@@ -17,8 +17,8 @@ from browser_use.browser.views import BrowserStateSummary
from browser_use.filesystem.file_system import FileSystem
from browser_use.llm.messages import (
BaseMessage,
- ContentPartTextParam,
ContentPartImageParam,
+ ContentPartTextParam,
SystemMessage,
)
from browser_use.observability import observe_debug
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 603a59a27..8e16dfe79 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -24,7 +24,7 @@ from browser_use.agent.cloud_events import (
)
from browser_use.agent.message_manager.utils import save_conversation
from browser_use.llm.base import BaseChatModel
-from browser_use.llm.messages import BaseMessage, UserMessage, ContentPartTextParam, ContentPartImageParam
+from browser_use.llm.messages import BaseMessage, ContentPartImageParam, ContentPartTextParam, UserMessage
from browser_use.llm.openai.chat import ChatOpenAI
from browser_use.tokens.service import TokenCost