diff --git a/examples/simple.py b/examples/simple.py index 6471ca438..0b2621d6c 100644 --- a/examples/simple.py +++ b/examples/simple.py @@ -2,10 +2,10 @@ import asyncio from browser_use import Agent, Controller -controller = Controller() +tools = Controller() -@controller.action('Ask human for help with a question') +@tools.action('Ask human for help with a question') def ask_human(question: str) -> str: answer = input(f'{question} > ') return f'The human responded with: {answer}' @@ -13,7 +13,7 @@ def ask_human(question: str) -> str: agent = Agent( task='Ask human for help', - controller=controller, + tools=tools, )