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 ChatChoicebuild()ChatChoice.Buildercopy(ChatChoice model)ChatChoice.BuilderfinishReason(String finishReason)The reason why the model stopped generating tokens.ChatChoice.BuildergroundingMetadata(GroundingMetadata groundingMetadata)ChatChoice.Builderindex(Integer index)The index of the chat.ChatChoice.Builderlogprobs(Logprobs logprobs)ChatChoice.Buildermessage(Message message)ChatChoice.Builderusage(Usage usage)
-
-
-
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)
-
usage
public ChatChoice.Builder usage(Usage usage)
-
groundingMetadata
public ChatChoice.Builder groundingMetadata(GroundingMetadata groundingMetadata)
-
build
public ChatChoice build()
-
copy
public ChatChoice.Builder copy(ChatChoice model)
-
-