Skip to main content

Interface: SandboxExecutionResult

Defined in: packages/agentos/src/emergent/types.ts:204

Outcome of a single sandbox execution attempt.

Properties

error?

optional error: string

Defined in: packages/agentos/src/emergent/types.ts:219

Human-readable error description, present when success is false. Includes timeout, memory-exceeded, and thrown-exception cases.


executionTimeMs

executionTimeMs: number

Defined in: packages/agentos/src/emergent/types.ts:225

Actual wall-clock execution time in milliseconds. Populated regardless of success/failure.


memoryUsedBytes

memoryUsedBytes: number

Defined in: packages/agentos/src/emergent/types.ts:231

Peak heap memory used by the sandbox process in bytes. Populated when the runtime can measure it; otherwise 0.


output?

optional output: unknown

Defined in: packages/agentos/src/emergent/types.ts:213

The resolved return value of run(), present only when success is true.


success

success: boolean

Defined in: packages/agentos/src/emergent/types.ts:208

true when run() resolved without throwing and within resource limits.