With the release of the new Google-GenAI library, it would be great if we could capture thinkingTokens in the Usage Interface.

Its supported in the gen-ai java library here

specifically here:

  /** Output only. Number of tokens present in thoughts output. */
  @JsonProperty("thoughtsTokenCount")
  public abstract Optional<Integer> thoughtsTokenCount();

Comment From: RyanHowell30

@ddobrin thanks for the quick turnaround here! It's greatly appreciated. Really liking the new Google Gen-AI library!