Class OpenAiOfficialTokenUsage.InputTokensDetails
java.lang.Object
dev.langchain4j.model.openaiofficial.OpenAiOfficialTokenUsage.InputTokensDetails
- Enclosing class:
OpenAiOfficialTokenUsage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
-
Constructor Details
-
InputTokensDetails
-
-
Method Details
-
cachedTokens
-
cacheWriteTokens
Returns the number of input tokens written to the prompt cache, as reported byusage.prompt_tokens_details.cache_write_tokens(Chat Completions API) andusage.input_tokens_details.cache_write_tokens(Responses API).Returns
nullwhen the model provider did not report it, which is distinct from a reported zero.- Since:
- 1.21.0
-
builder
-
equals
-
hashCode
-
toString
-