Class AnthropicUsage
java.lang.Object
dev.langchain4j.model.anthropic.internal.api.AnthropicUsage
Represents token usage statistics from an Anthropic API response.
Tracks input and output token counts, including cache-related token usage for prompt caching features.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe number of tokens used to create cache entries.The number of tokens read from cache.The number of input tokens consumed.The number of output tokens generated. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
inputTokens
The number of input tokens consumed. -
outputTokens
The number of output tokens generated. -
cacheCreationInputTokens
The number of tokens used to create cache entries. -
cacheReadInputTokens
The number of tokens read from cache.
-
-
Constructor Details
-
AnthropicUsage
public AnthropicUsage()
-
-
Method Details
-
hashCode
-
equals
-
toString
-