Interface: ForgedCodeExecutor
Defined in: packages/agentos/src/cognition/emergent/executor/types.ts:20
Runs forged JavaScript for SandboxedToolForge.
isolates is the executor's own claim that forged code reaches nothing of
the host (its memory, globals or modules) except through the functions it is
handed. The library's in-process executor declares false. The library does
not check another executor's claim; it is what that executor's author says.
Properties
isolates
readonlyisolates:boolean
Defined in: packages/agentos/src/cognition/emergent/executor/types.ts:24
Whether forged code reaches the host only through the functions it is handed.
name
readonlyname:string
Defined in: packages/agentos/src/cognition/emergent/executor/types.ts:22
A short name for logs and reports, such as in-process.
Methods
ready()?
optionalready():Promise<void>
Defined in: packages/agentos/src/cognition/emergent/executor/types.ts:36
Optional. Resolves once the executor can run code and rejects with the reason when it cannot. The engine awaits it before a forge's test cases, so a forge on an executor that cannot run is refused with that reason before any test or review.
Returns
Promise<void>
run()
run(
request):Promise<ExecutorRunResult>
Defined in: packages/agentos/src/cognition/emergent/executor/types.ts:29
Runs one call. Resolves in every case, a timeout included; the forge reports a rejection as an execution error.
Parameters
request
Returns
Promise<ExecutorRunResult>