MCPcopy Create free account
hub / github.com/browser-use/macOS-use / main

Function main

examples/try.py:48–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47
48async def main():
49
50 agent_greeting = Agent(
51 task='Say "Hi there $whoami, What can I do for you today?"',
52 llm=llm,
53 controller=controller,
54 use_vision=False,
55 max_actions_per_step=1,
56 max_failures=5
57 )
58
59 await agent_greeting.run(max_steps=25)
60 task = input("Enter the task: ")
61
62 agent_task = Agent(
63 task=task,
64 llm=llm,
65 controller=controller,
66 use_vision=False,
67 max_actions_per_step=4,
68 max_failures=5
69 )
70
71 await agent_task.run(max_steps=25)
72
73
74asyncio.run(main())

Callers 1

try.pyFile · 0.70

Calls 2

runMethod · 0.95
AgentClass · 0.90

Tested by

no test coverage detected