Class LlmChatResponse

java.lang.Object
org.codelibs.fess.llm.LlmChatResponse

public class LlmChatResponse extends Object
Response object for LLM chat completion.
Author:
FessProject
  • Constructor Details

    • LlmChatResponse

      public LlmChatResponse()
      Default constructor.
    • LlmChatResponse

      public LlmChatResponse(String content)
      Creates a response with the specified content.
      Parameters:
      content - the response content
  • Method Details

    • getContent

      public String getContent()
      Gets the response content.
      Returns:
      the content
    • setContent

      public void setContent(String content)
      Sets the response content.
      Parameters:
      content - the content
    • getFinishReason

      public String getFinishReason()
      Gets the finish reason.
      Returns:
      the finish reason
    • setFinishReason

      public void setFinishReason(String finishReason)
      Sets the finish reason.
      Parameters:
      finishReason - the finish reason
    • getPromptTokens

      public Integer getPromptTokens()
      Gets the number of prompt tokens.
      Returns:
      the prompt tokens count
    • setPromptTokens

      public void setPromptTokens(Integer promptTokens)
      Sets the number of prompt tokens.
      Parameters:
      promptTokens - the prompt tokens count
    • getCompletionTokens

      public Integer getCompletionTokens()
      Gets the number of completion tokens.
      Returns:
      the completion tokens count
    • setCompletionTokens

      public void setCompletionTokens(Integer completionTokens)
      Sets the number of completion tokens.
      Parameters:
      completionTokens - the completion tokens count
    • getTotalTokens

      public Integer getTotalTokens()
      Gets the total number of tokens.
      Returns:
      the total tokens count
    • setTotalTokens

      public void setTotalTokens(Integer totalTokens)
      Sets the total number of tokens.
      Parameters:
      totalTokens - the total tokens count
    • getModel

      public String getModel()
      Gets the model name.
      Returns:
      the model name
    • setModel

      public void setModel(String model)
      Sets the model name.
      Parameters:
      model - the model name