Interface: TokenUsageDto
@kortexya/reasoninglayer / TokenUsageDto
Interface: TokenUsageDto
Section titled “Interface: TokenUsageDto”Defined in: src/types/ingestion.ts:719
Token usage from LLM API calls during ingestion.
Properties
Section titled “Properties”cacheCreationTokens
Section titled “cacheCreationTokens”cacheCreationTokens:
number
Defined in: src/types/ingestion.ts:721
Tokens written to prompt cache.
cacheReadTokens
Section titled “cacheReadTokens”cacheReadTokens:
number
Defined in: src/types/ingestion.ts:723
Tokens served from prompt cache (reduces cost).
inputTokens
Section titled “inputTokens”inputTokens:
number
Defined in: src/types/ingestion.ts:725
Input tokens sent to the LLM.
outputTokens
Section titled “outputTokens”outputTokens:
number
Defined in: src/types/ingestion.ts:727
Output tokens received from the LLM.
totalTokens
Section titled “totalTokens”totalTokens:
number
Defined in: src/types/ingestion.ts:729
Total tokens (input + output).