For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.10

Type Alias: AgentInstanceHistoryItemMetrics

type AgentInstanceHistoryItemMetrics = object;

Per-call token and latency metrics for an ASSISTANT history item.

Properties​

cacheCreationTokenCount​

cacheCreationTokenCount: number | null;

Cache-creation tokens consumed by this LLM call. Null when not provided.


cacheReadTokenCount​

cacheReadTokenCount: number | null;

Cache-read tokens consumed by this LLM call. Null when not provided.


durationMs​

durationMs: number | null;

Wall-clock duration of the LLM call in milliseconds. Null when not provided.


inputTokens​

inputTokens: number | null;

Input tokens consumed by this LLM call. Null when not provided.


outputTokens​

outputTokens: number | null;

Output tokens produced by this LLM call. Null when not provided.


reasoningTokenCount​

reasoningTokenCount: number | null;

Reasoning tokens consumed by this LLM call. Null when not provided.