copyWithWrapped method
LLMInputOutputTokensUsage
copyWithWrapped({
- Wrapped<
LLMTokensCategoryUsage?> ? input, - Wrapped<
LLMTokensCategoryUsage?> ? inputCacheRead, - Wrapped<
LLMTokensCategoryUsage?> ? inputCacheWrite, - Wrapped<
LLMTokensCategoryUsage?> ? outputTotal,
Implementation
LLMInputOutputTokensUsage copyWithWrapped(
{Wrapped<LLMTokensCategoryUsage?>? input,
Wrapped<LLMTokensCategoryUsage?>? inputCacheRead,
Wrapped<LLMTokensCategoryUsage?>? inputCacheWrite,
Wrapped<LLMTokensCategoryUsage?>? outputTotal}) {
return LLMInputOutputTokensUsage(
input: (input != null ? input.value : this.input),
inputCacheRead: (inputCacheRead != null
? inputCacheRead.value
: this.inputCacheRead),
inputCacheWrite: (inputCacheWrite != null
? inputCacheWrite.value
: this.inputCacheWrite),
outputTotal:
(outputTotal != null ? outputTotal.value : this.outputTotal));
}