init
TypeScriptstatic init(totalTokenCount: number, cachedTokenCount: number): LanguageModelExecutorGenerationChannel_Usage_InputSwift declarationinit(totalTokenCount: Int, cachedTokenCount: Int)struct · iOS 27.0+ · SDK 27.1
struct InputToken counts for the transcript submitted to the model.
static init(totalTokenCount: number, cachedTokenCount: number): LanguageModelExecutorGenerationChannel_Usage_InputSwift declarationinit(totalTokenCount: Int, cachedTokenCount: Int)get totalTokenCount(): numberSwift declarationvar totalTokenCount: IntThe total number of input tokens from the transcript.
set totalTokenCount(value: number)Swift declarationvar totalTokenCount: IntThe total number of input tokens from the transcript.
get cachedTokenCount(): numberSwift declarationvar cachedTokenCount: IntThe number of input tokens that were served from a cache.
set cachedTokenCount(value: number)Swift declarationvar cachedTokenCount: IntThe number of input tokens that were served from a cache.
No declarations were skipped in this snapshot.