Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
simplify follow up
Magnus Müller6ca9b5d225c4
diff --git a/examples/features/follow_up_tasks.py b/examples/features/follow_up_tasks.pyindex cb0044fbd..e8efd70c1 100644--- a/examples/features/follow_up_tasks.py+++ b/examples/features/follow_up_tasks.py@@ -21,13 +21,9 @@ task = """Go to reddit.com"""async def main():agent = Agent(task=task, browser_profile=profile)await agent.run(max_steps=1)+while True:user_response = input('\n👤 New task or "q" to quit: ')- print()- if user_response == 'q':- break-- print(f'🟢 Continuing with your input: {user_response}')agent.add_new_task(f'New task: {user_response}')await agent.run()