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