empty.py 422 B

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