Class Choice.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.model.Choice.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Choice
build()
Choice.Builder
copy(Choice model)
Choice.Builder
finishReason(String finishReason)
The reason why the model stopped generating tokens.Choice.Builder
index(Integer index)
The index of the generated text.Choice.Builder
logprobs(Logprobs logprobs)
Choice.Builder
text(String text)
The generated text.
-
-
-
Method Detail
-
index
public Choice.Builder index(Integer index)
The index of the generated text.- Parameters:
index
- the value to set- Returns:
- this builder
-
text
public Choice.Builder text(String text)
The generated text.- Parameters:
text
- the value to set- Returns:
- this builder
-
finishReason
public 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
-
logprobs
public Choice.Builder logprobs(Logprobs logprobs)
-
build
public Choice build()
-
copy
public Choice.Builder copy(Choice model)
-
-