diff --git a/src/main/java/com/google/genai/types/ThinkingConfig.java b/src/main/java/com/google/genai/types/ThinkingConfig.java index e49965ee042..fbc3fccd8ca 100644 --- a/src/main/java/com/google/genai/types/ThinkingConfig.java +++ b/src/main/java/com/google/genai/types/ThinkingConfig.java @@ -44,7 +44,7 @@ public abstract class ThinkingConfig extends JsonSerializable { @JsonProperty("thinkingBudget") public abstract Optional thinkingBudget(); - /** Optional. The level of thoughts tokens that the model should generate. */ + /** Optional. The number of thoughts tokens that the model should generate. */ @JsonProperty("thinkingLevel") public abstract Optional thinkingLevel(); @@ -107,7 +107,7 @@ public Builder clearThinkingBudget() { /** * Setter for thinkingLevel. * - *

thinkingLevel: Optional. The level of thoughts tokens that the model should generate. + *

thinkingLevel: Optional. The number of thoughts tokens that the model should generate. */ @JsonProperty("thinkingLevel") public abstract Builder thinkingLevel(ThinkingLevel thinkingLevel); @@ -125,7 +125,7 @@ public Builder clearThinkingLevel() { /** * Setter for thinkingLevel given a known enum. * - *

thinkingLevel: Optional. The level of thoughts tokens that the model should generate. + *

thinkingLevel: Optional. The number of thoughts tokens that the model should generate. */ @CanIgnoreReturnValue public Builder thinkingLevel(ThinkingLevel.Known knownType) { @@ -135,7 +135,7 @@ public Builder thinkingLevel(ThinkingLevel.Known knownType) { /** * Setter for thinkingLevel given a string. * - *

thinkingLevel: Optional. The level of thoughts tokens that the model should generate. + *

thinkingLevel: Optional. The number of thoughts tokens that the model should generate. */ @CanIgnoreReturnValue public Builder thinkingLevel(String thinkingLevel) { diff --git a/src/main/java/com/google/genai/types/ThinkingLevel.java b/src/main/java/com/google/genai/types/ThinkingLevel.java index 25c233a095e..5985dc0d52c 100644 --- a/src/main/java/com/google/genai/types/ThinkingLevel.java +++ b/src/main/java/com/google/genai/types/ThinkingLevel.java @@ -23,19 +23,25 @@ import com.google.common.base.Ascii; import java.util.Objects; -/** The level of thoughts tokens that the model should generate. */ +/** The number of thoughts tokens that the model should generate. */ public class ThinkingLevel { /** Enum representing the known values for ThinkingLevel. */ public enum Known { - /** Default value. */ + /** Unspecified thinking level. */ THINKING_LEVEL_UNSPECIFIED, /** Low thinking level. */ LOW, + /** Medium thinking level. */ + MEDIUM, + /** High thinking level. */ - HIGH + HIGH, + + /** MINIMAL thinking level. */ + MINIMAL } private Known thinkingLevelEnum;