gpt_engineer.core.base_execution_env.BaseExecutionEnv

class gpt_engineer.core.base_execution_env.BaseExecutionEnv[source]

Bases: ABC

Abstract base class for an execution environment capable of running code.

This class defines the interface for execution environments that can execute commands, handle processes, and manage file uploads and downloads.

abstract download() FilesDict[source]

Downloads files from the execution environment.

abstract popen(command: str) Popen[source]

Runs a command in the execution environment.

abstract run(command: str, timeout: int | None = None) Tuple[str, str, int][source]

Runs a command in the execution environment.

abstract upload(files: FilesDict) BaseExecutionEnv[source]

Uploads files to the execution environment.