Skip to content

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

eval enable debug

Magnus Müllerfc8d6b1c1440
diff --git a/.github/workflows/eval.yaml b/.github/workflows/eval.yaml
index c6a47beaf..000e6097b 100644
--- a/.github/workflows/eval.yaml
+++ b/.github/workflows/eval.yaml
@@ -10,7 +10,7 @@ jobs:
runs-on:
group: eval
labels: eval-2-core-500
- timeout-minutes: 360
+ timeout-minutes: 60 #
env:
IN_DOCKER: 'true'
ANONYMIZED_TELEMETRY: 'false'
@@ -25,8 +25,10 @@ jobs:
ANCHOR_BROWSER_API_KEY: ${{ secrets.ANCHOR_BROWSER_API_KEY }}
SERPER_API_KEY: ${{ secrets.SERPER_API_KEY }}
LMNR_PROJECT_API_KEY: ${{ secrets.LMNR_PROJECT_API_KEY }}
+ BROWSER_USE_LOGGING_LEVEL: ${{ secrets.BROWSER_USE_LOGGING_LEVEL }}
EVAL_START_INDEX: ${{ github.event.client_payload.script_args.start_index }}
-
+
+
steps:
- name: System Info and Resource Check
run: |
diff --git a/examples/simple.py b/examples/simple.py
index 505e13de1..54ae90fd6 100644
--- a/examples/simple.py
+++ b/examples/simple.py
@@ -9,24 +9,37 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from dotenv import load_dotenv
load_dotenv()
+from lmnr import Laminar
+try:
+ Laminar.initialize(project_api_key=os.getenv('LMNR_PROJECT_API_KEY'))
+except Exception:
+ pass
from browser_use import Agent
# Initialize the model
llm = ChatOpenAI(
- model='gpt-4.1-mini',
+ model='gpt-4o',
)
task = 'Go to google.com/travel/flights and search for flights to Tokyo next week'
+task = """http://www.sadfdsafdssdafd.com/ go here and scroll around"""
+task = 'Go to Louis Vuittons website, find every product and save the product details 1 by 1. Extract product details as JSON: productname (Full name as shown on the webpage), brand (Manufacturer or designer name), model (Specific version or edition), gender (Target audience: Men, Women, Unisex), sku (Unique identifier), releasedate (Launch date in YYYY-MM-DD format), retailprice (Price as a number, no currency symbols), colorway (Color description without spaces around slashes, e.g., White/PinkFoam), sizerange (Available sizes as a list, maintain decimals for half sizes, e.g., 7.5), requesturl (URL where product data is scraped), requesttimestamp (ISO 8601 timestamp of the request), primaryimgurl (URL of the main product image); ensure required fields are present, return null if data is missing.'
+
agent = Agent(task=task, llm=llm)
async def main():
+ import time
+
+ start_time = time.time()
history = await agent.run()
# token usage
print(history.usage)
+ end_time = time.time()
+ print(f'Time taken: {end_time - start_time} seconds')
if __name__ == '__main__':