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": ""}), ("Task Complete (Shutdown)", "task_complete", {"reason": ""}), ]