Class CohereLanguageResponse

java.lang.Object
com.intellijava.core.model.BaseRemoteModel
com.intellijava.core.model.CohereLanguageResponse

public class CohereLanguageResponse extends BaseRemoteModel
CohereTextResponse is a model class used to parse the response from the Cohere text API.
Author:
github.com/Barqawiz
  • Constructor Details

    • CohereLanguageResponse

      public CohereLanguageResponse()
      CohereLanguageResponse default constructor.
  • Method Details

    • getGenerations

      public List<CohereLanguageResponse.Generation> getGenerations()
      Get the list of generated texts.
      Returns:
      the list of generated texts.
    • setGenerations

      public void setGenerations(List<CohereLanguageResponse.Generation> generations)
      Sets the list of generated texts.
      Parameters:
      generations - the list of generated texts.
    • getPrompt

      public String getPrompt()
      Get the user prompt.
      Returns:
      prompt the user input.
    • setPrompt

      public void setPrompt(String prompt)
      Sets the user prompt.
      Parameters:
      prompt - the user input.