mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
16 lines
402 B
Python
16 lines
402 B
Python
from dataclasses import dataclass
|
|
|
|
from openhands.core.schema import ObservationType
|
|
from openhands.events.observation.observation import Observation
|
|
|
|
|
|
@dataclass
|
|
class UserRejectObservation(Observation):
|
|
"""This data class represents the result of a rejected action."""
|
|
|
|
observation: str = ObservationType.USER_REJECTED
|
|
|
|
@property
|
|
def message(self) -> str:
|
|
return self.content
|