Files
OpenHands/opendevin/runtime/__init__.py
2024-08-11 19:08:30 +00:00

23 lines
463 B
Python

from .e2b.sandbox import E2BBox
def get_runtime_cls(name: str):
# Local imports to avoid circular imports
if name == 'eventstream':
from .client.runtime import EventStreamRuntime
return EventStreamRuntime
elif name == 'e2b':
from .e2b.runtime import E2BRuntime
return E2BRuntime
else:
raise ValueError(f'Runtime {name} not supported')
__all__ = [
'E2BBox',
'Sandbox',
'get_runtime_cls',
]