totalCachedTokens

public final Usage.Builder totalCachedTokens(Integer totalCachedTokens)

Number of tokens in the cached part of the prompt (the cached content).


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

Sets Builder.totalCachedTokens to an arbitrary JSON value.

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