Skip to main content

Interface: SandboxExecutionRequest

Defined in: packages/agentos/src/cognition/emergent/types.ts:341

Input to the sandbox executor for running a single sandboxed tool invocation.

Properties​

allowlist​

allowlist: AllowlistName[]

Defined in: packages/agentos/src/cognition/emergent/types.ts:355

APIs the sandbox is permitted to call. Anything not listed is blocked.


call?​

optional call: CallHandle

Defined in: packages/agentos/src/cognition/emergent/types.ts:376

The run's handle. Required when the forge has a broker attached (a host with EmergentConfig.capabilities); the engine fills it.


code​

code: string

Defined in: packages/agentos/src/cognition/emergent/types.ts:345

Source code of the sandboxed module (same format as SandboxedToolSpec.code).


input​

input: unknown

Defined in: packages/agentos/src/cognition/emergent/types.ts:350

The argument object passed to the run(input) entry point.


memoryMB​

memoryMB: number

Defined in: packages/agentos/src/cognition/emergent/types.ts:363

Nominal heap budget in megabytes for the sandbox execution. The current node:vm-backed JavaScript executor reports heap deltas but does not preemptively enforce this limit.

Default​

128

timeoutMs​

timeoutMs: number

Defined in: packages/agentos/src/cognition/emergent/types.ts:370

Maximum wall-clock time in milliseconds before the sandbox is forcibly killed and an error is returned.

Default​

5000