Class GoogleAiGeminiTokenUsage
java.lang.Object
dev.langchain4j.model.output.TokenUsage
dev.langchain4j.model.googleai.GoogleAiGeminiTokenUsage
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionadd(TokenUsage that) Adds the token usage of two responses together.builder()booleaninthashCode()toString()Methods inherited from class TokenUsage
inputTokenCount, outputTokenCount, sum, sum, totalTokenCount
-
Method Details
-
cachedContentTokenCount
-
thoughtsTokenCount
-
add
Description 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 classTokenUsage- 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 classTokenUsage
-
hashCode
public int hashCode()- Overrides:
hashCodein classTokenUsage
-
toString
- Overrides:
toStringin classTokenUsage
-
builder
-