Class GenerationConfigThinkingConfig

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GenerationConfigThinkingConfig

public abstract class GenerationConfigThinkingConfig extends JsonSerializable
Config for thinking features.
  • Constructor Details

    • GenerationConfigThinkingConfig

      public GenerationConfigThinkingConfig()
  • Method Details

    • includeThoughts

      public abstract Optional<Boolean> includeThoughts()
      Optional. Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.
    • thinkingBudget

      public abstract Optional<Integer> thinkingBudget()
      Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true.
    • builder

      public static GenerationConfigThinkingConfig.Builder builder()
      Instantiates a builder for GenerationConfigThinkingConfig.
    • toBuilder

      public abstract GenerationConfigThinkingConfig.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static GenerationConfigThinkingConfig fromJson(String jsonString)
      Deserializes a JSON string to a GenerationConfigThinkingConfig object.