copyWith method

LLMInputOutputTokensUsage copyWith({
  1. LLMTokensCategoryUsage? input,
  2. LLMTokensCategoryUsage? inputCacheRead,
  3. LLMTokensCategoryUsage? inputCacheWrite,
  4. LLMTokensCategoryUsage? outputTotal,
})

Implementation

LLMInputOutputTokensUsage copyWith(
    {LLMTokensCategoryUsage? input,
    LLMTokensCategoryUsage? inputCacheRead,
    LLMTokensCategoryUsage? inputCacheWrite,
    LLMTokensCategoryUsage? outputTotal}) {
  return LLMInputOutputTokensUsage(
      input: input ?? this.input,
      inputCacheRead: inputCacheRead ?? this.inputCacheRead,
      inputCacheWrite: inputCacheWrite ?? this.inputCacheWrite,
      outputTotal: outputTotal ?? this.outputTotal);
}