Class AnthropicTokenUsage

java.lang.Object
dev.langchain4j.model.output.TokenUsage
dev.langchain4j.model.anthropic.AnthropicTokenUsage

public class AnthropicTokenUsage extends TokenUsage
  • Constructor Details

  • Method Details

    • cacheCreationInputTokens

      public Integer cacheCreationInputTokens()
      Returns The total cached token created count, or null if unknown.
      Returns:
      The total cached token created count, or null if unknown.
    • cacheReadInputTokens

      public Integer cacheReadInputTokens()
      Returns The total cached token read count, or null if unknown.
      Returns:
      The total cached token read count, or null if unknown.
    • add

      public AnthropicTokenUsage add(TokenUsage that)
      Overrides:
      add in class TokenUsage
    • toString

      public String toString()
      Overrides:
      toString in class TokenUsage
    • builder

      public static AnthropicTokenUsage.Builder builder()