ThinkingConfigKt

public final classThinkingConfigKt


Summary

Public methods

static final @NonNullThinkingConfig

Helper method to construct aThinkingConfig in a DSL-like manner.

Public methods

thinkingConfig

public static final @NonNullThinkingConfig thinkingConfig(
    @ExtensionFunctionType @NonNull Function1<@NonNullThinkingConfig.BuilderUnit> init
)

Helper method to construct aThinkingConfig in a DSL-like manner.

Example Usage:

thinkingConfig {
thinkingBudget = 0 // disable thinking
}

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.