Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Fix: ollama.py example with AgentHistoryList type
Erik Thorellid8808f8e169f
diff --git a/examples/ollama.py b/examples/ollama.pyindex 9e0804163..a824cb405 100644--- a/examples/ollama.py+++ b/examples/ollama.py@@ -1,4 +1,4 @@-import os+# import os# Optional: Disable telemetry# os.environ["ANONYMIZED_TELEMETRY"] = "false"@@ -8,10 +8,11 @@ import osimport asynciofrom browser_use import Agent+from browser_use.agent.views import AgentHistoryListfrom langchain_ollama import ChatOllama-async def run_search() -> str:+async def run_search() -> AgentHistoryList:agent = Agent(task="Search for a 'browser use' post on the r/LocalLLaMA subreddit and open it.",llm=ChatOllama(