Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

make `do_nothing` a valid command

onekum93a92d92fc56
diff --git a/scripts/commands.py b/scripts/commands.py
index ba5383957a..02f3baa8df 100644
--- a/scripts/commands.py
+++ b/scripts/commands.py
@@ -106,6 +106,8 @@ def execute_command(command_name, arguments):
return execute_python_file(arguments["file"])
elif command_name == "generate_image":
return generate_image(arguments["prompt"])
+ elif command_name == "do_nothing":
+ return "No action performed."
elif command_name == "task_complete":
shutdown()
else:
@@ -283,4 +285,4 @@ def delete_agent(key):
result = agents.delete_agent(key)
if not result:
return f"Agent {key} does not exist."
- return f"Agent {key} deleted."
\ No newline at end of file
+ return f"Agent {key} deleted."