Package com.google.genai.types
Class ThinkingConfig.Builder
java.lang.Object
com.google.genai.types.ThinkingConfig.Builder
- Enclosing class:
- ThinkingConfig
Builder for ThinkingConfig.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ThinkingConfigbuild()Clears the value of includeThoughts field.Clears the value of thinkingBudget field.Clears the value of thinkingLevel field.abstract ThinkingConfig.BuilderincludeThoughts(boolean includeThoughts) Setter for includeThoughts.abstract ThinkingConfig.BuilderthinkingBudget(Integer thinkingBudget) Setter for thinkingBudget.abstract ThinkingConfig.BuilderthinkingLevel(ThinkingLevel thinkingLevel) Setter for thinkingLevel.thinkingLevel(ThinkingLevel.Known knownType) Setter for thinkingLevel given a known enum.thinkingLevel(String thinkingLevel) Setter for thinkingLevel given a string.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
Clears the value of includeThoughts field. -
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
Clears the value of thinkingBudget field. -
thinkingLevel
Setter for thinkingLevel.thinkingLevel: Optional. The level of thoughts tokens that the model should generate.
-
clearThinkingLevel
Clears the value of thinkingLevel field. -
thinkingLevel
Setter for thinkingLevel given a known enum.thinkingLevel: Optional. The level of thoughts tokens that the model should generate.
-
thinkingLevel
Setter for thinkingLevel given a string.thinkingLevel: Optional. The level of thoughts tokens that the model should generate.
-
build
-