public static class CohereLlmInferenceResponse.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CohereLlmInferenceResponse |
build() |
CohereLlmInferenceResponse.Builder |
copy(CohereLlmInferenceResponse model) |
CohereLlmInferenceResponse.Builder |
generatedTexts(List<GeneratedText> generatedTexts)
Each prompt in the input array has an array of GeneratedText, controlled by
numGenerations parameter in the request.
|
CohereLlmInferenceResponse.Builder |
prompt(String prompt)
Represents the original prompt.
|
CohereLlmInferenceResponse.Builder |
timeCreated(Date timeCreated)
The date and time that the model was created in an RFC3339 formatted datetime string.
|
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.
generatedTexts
- the value to setpublic CohereLlmInferenceResponse.Builder timeCreated(Date timeCreated)
The date and time that the model was created in an RFC3339 formatted datetime string.
timeCreated
- the value to setpublic CohereLlmInferenceResponse.Builder prompt(String prompt)
Represents the original prompt. Applies only to non-stream responses.
prompt
- the value to setpublic CohereLlmInferenceResponse build()
public CohereLlmInferenceResponse.Builder copy(CohereLlmInferenceResponse model)
Copyright © 2016–2024. All rights reserved.