from dataclasses import dataclass from .base import Observation from opendevin.schema import ObservationType @dataclass class BrowserOutputObservation(Observation): """ This data class represents the output of a browser. """ url: str screenshot: str status_code: int = 200 error: bool = False observation: str = ObservationType.BROWSE @property def message(self) -> str: return 'Visited ' + self.url