Documentation / @agentick/kernel / getExecutionInfo
Function: getExecutionInfo() ​
getExecutionInfo(
ctx):object
Defined in: kernel/src/execution-helpers.ts:164
Get execution hierarchy info - useful for logging and persistence.
Parameters ​
ctx ​
Returns ​
object
depth ​
depth:
number
isStandalone ​
isStandalone:
boolean
isWithinEngine ​
isWithinEngine:
boolean
name ​
name:
string|undefined
originName ​
originName:
string|undefined
parentPid ​
parentPid:
string|undefined
pid ​
pid:
string|undefined
rootPid ​
rootPid:
string|undefined
Example ​
typescript
const info = getExecutionInfo(ctx);
// {
// pid: 'abc-123',
// parentPid: 'def-456',
// rootPid: 'ghi-789',
// name: 'model:generate',
// originName: 'engine:stream',
// isStandalone: false,
// isWithinEngine: true,
// depth: 2
// }