empty.py 315 B

123456789101112131415
  1. from dataclasses import dataclass
  2. from openhands.core.schema import ActionType
  3. from openhands.events.action.action import Action
  4. @dataclass
  5. class NullAction(Action):
  6. """An action that does nothing."""
  7. action: str = ActionType.NULL
  8. @property
  9. def message(self) -> str:
  10. return 'No action'