totalTokens

public final Usage.Builder totalTokens(Integer totalTokens)

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


public final Usage.Builder totalTokens(JsonField<Integer> totalTokens)

Sets Builder.totalTokens to an arbitrary JSON value.

You should usually call Builder.totalTokens with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.