reject.py 377 B

12345678910111213141516
  1. from dataclasses import dataclass
  2. from opendevin.core.schema import ObservationType
  3. from .observation import Observation
  4. @dataclass
  5. class UserRejectObservation(Observation):
  6. """This data class represents the result of a successful action."""
  7. observation: str = ObservationType.USER_REJECTED
  8. @property
  9. def message(self) -> str:
  10. return self.content