Skip to main content

Interface: SandboxedToolForgeConfig

Defined in: packages/agentos/src/cognition/emergent/SandboxedToolForge.ts:66

Configuration options for the SandboxedToolForge.

All fields are optional and fall back to sensible defaults.

Properties​

executor?​

optional executor: ForgedCodeExecutor

Defined in: packages/agentos/src/cognition/emergent/SandboxedToolForge.ts:79

What runs forged code. Defaults to an InProcessExecutor (node:vm inside this process; isolates: false).


fetchDomainAllowlist?​

optional fetchDomainAllowlist: string[]

Defined in: packages/agentos/src/cognition/emergent/SandboxedToolForge.ts:93

When fetch is in the allowlist, only requests to these domains are permitted. An empty array means all domains are allowed. Domain matching is case-insensitive and checks exact host equality.

Default​

[]

fsReadRoots?​

optional fsReadRoots: string[]

Defined in: packages/agentos/src/cognition/emergent/SandboxedToolForge.ts:100

Filesystem roots sandboxed fs.readFile calls may access. Relative paths are resolved from the current working directory. Defaults to the current working directory only.


memoryMB?​

optional memoryMB: number

Defined in: packages/agentos/src/cognition/emergent/SandboxedToolForge.ts:73

Memory budget in megabytes, handed to the executor with each call. The in-process executor reports the memory used and does not limit it; an executor that can limit memory uses it as the limit.

Default​

128

timeoutMs?​

optional timeoutMs: number

Defined in: packages/agentos/src/cognition/emergent/SandboxedToolForge.ts:85

Maximum wall-clock execution time in milliseconds.

Default​

5000