One Logo Pool Ball
FoundationModels · IOS API REFERENCE

LanguageModelExecutorGenerationChannel.Usage.Output

struct · iOS 27.0+ · SDK 27.1

struct Output

Token counts for the output produced by the model.

Members (5)

init · iOS 27.0+

init

TypeScript
static init(totalTokenCount: number, reasoningTokenCount: number): LanguageModelExecutorGenerationChannel_Usage_Output
Swift declaration
init(totalTokenCount: Int, reasoningTokenCount: Int)
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.

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.

Skipped declarations

No declarations were skipped in this snapshot.

All FoundationModels types →