mirror of
https://github.com/browser-use/browser-use
synced 2026-04-22 17:45:09 +02:00
17 lines
384 B
Python
17 lines
384 B
Python
import asyncio
|
|
|
|
from browser_use import Agent, ChatBrowserUse
|
|
|
|
|
|
async def main() -> None:
|
|
agent = Agent(
|
|
task='Please find the latest commit on browser-use/browser-use repo and tell me the commit message. Please summarize what it is about.',
|
|
llm=ChatBrowserUse(model='bu-2-0'),
|
|
demo_mode=True,
|
|
)
|
|
await agent.run(max_steps=5)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
asyncio.run(main())
|