mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
* 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
50 lines
771 B
Python
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.
|
|
"""
|