tokenCount

public abstract Optional<Float> tokenCount()

Gemini Enterprise Agent Platform only. Number of tokens of the input text.