Package com.intellijava.core.model
Class CohereLanguageResponse
java.lang.Object
com.intellijava.core.model.BaseRemoteModel
com.intellijava.core.model.CohereLanguageResponse
CohereTextResponse is a model class used to parse the response from the Cohere text API.
- Author:
- github.com/Barqawiz
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Generation is wrapper for the response -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of generated texts.Get the user prompt.void
setGenerations
(List<CohereLanguageResponse.Generation> generations) Sets the list of generated texts.void
Sets the user prompt.Methods inherited from class com.intellijava.core.model.BaseRemoteModel
getId, setId
-
Constructor Details
-
CohereLanguageResponse
public CohereLanguageResponse()CohereLanguageResponse default constructor.
-
-
Method Details
-
getGenerations
Get the list of generated texts.- Returns:
- the list of generated texts.
-
setGenerations
Sets the list of generated texts.- Parameters:
generations
- the list of generated texts.
-
getPrompt
Get the user prompt.- Returns:
- prompt the user input.
-
setPrompt
Sets the user prompt.- Parameters:
prompt
- the user input.
-