Files
OpenHands/opendevin/core/schema/task.py
Robert Brennan fadcdc117e Migrate to new folder structure in preparation for refactor (#1531)
* fix up folder structure

* update docs

* fix imports

* fix imports

* fix imoprt

* fix imports

* fix imports

* fix imports

* fix test import

* fix tests

* fix main import
2024-05-02 17:01:54 +00:00

50 lines
771 B
Python

from enum import Enum
class TaskState(str, Enum):
INIT = 'init'
"""Initial state of the task.
"""
RUNNING = 'running'
"""The task is running.
"""
AWAITING_USER_INPUT = 'awaiting_user_input'
"""The task is awaiting user input.
"""
PAUSED = 'paused'
"""The task is paused.
"""
STOPPED = 'stopped'
"""The task is stopped.
"""
FINISHED = 'finished'
"""The task is finished.
"""
ERROR = 'error'
"""An error occurred during the task.
"""
class TaskStateAction(str, Enum):
START = 'start'
"""Starts the task.
"""
PAUSE = 'pause'
"""Pauses the task.
"""
RESUME = 'resume'
"""Resumes the task.
"""
STOP = 'stop'
"""Stops the task.
"""