mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
Rename OpenDevin to OpenHands (#3472)
* Replace OpenDevin with OpenHands * Update CONTRIBUTING.md * Update README.md * Update README.md * update poetry lock; move opendevin folder to openhands * fix env var * revert image references in docs * revert permissions * revert permissions --------- Co-authored-by: Xingyao Wang <xingyao6@illinois.edu>
This commit is contained in:
21
openhands/runtime/__init__.py
Normal file
21
openhands/runtime/__init__.py
Normal file
@@ -0,0 +1,21 @@
|
||||
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',
|
||||
'get_runtime_cls',
|
||||
]
|
||||
Reference in New Issue
Block a user