Skip to content

Documentation / @agentick/core / getMetric

Function: getMetric() ​

getMetric(ctx, key): number

Defined in: kernel/src/metrics-helpers.ts:34

Get a metric value. Supports dot notation for nested paths: 'usage.inputTokens'

Parameters ​

ctx ​

KernelContext

key ​

string

Returns ​

number

Released under the ISC License.