Class BBjAdminAIPromptResponse

java.lang.Object
com.basis.api.admin.BBjAdminAIPromptResponse
All Implemented Interfaces:
Serializable

public class BBjAdminAIPromptResponse extends Object implements Serializable
See Also:
  • Constructor Details

    • BBjAdminAIPromptResponse

      public BBjAdminAIPromptResponse(String content, String provider, String modelName, int promptTokens, int completionTokens)
  • Method Details

    • getContent

      public String getContent()
      The text generated by the LLM.
    • getProvider

      public String getProvider()
      The provider that produced this response. Matches one of the PROVIDER_* constants on BBjAdminAIConfig.
    • getModelName

      public String 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object