Interface: TokenUsage
Prefactor TypeScript SDK / @prefactor/core / TokenUsage
Interface: TokenUsage
Section titled “Interface: TokenUsage”Defined in: packages/core/src/tracing/span.ts:38
Token usage information for LLM calls
Properties
Section titled “Properties”promptTokens
Section titled “promptTokens”promptTokens:
number
Defined in: packages/core/src/tracing/span.ts:39
completionTokens
Section titled “completionTokens”completionTokens:
number
Defined in: packages/core/src/tracing/span.ts:40
totalTokens
Section titled “totalTokens”totalTokens:
number
Defined in: packages/core/src/tracing/span.ts:41