openhands.controller.state.task
Task Objects
class Task()
__init__
def __init__(parent: 'Task',
goal: str,
state: str = OPEN_STATE,
subtasks=None)
Initializes a new instance of the Task class.
Arguments:
parent
- The parent task, or None if it is the root task.goal
- The goal of the task.state
- The initial state of the task.subtasks
- A list of subtasks associated with this task.
to_string
def to_string(indent='')
Returns a string representation of the task and its subtasks.
Arguments:
indent
- The indentation string for formatting the output.
Returns:
A string representation of the task and its subtasks.
to_dict
def to_dict()