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