mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
* refactor actions and events * remove type_key * remove stream * move import * move import * fix NullObs * reorder imports * fix lint * fix dataclasses * remove blank fields * fix nullobs * fix sidebar labels * fix test compilation * switch to asdict * lint * fix whitespace * fix executable * delint * fix run * remove NotImplementeds * fix path prefix * remove null files * add debug * add more debug info * fix dataclass on null * remove debug * revert sandbox * fix merge issues * fix tyeps * Update opendevin/events/action/browse.py
17 lines
300 B
Python
17 lines
300 B
Python
from dataclasses import asdict, dataclass
|
|
|
|
|
|
@dataclass
|
|
class Event:
|
|
def to_memory(self):
|
|
return asdict(self)
|
|
|
|
def to_dict(self):
|
|
d = self.to_memory()
|
|
d['message'] = self.message
|
|
return d
|
|
|
|
@property
|
|
def message(self) -> str:
|
|
return self.message
|