Skip to content

Documentation / @agentick/kernel / getRootPid

Function: getRootPid() ​

getRootPid(ctx): string | undefined

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

Get the root procedure ID (the origin of this execution chain). Returns current PID if this is a standalone execution.

Parameters ​

ctx ​

KernelContext

Returns ​

string | undefined

Released under the ISC License.