Class AnthropicTokenUsage
java.lang.Object
dev.langchain4j.model.output.TokenUsage
dev.langchain4j.model.anthropic.AnthropicTokenUsage
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(TokenUsage that) static AnthropicTokenUsage.Builderbuilder()Returns The total cached token created count, or null if unknown.Returns The total cached token read count, or null if unknown.toString()Methods inherited from class TokenUsage
equals, hashCode, inputTokenCount, outputTokenCount, sum, sum, totalTokenCount
-
Constructor Details
-
AnthropicTokenUsage
-
-
Method Details
-
cacheCreationInputTokens
Returns The total cached token created count, or null if unknown.- Returns:
- The total cached token created count, or null if unknown.
-
cacheReadInputTokens
Returns The total cached token read count, or null if unknown.- Returns:
- The total cached token read count, or null if unknown.
-
add
- Overrides:
addin classTokenUsage
-
toString
- Overrides:
toStringin classTokenUsage
-
builder
-