|
Option C Tools
|
Public Member Functions | |
| tuple[int, str, str] | run (self, list[str] cmd, dict[str, str] env, Path cwd, int timeout, int|None memory_limit_bytes) |
Subprocess-only backend — existing Phase 5A/5B behavior. On POSIX, when *memory_limit_bytes* is non-None and non-zero, applies ``resource.setrlimit(RLIMIT_AS, ...)`` via ``preexec_fn`` to limit virtual address space. On Windows the limit is silently ignored (use Docker for Windows memory enforcement).
Definition at line 260 of file sandbox.py.
| tuple[int, str, str] oct.mcp.sandbox.NativeBackend.run | ( | self, | |
| list[str] | cmd, | ||
| dict[str, str] | env, | ||
| Path | cwd, | ||
| int | timeout, | ||
| int | None | memory_limit_bytes ) |
Definition at line 269 of file sandbox.py.