Creates an output token count.
- Parameters:
- totalTokenCount: The total number of output tokens.
- reasoningTokenCount: The number of output tokens from reasoning.
get · iOS 27.0+
totalTokenCount
TypeScript
get totalTokenCount(): number
Swift declaration
var totalTokenCount: Int
The total number of output tokens.
set · iOS 27.0+
totalTokenCount
TypeScript
set totalTokenCount(value: number)
Swift declaration
var totalTokenCount: Int
The total number of output tokens.
get · iOS 27.0+
reasoningTokenCount
TypeScript
get reasoningTokenCount(): number
Swift declaration
var reasoningTokenCount: Int
The number of output tokens that were part of the model's
reasoning output.
This value is always less than or equal to ``totalTokenCount``.
A non-zero value requires the model to declare the
``LanguageModelCapabilities/Capability/reasoning`` capability.
set · iOS 27.0+
reasoningTokenCount
TypeScript
set reasoningTokenCount(value: number)
Swift declaration
var reasoningTokenCount: Int
The number of output tokens that were part of the model's
reasoning output.
This value is always less than or equal to ``totalTokenCount``.
A non-zero value requires the model to declare the
``LanguageModelCapabilities/Capability/reasoning`` capability.