Class GenerationConfigThinkingConfig.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • includeThoughts

      public abstract GenerationConfigThinkingConfig.Builder includeThoughts(boolean includeThoughts)
      Setter for includeThoughts.

      includeThoughts: Optional. Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.

    • thinkingBudget

      public abstract GenerationConfigThinkingConfig.Builder thinkingBudget(Integer thinkingBudget)
      Setter for thinkingBudget.

      thinkingBudget: Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true.

    • build

      public abstract GenerationConfigThinkingConfig build()