error.py 374 B

123456789101112131415161718
  1. from dataclasses import dataclass
  2. from opendevin.core.schema import ObservationType
  3. from .observation import Observation
  4. @dataclass
  5. class ErrorObservation(Observation):
  6. """
  7. This data class represents an error encountered by the agent.
  8. """
  9. observation: str = ObservationType.ERROR
  10. @property
  11. def message(self) -> str:
  12. return self.content