Jirka Borovec 0c2ebfd6e1
Ruff: use I rule for isort (#1410)
Ruff: use I rule for isort
2024-04-29 15:41:58 -07:00

19 lines
400 B
Python

from dataclasses import dataclass
from opendevin.schema import ObservationType
from .base import Observation
@dataclass
class AgentErrorObservation(Observation):
"""
This data class represents an error encountered by the agent.
"""
observation: str = ObservationType.ERROR
@property
def message(self) -> str:
return 'Oops. Something went wrong: ' + self.content