Class CohereLlmInferenceResponse.Builder
- java.lang.Object
- 
- com.oracle.bmc.generativeaiinference.model.CohereLlmInferenceResponse.Builder
 
- 
- Enclosing class:
- CohereLlmInferenceResponse
 
 public static class CohereLlmInferenceResponse.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CohereLlmInferenceResponsebuild()CohereLlmInferenceResponse.Buildercopy(CohereLlmInferenceResponse model)CohereLlmInferenceResponse.BuildergeneratedTexts(List<GeneratedText> generatedTexts)Each prompt in the input array has an array of GeneratedText, controlled by numGenerations parameter in the request.CohereLlmInferenceResponse.Builderprompt(String prompt)Represents the original prompt.CohereLlmInferenceResponse.BuildertimeCreated(Date timeCreated)The date and time that the model was created in an RFC3339 formatted datetime string.
 
- 
- 
- 
Method Detail- 
generatedTextspublic CohereLlmInferenceResponse.Builder generatedTexts(List<GeneratedText> generatedTexts) Each prompt in the input array has an array of GeneratedText, controlled by numGenerations parameter in the request.- Parameters:
- generatedTexts- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic CohereLlmInferenceResponse.Builder timeCreated(Date timeCreated) The date and time that the model was created in an RFC3339 formatted datetime string.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
promptpublic CohereLlmInferenceResponse.Builder prompt(String prompt) Represents the original prompt.Applies only to non-stream responses. - Parameters:
- prompt- the value to set
- Returns:
- this builder
 
 - 
buildpublic CohereLlmInferenceResponse build() 
 - 
copypublic CohereLlmInferenceResponse.Builder copy(CohereLlmInferenceResponse model) 
 
- 
 
-