Class OpenAiTokenUsage

java.lang.Object
dev.langchain4j.model.output.TokenUsage
dev.langchain4j.model.openai.OpenAiTokenUsage

public class OpenAiTokenUsage extends dev.langchain4j.model.output.TokenUsage
  • Method Details

    • inputTokensDetails

      public OpenAiTokenUsage.InputTokensDetails inputTokensDetails()
    • outputTokensDetails

      public OpenAiTokenUsage.OutputTokensDetails outputTokensDetails()
    • add

      public OpenAiTokenUsage add(dev.langchain4j.model.output.TokenUsage that)
      Overrides:
      add in class dev.langchain4j.model.output.TokenUsage
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class dev.langchain4j.model.output.TokenUsage
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class dev.langchain4j.model.output.TokenUsage
    • toString

      public String toString()
      Overrides:
      toString in class dev.langchain4j.model.output.TokenUsage
    • builder

      public static OpenAiTokenUsage.Builder builder()