Skip to content

Documentation / @agentick/core / isStandaloneExecution

Function: isStandaloneExecution()

isStandaloneExecution(ctx): boolean

Defined in: kernel/src/execution-helpers.ts:27

Check if this is a standalone (root) execution or nested within another.

Parameters

ctx

KernelContext

Returns

boolean

Example

typescript
if (isStandaloneExecution(ctx)) {
  // Create new execution record
} else {
  // Link to parent execution
}

Released under the ISC License.