You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee149fc
Browse filesBrowse the repository at this point in the historyBrowse files
* feat: add E2B sandbox support
Add a new E2BREPL environment that runs Python code in E2B sandboxes,
following the same HTTP broker pattern as ModalREPL and PrimeREPL.
Changes:
- Add rlm/environments/e2b_repl.py with E2BREPL class
- Add examples/e2b_repl_example.py demonstrating usage
- Register "e2b" environment in environments/__init__.py
- Add "e2b" to EnvironmentType in core/types.py
- Add e2b optional dependency to pyproject.toml
Key implementation details:
- Uses e2b-code-interpreter SDK with Sandbox.create() API
- Runs Flask broker on port 8889 (8888 is used by E2B's Jupyter)
- Uses sandbox.get_host(port) for public URL access
- Supports llm_query(), llm_query_batched(), FINAL_VAR()
* update e2b example to use real LLM backend
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* feat(e2b): add persistent parameter for SupportsPersistence protocol
Align E2BREPL with other environments (DockerREPL, ModalREPL, PrimeREPL)
by adding the persistent parameter introduced in PR alexzhang13#40. Raises
NotImplementedError when persistent=True since E2BREPL doesn't yet
implement the SupportsPersistence protocol.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: az <alex.lx.zhang@gmail.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments