Class ThinkingConfig.Builder
-
- All Implemented Interfaces:
public abstract class ThinkingConfig.BuilderBuilder for ThinkingConfig.
-
-
Constructor Summary
Constructors Constructor Description ThinkingConfig.Builder()
-
Method Summary
Modifier and Type Method Description abstract ThinkingConfig.BuilderincludeThoughts(boolean includeThoughts)Setter for includeThoughts. ThinkingConfig.BuilderclearIncludeThoughts()Clears the value of includeThoughts field. abstract ThinkingConfig.BuilderthinkingBudget(Integer thinkingBudget)Setter for thinkingBudget. ThinkingConfig.BuilderclearThinkingBudget()Clears the value of thinkingBudget field. abstract ThinkingConfig.BuilderthinkingLevel(ThinkingLevel thinkingLevel)Setter for thinkingLevel. ThinkingConfig.BuilderclearThinkingLevel()Clears the value of thinkingLevel field. ThinkingConfig.BuilderthinkingLevel(ThinkingLevel.Known knownType)Setter for thinkingLevel given a known enum. ThinkingConfig.BuilderthinkingLevel(String thinkingLevel)Setter for thinkingLevel given a string. abstract ThinkingConfigbuild()-
-
Method Detail
-
includeThoughts
abstract ThinkingConfig.Builder includeThoughts(boolean includeThoughts)
Setter for includeThoughts.
includeThoughts: Indicates whether to include thoughts in the response. If true, thoughts are returned only if the model supports thought and thoughts are available.
-
clearIncludeThoughts
@CanIgnoreReturnValue() ThinkingConfig.Builder clearIncludeThoughts()
Clears the value of includeThoughts field.
-
thinkingBudget
abstract ThinkingConfig.Builder thinkingBudget(Integer thinkingBudget)
Setter for thinkingBudget.
thinkingBudget: Indicates the thinking budget in tokens. 0 is DISABLED. -1 is AUTOMATIC. The default values and allowed ranges are model dependent.
-
clearThinkingBudget
@CanIgnoreReturnValue() ThinkingConfig.Builder clearThinkingBudget()
Clears the value of thinkingBudget field.
-
thinkingLevel
abstract ThinkingConfig.Builder thinkingLevel(ThinkingLevel thinkingLevel)
Setter for thinkingLevel.
thinkingLevel: Optional. The number of thoughts tokens that the model should generate.
-
clearThinkingLevel
@CanIgnoreReturnValue() ThinkingConfig.Builder clearThinkingLevel()
Clears the value of thinkingLevel field.
-
thinkingLevel
@CanIgnoreReturnValue() ThinkingConfig.Builder thinkingLevel(ThinkingLevel.Known knownType)
Setter for thinkingLevel given a known enum.
thinkingLevel: Optional. The number of thoughts tokens that the model should generate.
-
thinkingLevel
@CanIgnoreReturnValue() ThinkingConfig.Builder thinkingLevel(String thinkingLevel)
Setter for thinkingLevel given a string.
thinkingLevel: Optional. The number of thoughts tokens that the model should generate.
-
build
abstract ThinkingConfig build()
-
-
-
-