Package com.google.genai.types
Class ThinkingConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ThinkingConfig
The thinking features configuration.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThinkingConfig.Builder
builder()
Instantiates a builder for ThinkingConfig.static ThinkingConfig
Deserializes a JSON string to a ThinkingConfig object.Indicates whether to include thoughts in the response.Indicates the thinking budget in tokens.abstract ThinkingConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ThinkingConfig
public ThinkingConfig()
-
-
Method Details
-
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
Indicates the thinking budget in tokens. 0 is DISABLED. -1 is AUTOMATIC. The default values and allowed ranges are model dependent. -
builder
Instantiates a builder for ThinkingConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ThinkingConfig object.
-