Skip to content

Interface: UniversalStepTelemetry<TCustomMetrics, TAbortMeta> ​

Defined in: ports/universal-step-telemetry.ts:10

Universal step execution telemetry record passed to .replaceWith() mappers and persisted in LedgerStore.

Aggregates turn count, USD cost, wall-clock duration, domain-specific custom metrics from TelemetryCollectorASTNode, and optional abortMeta from AbortHookASTNode.

Type Parameters ​

Type ParameterDefault typeDescription
TCustomMetrics extends Record<string, unknown>Record<string, unknown>Domain-specific custom telemetry metrics record shape.
TAbortMeta extends Record<string, unknown>Record<string, unknown>Optional abort hook metadata record shape.

Properties ​

PropertyModifierTypeDescriptionDefined in
abortMeta?readonlyTAbortMetaOptional metadata returned by the step's AbortHookASTNode upon step replacement.ports/universal-step-telemetry.ts:23
costUsdreadonlynumberCumulative model invocation cost in USD for the step execution.ports/universal-step-telemetry.ts:17
customreadonlyTCustomMetricsDomain-specific telemetry metrics collected from observedEffects.ports/universal-step-telemetry.ts:21
durationMsreadonlynumberCumulative elapsed execution duration in milliseconds.ports/universal-step-telemetry.ts:19
turnsTakenreadonlynumberCumulative number of LLM turns taken during the step execution.ports/universal-step-telemetry.ts:15

Released under the MIT License.