init
TypeScriptstatic init(totalTokenCount: number, reasoningTokenCount: number): LanguageModelExecutorGenerationChannel_Usage_OutputSwift declarationinit(totalTokenCount: Int, reasoningTokenCount: Int)struct · iOS 27.0+ · SDK 27.1
struct OutputToken counts for the output produced by the model.
static init(totalTokenCount: number, reasoningTokenCount: number): LanguageModelExecutorGenerationChannel_Usage_OutputSwift declarationinit(totalTokenCount: Int, reasoningTokenCount: Int)get totalTokenCount(): numberSwift declarationvar totalTokenCount: IntThe total number of output tokens.
set totalTokenCount(value: number)Swift declarationvar totalTokenCount: IntThe total number of output tokens.
get reasoningTokenCount(): numberSwift declarationvar reasoningTokenCount: IntThe number of output tokens that were part of the model's reasoning output.
set reasoningTokenCount(value: number)Swift declarationvar reasoningTokenCount: IntThe number of output tokens that were part of the model's reasoning output.
No declarations were skipped in this snapshot.