LanguageModelUsage constructor
const
LanguageModelUsage({})
Usage stats for the generation.
You can use this information to determine how much the model call costed (as usage is usually priced by token).
This is only available for some models.
Implementation
const LanguageModelUsage({
this.promptTokens,
this.promptBillableCharacters,
this.responseTokens,
this.responseBillableCharacters,
this.totalTokens,
});