Browser Use
Integration with browser-use
Installation Steps
shCopyEditpip install browser-useshCopyEditplaywright install
Example Usage
pythonCopyEditfrom beaconlabs import Task, Agent, ObjectResponse
from beaconlabs.client.tools import BrowserUse # Importing Browser Use
class Product(ObjectResponse):
name: str
price: float
class ProductList(ObjectResponse):
products: list[Product]
task = Task(
"Go and get the latest suggested phones on amazon.com",
tools=[BrowserUse], # Enabling Browser Use
response_format=ProductList
)
agent = Agent("Browser Use Agent")
agent.print_do(task)Last updated