Skip to content

Documentation / @agentick/kernel / getOriginName

Function: getOriginName() ​

getOriginName(ctx): string | undefined

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

Get the name of the procedure that originated this execution chain. Returns the origin's name if nested, or current procedure name if standalone.

Parameters ​

ctx ​

KernelContext

Returns ​

string | undefined

Example ​

typescript
const origin = getOriginName(ctx);
// 'engine:stream', 'engine:execute', 'model:generate', etc.

Released under the ISC License.