openhands.events.action.files
FileReadAction Objects
@dataclass
class FileReadAction(Action)
Reads a file from a given path. Can be set to read specific lines using start and end Default lines 0:-1 (whole file)
FileWriteAction Objects
@dataclass
class FileWriteAction(Action)
Writes a file to a given path. Can be set to write specific lines using start and end Default lines 0:-1 (whole file)
FileEditAction Objects
@dataclass
class FileEditAction(Action)
Edits a file by provided a draft at a given path.
Can be set to edit specific lines using start and end (1-index, inclusive) if the file is too long. Default lines 1:-1 (whole file).
If start is set to -1, the FileEditAction will simply append the content to the file.