Class ChatCompletionUsage
- java.lang.Object
-
- com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
-
public class ChatCompletionUsage extends Object
Represents the token usage details in a chat completion response, including the number of tokens used for the prompt, the completion, and the total.
-
-
Constructor Summary
Constructors Constructor Description ChatCompletionUsage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCompletionTokens()
int
getPromptTokens()
int
getTotalTokens()
void
setCompletionTokens(int completionTokens)
void
setPromptTokens(int promptTokens)
void
setTotalTokens(int totalTokens)
-
-
-
Method Detail
-
getPromptTokens
public int getPromptTokens()
-
setPromptTokens
public void setPromptTokens(int promptTokens)
-
getCompletionTokens
public int getCompletionTokens()
-
setCompletionTokens
public void setCompletionTokens(int completionTokens)
-
getTotalTokens
public int getTotalTokens()
-
setTotalTokens
public void setTotalTokens(int totalTokens)
-
-