Package dev.langchain4j.model.openai
Class OpenAiTokenUsage
java.lang.Object
dev.langchain4j.model.output.TokenUsage
dev.langchain4j.model.openai.OpenAiTokenUsage
public class OpenAiTokenUsage
extends dev.langchain4j.model.output.TokenUsage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionadd
(dev.langchain4j.model.output.TokenUsage that) static OpenAiTokenUsage.Builder
builder()
boolean
int
hashCode()
toString()
Methods inherited from class dev.langchain4j.model.output.TokenUsage
inputTokenCount, outputTokenCount, sum, sum, totalTokenCount
-
Method Details
-
inputTokensDetails
-
outputTokensDetails
-
add
- Overrides:
add
in classdev.langchain4j.model.output.TokenUsage
-
equals
- Overrides:
equals
in classdev.langchain4j.model.output.TokenUsage
-
hashCode
public int hashCode()- Overrides:
hashCode
in classdev.langchain4j.model.output.TokenUsage
-
toString
- Overrides:
toString
in classdev.langchain4j.model.output.TokenUsage
-
builder
-