Skip to main content

Type Alias: ExecutorRunResult

ExecutorRunResult = { memoryUsedBytes: number; output: unknown; status: "ok"; } | { error: string; memoryUsedBytes: number; status: "error"; } | { memoryUsedBytes: number; status: "timeout"; } | { memoryUsedBytes: number; status: "memory_exceeded"; }

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

How a call ended. output is the value the call resolved to after a JSON round trip (undefined stays undefined). error is the whole message the forge returns. memoryUsedBytes is what the executor measured, or 0.