Package com.basis.api.admin
Class BBjAdminAIPromptResponse
java.lang.Object
com.basis.api.admin.BBjAdminAIPromptResponse
- All Implemented Interfaces:
Serializable
The response returned by an LLM call via
BBjAdminAI.sendPrompt(String) or
BBjAdminAI.sendPrompt(BBjAdminAIPromptRequest).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBBjAdminAIPromptResponse(String content, String provider, String modelName, int promptTokens, int completionTokens) -
Method Summary
Modifier and TypeMethodDescriptionintNumber of tokens in the completion (0 if not reported by the provider).The text generated by the LLM.The model name as reported by the provider.intNumber of tokens in the prompt (0 if not reported by the provider).The provider that produced this response.intSum ofgetPromptTokens()andgetCompletionTokens().toString()
-
Constructor Details
-
BBjAdminAIPromptResponse
-
-
Method Details
-
getContent
The text generated by the LLM. -
getProvider
The provider that produced this response. Matches one of thePROVIDER_*constants onBBjAdminAIConfig. -
getModelName
The model name as reported by the provider. -
getPromptTokens
public int getPromptTokens()Number of tokens in the prompt (0 if not reported by the provider). -
getCompletionTokens
public int getCompletionTokens()Number of tokens in the completion (0 if not reported by the provider). -
getTotalTokens
public int getTotalTokens()Sum ofgetPromptTokens()andgetCompletionTokens(). -
toString
-