Class Choice.Builder
- java.lang.Object
- 
- com.oracle.bmc.generativeaiinference.model.Choice.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Choicebuild()Choice.Buildercopy(Choice model)Choice.BuilderfinishReason(String finishReason)The reason why the model stopped generating tokens.Choice.Builderindex(Integer index)The index of the generated text.Choice.Builderlogprobs(Logprobs logprobs)Choice.Buildertext(String text)The generated text.
 
- 
- 
- 
Method Detail- 
indexpublic Choice.Builder index(Integer index) The index of the generated text.- Parameters:
- index- the value to set
- Returns:
- this builder
 
 - 
textpublic Choice.Builder text(String text) The generated text.- Parameters:
- text- the value to set
- Returns:
- this builder
 
 - 
finishReasonpublic Choice.Builder finishReason(String finishReason) The reason why the model stopped generating tokens.Stops if the model hits a natural stop point or a provided stop sequence. Returns the length if the tokens reach the specified maximum number of tokens. - Parameters:
- finishReason- the value to set
- Returns:
- this builder
 
 - 
logprobspublic Choice.Builder logprobs(Logprobs logprobs) 
 - 
buildpublic Choice build() 
 - 
copypublic Choice.Builder copy(Choice model) 
 
- 
 
-