Skip to content

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

Update pyproject.toml and bedrock_claude.py

dheerajoruganty9c1101fe0cb4
diff --git a/examples/models/bedrock_claude.py b/examples/models/bedrock_claude.py
index 39dc0050e..091f6cf72 100644
--- a/examples/models/bedrock_claude.py
+++ b/examples/models/bedrock_claude.py
@@ -13,12 +13,12 @@ import boto3
from botocore.config import Config
from langchain_aws import ChatBedrockConverse
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+
from browser_use import Agent
from browser_use.browser.browser import Browser, BrowserConfig
from browser_use.controller.service import Controller
-sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-
def get_llm():
config = Config(retries={'max_attempts': 10, 'mode': 'adaptive'})
diff --git a/pyproject.toml b/pyproject.toml
index 2da27c361..7030dfdb7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -35,6 +35,8 @@ dependencies = [
"faiss-cpu>=1.10.0",
"mem0ai==0.1.81",
]
+
+# botocore: only needed for Bedrock Claude boto3 examples/models/bedrock_claude.py
# pydantic: >2.11 introduces many pydantic deprecation warnings until langchain-core upgrades their pydantic support lets keep it on 2.10
# google-api-core: only used for Google LLM APIs
# pyperclip: only used for examples that use copy/paste