Skip to content

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

removed unneccesary commit

paperboardofficial4ae103d8b937
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index 4f3d0ed20..bc5a220ee 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -433,7 +433,6 @@ class Controller:
logger.error(msg)
return ActionResult(error=msg, include_in_memory=True)
-
def action(self, description: str, **kwargs):
"""Decorator for registering custom actions
diff --git a/examples/features/read_pdf_file.py b/examples/features/read_pdf_file.py
deleted file mode 100644
index 9b9bf425b..000000000
--- a/examples/features/read_pdf_file.py
+++ /dev/null
@@ -1,39 +0,0 @@
-import asyncio
-import os
-
-from dotenv import load_dotenv
-from langchain_google_genai import ChatGoogleGenerativeAI
-from pydantic import SecretStr
-
-from browser_use import Agent
-from browser_use.browser.browser import Browser, BrowserConfig
-
-load_dotenv()
-api_key = os.getenv('GEMINI_API_KEY')
-if not api_key:
- raise ValueError('GEMINI_API_KEY is not set')
-
-llm = ChatGoogleGenerativeAI(model='gemini-2.0-flash-exp', api_key=SecretStr(api_key))
-
-browser = Browser(
- config=BrowserConfig(
- # NOTE: you need to close your chrome browser - so that this can open your browser in debug mode
- chrome_instance_path='C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe',
- )
-)
-
-async def run_search():
- agent = Agent(
- task=(
- 'search for "lorem ipsum pdf file" on google and stream the first pdf file and return its first paragraph'
- ),
- llm=llm,
- max_actions_per_step=4,
- browser=browser,
- )
-
- await agent.run(max_steps=25)
-
-
-if __name__ == '__main__':
- asyncio.run(run_search())