Class CohereLlmInferenceResponse.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.model.CohereLlmInferenceResponse.Builder
-
- Enclosing class:
- CohereLlmInferenceResponse
public static class CohereLlmInferenceResponse.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All 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
-
generatedTexts
public 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
-
timeCreated
public 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
-
prompt
public CohereLlmInferenceResponse.Builder prompt(String prompt)
Represents the original prompt.Applies only to non-stream responses.
- Parameters:
prompt- the value to set- Returns:
- this builder
-
build
public CohereLlmInferenceResponse build()
-
copy
public CohereLlmInferenceResponse.Builder copy(CohereLlmInferenceResponse model)
-
-