Class ThinkingConfig.Builder

java.lang.Object
com.google.genai.types.ThinkingConfig.Builder
Enclosing class:
ThinkingConfig

public abstract static class ThinkingConfig.Builder extends Object
Builder for ThinkingConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • includeThoughts

      public 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.

    • thinkingBudget

      public 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.

    • build

      public abstract ThinkingConfig build()