diff options
Diffstat (limited to 'autogpt/commands/task_statuses.py')
-rw-r--r-- | autogpt/commands/task_statuses.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/autogpt/commands/task_statuses.py b/autogpt/commands/task_statuses.py deleted file mode 100644 index 062ebe3a4..000000000 --- a/autogpt/commands/task_statuses.py +++ /dev/null @@ -1,33 +0,0 @@ -"""Task Statuses module.""" -from __future__ import annotations - -from typing import NoReturn - -from autogpt.agent.agent import Agent -from autogpt.command_decorator import command -from autogpt.logs import logger - - -@command( - "goals_accomplished", - "Goals are accomplished and there is nothing left to do", - { - "reason": { - "type": "string", - "description": "A summary to the user of how the goals were accomplished", - "required": True, - } - }, -) -def task_complete(reason: str, agent: Agent) -> NoReturn: - """ - A function that takes in a string and exits the program - - Parameters: - reason (str): A summary to the user of how the goals were accomplished. - Returns: - A result string from create chat completion. A list of suggestions to - improve the code. - """ - logger.info(title="Shutting down...\n", message=reason) - quit() |