modality
public final Usage.CachedTokensByModality.Builder modality(Usage.CachedTokensByModality.Modality modality)
The modality associated with the token count.
public final Usage.CachedTokensByModality.Builder modality(JsonField<Usage.CachedTokensByModality.Modality> modality)
Sets Builder.modality to an arbitrary JSON value.
You should usually call Builder.modality with a well-typed Modality value instead. This method is primarily for setting the field to an undocumented or not yet supported value.