empty.py 444 B

1234567891011121314151617
  1. from dataclasses import dataclass
  2. from openhands.core.schema import ObservationType
  3. from openhands.events.observation.observation import Observation
  4. @dataclass
  5. class NullObservation(Observation):
  6. """This data class represents a null observation.
  7. This is used when the produced action is NOT executable.
  8. """
  9. observation: str = ObservationType.NULL
  10. @property
  11. def message(self) -> str:
  12. return 'No observation'