File size: 479 Bytes
d7b3d84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import asyncio
import os

from dotenv import load_dotenv

# test if traceloop is installed
try:
	from traceloop.sdk import Traceloop  # type: ignore
except ImportError:
	print('Traceloop is not installed')
	exit(1)

from browser_use import Agent

load_dotenv()
api_key = os.getenv('TRACELOOP_API_KEY')
Traceloop.init(api_key=api_key, disable_batch=True)


async def main():
	await Agent('Find the founders of browser-use').run()


if __name__ == '__main__':
	asyncio.run(main())