gpt_engineer.core.default.disk_execution_env.DiskExecutionEnv
- class gpt_engineer.core.default.disk_execution_env.DiskExecutionEnv(path: str | Path | None = None)[source]
Bases:
BaseExecutionEnvAn execution environment that runs code on the local file system and captures the output of the execution.
This class is responsible for executing code that is stored on disk. It ensures that the necessary entrypoint file exists and then runs the code using a subprocess. If the execution is interrupted by the user, it handles the interruption gracefully.
- store
An instance of FileStore that manages the storage of files in the execution environment.
- Type:
FileStore
- run(command: str, timeout: int | None = None) Tuple[str, str, int][source]
Runs a command in the execution environment.
- upload(files: FilesDict) DiskExecutionEnv[source]
Uploads files to the execution environment.