Interface: SandboxExecutionResult
Defined in: packages/agentos/src/cognition/emergent/types.ts:206
Outcome of a single sandbox execution attempt.
Properties
error?
optionalerror:string
Defined in: packages/agentos/src/cognition/emergent/types.ts:222
Human-readable error description, present when success is false.
Includes timeout and thrown-exception cases. A future isolate-backed
runtime may also report memory-exceeded cases.
executionTimeMs
executionTimeMs:
number
Defined in: packages/agentos/src/cognition/emergent/types.ts:228
Actual wall-clock execution time in milliseconds. Populated regardless of success/failure.
memoryUsedBytes
memoryUsedBytes:
number
Defined in: packages/agentos/src/cognition/emergent/types.ts:234
Observed heap delta for the sandbox execution in bytes.
Populated when the runtime can measure it; otherwise 0.
output?
optionaloutput:unknown
Defined in: packages/agentos/src/cognition/emergent/types.ts:215
The resolved return value of run(), present only when success is true.
success
success:
boolean
Defined in: packages/agentos/src/cognition/emergent/types.ts:210
true when run() resolved without throwing and within resource limits.