mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-19 05:54:31 +01:00
Add <reason> arg to do_nothing command (#3090)
* Add <reason> arg to do_nothing command * do_nothing returns reason arg
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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>"}),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user