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.

Add <reason> arg to do_nothing command (#3090)

fluxismcade788a7e68
diff --git a/autogpt/app.py b/autogpt/app.py
index 590f3d5099..6bcc851b4a 100644
--- a/autogpt/app.py
+++ b/autogpt/app.py
@@ -120,7 +120,7 @@ def execute_command(
# non-file is given, return instructions "Input should be a python
# filepath, write your code to file and try again
elif command_name == "do_nothing":
- return "No action performed."
+ return f"Error: No action performed. Reason: {arguments['reason']}"
elif command_name == "task_complete":
shutdown()
else:
diff --git a/autogpt/prompts/prompt.py b/autogpt/prompts/prompt.py
index bd3cc7cb57..cc06fabb1f 100644
--- a/autogpt/prompts/prompt.py
+++ b/autogpt/prompts/prompt.py
@@ -39,7 +39,7 @@ def build_default_prompt_generator() -> PromptGenerator:
# Define the command list
commands = [
- ("Do Nothing", "do_nothing", {}),
+ ("Do Nothing", "do_nothing", {"reason": "<reason>"}),
("Task Complete (Shutdown)", "task_complete", {"reason": "<reason>"}),
]