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