()
| 46 | |
| 47 | |
| 48 | async 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 | |
| 74 | asyncio.run(main()) |