mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
* add e2b sandbox [wip] * Install e2b package * Add basic E2B sandbox integration * Update dependencies and fix command execution in E2BSandbox * Udpate e2b * Add comment * Lint * Remove unnecessary type conversion * Lint * Fix linting * Resolve comments * Update opendevin/action/fileop.py * Update opendevin/action/fileop.py * Fix log * Update E2B readme * poetry lock --------- Co-authored-by: Robert Brennan <accounts@rbren.io>
18 lines
275 B
Python
18 lines
275 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class Process(ABC):
|
|
@property
|
|
@abstractmethod
|
|
def pid(self) -> int:
|
|
pass
|
|
|
|
@property
|
|
@abstractmethod
|
|
def command(self) -> str:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def read_logs(self) -> str:
|
|
pass
|