mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
16 lines
391 B
Python
16 lines
391 B
Python
from dataclasses import dataclass
|
|
|
|
from openhands.core.schema import ObservationType
|
|
from openhands.events.observation.observation import Observation
|
|
|
|
|
|
@dataclass
|
|
class ErrorObservation(Observation):
|
|
"""This data class represents an error encountered by the agent."""
|
|
|
|
observation: str = ObservationType.ERROR
|
|
|
|
@property
|
|
def message(self) -> str:
|
|
return self.content
|