From e27e1c9d65252ffed8aa2599e007f850804e8fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20M=C3=BCller?= <67061560+MagMueller@users.noreply.github.com> Date: Tue, 26 Aug 2025 13:07:29 -0700 Subject: [PATCH] Update simple example --- examples/simple.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, )