TurnUsage
Per-turn token usage for context window observability (cumulative fields filled by the runtime).
Properties
Section titled “Properties”cacheReadTokens?
Section titled “cacheReadTokens?”optional cacheReadTokens?: number;cacheWriteTokens?
Section titled “cacheWriteTokens?”optional cacheWriteTokens?: number;contextUtilization?
Section titled “contextUtilization?”optional contextUtilization?: number;Cumulative input vs model context window (0..1) when a window is configured.
cumulativeInputTokens
Section titled “cumulativeInputTokens”cumulativeInputTokens: number;cumulativeOutputTokens
Section titled “cumulativeOutputTokens”cumulativeOutputTokens: number;cumulativeTotalTokens
Section titled “cumulativeTotalTokens”cumulativeTotalTokens: number;inputTokens
Section titled “inputTokens”inputTokens: number;latencyMs
Section titled “latencyMs”latencyMs: number;model?
Section titled “model?”optional model?: string;nodeId?
Section titled “nodeId?”optional nodeId?: string;outputTokens
Section titled “outputTokens”outputTokens: number;totalTokens
Section titled “totalTokens”totalTokens: number;turn: number;