measureContextUsage
external fun measureContextUsage(input: ReadonlyArray<LanguageModelMessage>, options: LanguageModelPromptOptions): Promise<Double>(source)
Measure how many tokens the input would use.
Measure how many tokens the input would use.