Class CohereThinkingV2.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.model.CohereThinkingV2.Builder
-
- Enclosing class:
- CohereThinkingV2
public static class CohereThinkingV2.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CohereThinkingV2build()CohereThinkingV2.Buildercopy(CohereThinkingV2 model)CohereThinkingV2.BuildertokenBudget(Integer tokenBudget)The maximum number of tokens the model can use for thinking, which must be set to a positive integer.CohereThinkingV2.Buildertype(CohereThinkingV2.Type type)Reasoning is enabled by default for models that support it, but can be turned off by setting type = disbaled.
-
-
-
Method Detail
-
type
public CohereThinkingV2.Builder type(CohereThinkingV2.Type type)
Reasoning is enabled by default for models that support it, but can be turned off by setting type = disbaled.- Parameters:
type- the value to set- Returns:
- this builder
-
tokenBudget
public CohereThinkingV2.Builder tokenBudget(Integer tokenBudget)
The maximum number of tokens the model can use for thinking, which must be set to a positive integer.The model will stop thinking if it reaches the thinking token budget and will proceed with the response.
- Parameters:
tokenBudget- the value to set- Returns:
- this builder
-
build
public CohereThinkingV2 build()
-
copy
public CohereThinkingV2.Builder copy(CohereThinkingV2 model)
-
-