empty.py 417 B

123456789101112131415161718
  1. from dataclasses import dataclass
  2. from opendevin.core.schema import ObservationType
  3. from .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'