mirror of
https://github.com/browser-use/browser-use
synced 2026-05-13 17:56:35 +02:00
Update simple example
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user