llm_query(). This environment is ideal for CI/CD pipelines, reproducible execution environments, and scenarios requiring stronger isolation than LocalREPL while maintaining the convenience of local execution.
Prerequisite: Docker must be installed and running.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
image | str | "python:3.11-slim" | Docker image to use |
setup_code | str | None | Code to run at initialization |
context_payload | str | dict | list | Auto | Initial context (set by RLM) |
lm_handler_address | tuple | Auto | Socket address (set by RLM) |
How It Works
- Starts Docker container with volume mount to temp directory
- Installs
dillandrequestsin container - Host runs HTTP proxy server on random port
- Container calls proxy via
host.docker.internal - Proxy forwards
llm_query()to LM Handler via socket - State persisted via
dillto/workspace/state.dill