Class CohereChatResponseV2.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.model.CohereChatResponseV2.Builder
-
- Enclosing class:
- CohereChatResponseV2
public static class CohereChatResponseV2.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CohereChatResponseV2build()CohereChatResponseV2.Buildercopy(CohereChatResponseV2 model)CohereChatResponseV2.BuildererrorMessage(String errorMessage)If there is an error during the streaming scenario, then the errorMessage parameter contains details for the error.CohereChatResponseV2.BuilderfinishReason(CohereChatResponseV2.FinishReason finishReason)Why the generation stopped.CohereChatResponseV2.Builderid(String id)Unique identifier for the generated replyCohereChatResponseV2.BuilderlogProbabilities(List<LogProbability> logProbabilities)The log probabilities of the generated tokens.CohereChatResponseV2.Buildermessage(CohereAssistantMessageV2 message)CohereChatResponseV2.Builderusage(Usage usage)
-
-
-
Method Detail
-
id
public CohereChatResponseV2.Builder id(String id)
Unique identifier for the generated reply- Parameters:
id- the value to set- Returns:
- this builder
-
message
public CohereChatResponseV2.Builder message(CohereAssistantMessageV2 message)
-
finishReason
public CohereChatResponseV2.Builder finishReason(CohereChatResponseV2.FinishReason finishReason)
Why the generation stopped.- Parameters:
finishReason- the value to set- Returns:
- this builder
-
logProbabilities
public CohereChatResponseV2.Builder logProbabilities(List<LogProbability> logProbabilities)
The log probabilities of the generated tokens.- Parameters:
logProbabilities- the value to set- Returns:
- this builder
-
errorMessage
public CohereChatResponseV2.Builder errorMessage(String errorMessage)
If there is an error during the streaming scenario, then the errorMessage parameter contains details for the error.- Parameters:
errorMessage- the value to set- Returns:
- this builder
-
usage
public CohereChatResponseV2.Builder usage(Usage usage)
-
build
public CohereChatResponseV2 build()
-
copy
public CohereChatResponseV2.Builder copy(CohereChatResponseV2 model)
-
-