Update simple example

This commit is contained in:
Magnus Müller
2025-08-26 13:07:29 -07:00
parent caa0e7ef1b
commit e27e1c9d65

View File

@@ -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,
)