totalTokens

public final Optional<Integer> totalTokens()

Total token count for the interaction request (prompt + responses + other internal tokens).

Throws

if the JSON field has an unexpected type (e.g. if the server responded with an unexpected value).