Skip to main content

Interface: ExecutionResult

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:106

Result of code execution.

Properties

completedAt

completedAt: string

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:124

Timestamp when execution completed


cpuTimeMs?

optional cpuTimeMs: number

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:120

CPU time used in milliseconds


durationMs

durationMs: number

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:116

Execution duration in milliseconds


error?

optional error: string

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:114

Error message if execution failed


executionId

executionId: string

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:108

Unique execution ID


memoryUsedBytes?

optional memoryUsedBytes: number

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:118

Memory used in bytes


output?

optional output: ExecutionOutput

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:112

Output from execution


securityEvents?

optional securityEvents: SecurityEvent[]

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:132

Security events detected


startedAt

startedAt: string

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:122

Timestamp when execution started


status

status: ExecutionStatus

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:110

Execution status


truncated?

optional truncated: object

Defined in: packages/agentos/src/core/sandbox/ICodeSandbox.ts:126

Whether execution was truncated due to limits

stderr?

optional stderr: boolean

stdout?

optional stdout: boolean

timeout?

optional timeout: boolean