An interface that provides utilities for tokenizing and calculating token usage in messages and prompts.
Calculates the total number of tokens spent in a given prompt.
Calculates the number of tokens required for a given message.