mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
19 lines
530 B
Python
19 lines
530 B
Python
from dataclasses import dataclass, field
|
|
from typing import Any
|
|
|
|
from openhands.core.schema import ObservationType
|
|
from openhands.events.observation.observation import Observation
|
|
|
|
|
|
@dataclass
|
|
class TaskTrackingObservation(Observation):
|
|
"""This data class represents the result of a task tracking operation."""
|
|
|
|
observation: str = ObservationType.TASK_TRACKING
|
|
command: str = ''
|
|
task_list: list[dict[str, Any]] = field(default_factory=list)
|
|
|
|
@property
|
|
def message(self) -> str:
|
|
return self.content
|