Class OpenAiOfficialTokenUsage
java.lang.Object
dev.langchain4j.model.output.TokenUsage
dev.langchain4j.model.openaiofficial.OpenAiOfficialTokenUsage
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class
- 
Method SummaryModifier and TypeMethodDescriptionadd(TokenUsage that) Adds the token usage of two responses together.builder()booleaninthashCode()Methods inherited from class TokenUsageinputTokenCount, outputTokenCount, sum, sum, toString, totalTokenCount
- 
Method Details- 
inputTokensDetails
- 
outputTokensDetails
- 
addDescription copied from class:TokenUsageAdds the token usage of two responses together.Fields which are null in both responses will be null in the result. - Overrides:
- addin class- TokenUsage
- Parameters:
- that- The token usage to add to this one.
- Returns:
- a new TokenUsageinstance with the token usage of both responses added together.
 
- 
equals- Overrides:
- equalsin class- TokenUsage
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- TokenUsage
 
- 
builder
 
-