Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/com/google/genai/types/ThinkingConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public abstract class ThinkingConfig extends JsonSerializable {
@JsonProperty("thinkingBudget")
public abstract Optional<Integer> 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> thinkingLevel();

Expand Down Expand Up @@ -107,7 +107,7 @@ public Builder clearThinkingBudget() {
/**
* Setter for thinkingLevel.
*
* <p>thinkingLevel: Optional. The level of thoughts tokens that the model should generate.
* <p>thinkingLevel: Optional. The number of thoughts tokens that the model should generate.
*/
@JsonProperty("thinkingLevel")
public abstract Builder thinkingLevel(ThinkingLevel thinkingLevel);
Expand All @@ -125,7 +125,7 @@ public Builder clearThinkingLevel() {
/**
* Setter for thinkingLevel given a known enum.
*
* <p>thinkingLevel: Optional. The level of thoughts tokens that the model should generate.
* <p>thinkingLevel: Optional. The number of thoughts tokens that the model should generate.
*/
@CanIgnoreReturnValue
public Builder thinkingLevel(ThinkingLevel.Known knownType) {
Expand All @@ -135,7 +135,7 @@ public Builder thinkingLevel(ThinkingLevel.Known knownType) {
/**
* Setter for thinkingLevel given a string.
*
* <p>thinkingLevel: Optional. The level of thoughts tokens that the model should generate.
* <p>thinkingLevel: Optional. The number of thoughts tokens that the model should generate.
*/
@CanIgnoreReturnValue
public Builder thinkingLevel(String thinkingLevel) {
Expand Down
12 changes: 9 additions & 3 deletions src/main/java/com/google/genai/types/ThinkingLevel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading