mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
18 lines
444 B
Python
18 lines
444 B
Python
from dataclasses import dataclass
|
|
|
|
from openhands.core.schema import ObservationType
|
|
from openhands.events.observation.observation import Observation
|
|
|
|
|
|
@dataclass
|
|
class NullObservation(Observation):
|
|
"""This data class represents a null observation.
|
|
This is used when the produced action is NOT executable.
|
|
"""
|
|
|
|
observation: str = ObservationType.NULL
|
|
|
|
@property
|
|
def message(self) -> str:
|
|
return 'No observation'
|