Shared interface for token usage return type from LLM calls.

interface TokenUsage {
    completionTokens?: number;
    promptTokens?: number;
    totalTokens?: number;
}

Properties

completionTokens?: number
promptTokens?: number
totalTokens?: number

Generated using TypeDoc