Package dev.langchain4j.model.openai
Class OpenAiTokenUsage.Builder
java.lang.Object
dev.langchain4j.model.openai.OpenAiTokenUsage.Builder
- Enclosing class:
OpenAiTokenUsage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
inputTokenCount
(Integer inputTokenCount) inputTokensDetails
(OpenAiTokenUsage.InputTokensDetails inputTokensDetails) outputTokenCount
(Integer outputTokenCount) outputTokensDetails
(OpenAiTokenUsage.OutputTokensDetails outputTokensDetails) totalTokenCount
(Integer totalTokenCount)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inputTokenCount
-
inputTokensDetails
public OpenAiTokenUsage.Builder inputTokensDetails(OpenAiTokenUsage.InputTokensDetails inputTokensDetails) -
outputTokenCount
-
outputTokensDetails
public OpenAiTokenUsage.Builder outputTokensDetails(OpenAiTokenUsage.OutputTokensDetails outputTokensDetails) -
totalTokenCount
-
build
-