Option C Tools
Loading...
Searching...
No Matches
oct.mcp.sandbox.SandboxResult Class Reference

Static Public Attributes

bool timed_out = False
bool output_truncated = False
str error_message = ""

Detailed Description

Result of a sandboxed subprocess execution.

Attributes
----------
exit_code
    The subprocess return code, or ``1`` on launch failure.
stdout
    Captured standard output (possibly truncated).
stderr
    Captured standard error (possibly truncated).
timed_out
    ``True`` if the process was killed due to timeout.
output_truncated
    ``True`` if combined stdout+stderr exceeded ``max_output_bytes``.
error_message
    Non-empty if the process could not be launched (e.g. not found
    on PATH). Distinct from stderr — set on ``OSError``.

Definition at line 183 of file sandbox.py.

Member Data Documentation

◆ error_message

str oct.mcp.sandbox.SandboxResult.error_message = ""
static

Definition at line 208 of file sandbox.py.

◆ output_truncated

bool oct.mcp.sandbox.SandboxResult.output_truncated = False
static

Definition at line 207 of file sandbox.py.

◆ timed_out

bool oct.mcp.sandbox.SandboxResult.timed_out = False
static

Definition at line 206 of file sandbox.py.


The documentation for this class was generated from the following file: