error.py 364 B

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