Skip to main content

Class: InProcessExecutor

Defined in: packages/agentos/src/cognition/emergent/executor/InProcessExecutor.ts:29

Runs forged code in-process. One CodeSandbox serves every call; each call gets a fresh context holding the minimal globals and the granted functions.

Implements​

Constructors​

Constructor​

new InProcessExecutor(): InProcessExecutor

Returns​

InProcessExecutor

Properties​

isolates​

readonly isolates: false = false

Defined in: packages/agentos/src/cognition/emergent/executor/InProcessExecutor.ts:31

Whether forged code reaches the host only through the functions it is handed.

Implementation of​

ForgedCodeExecutor.isolates


name​

readonly name: "in-process" = 'in-process'

Defined in: packages/agentos/src/cognition/emergent/executor/InProcessExecutor.ts:30

A short name for logs and reports, such as in-process.

Implementation of​

ForgedCodeExecutor.name

Methods​

run()​

run(request): Promise<ExecutorRunResult>

Defined in: packages/agentos/src/cognition/emergent/executor/InProcessExecutor.ts:36

Runs one call. Resolves in every case, a timeout included; the forge reports a rejection as an execution error.

Parameters​

request​

ExecutorRunRequest

Returns​

Promise<ExecutorRunResult>

Implementation of​

ForgedCodeExecutor.run