Aller directement au contenu principal

openhands.runtime.impl.runloop.runloop_runtime

RunloopLogBuffer Objects

class RunloopLogBuffer(LogBuffer)

Synchronous buffer for Runloop devbox logs.

This class provides a thread-safe way to collect, store, and retrieve logs from a Docker container. It uses a list to store log lines and provides methods for appending, retrieving, and clearing logs.

stream_logs

def stream_logs()

Stream logs from the Docker container in a separate thread.

This method runs in its own thread to handle the blocking operation of reading log lines from the Docker SDK's synchronous generator.

RunloopRuntime Objects

class RunloopRuntime(EventStreamRuntime)

The RunloopRuntime class is an EventStreamRuntime that utilizes Runloop Devbox as a runtime environment.