Class ThinkingTypes

  • All Implemented Interfaces:

    
    public final class ThinkingTypes
    
                        

    Which thinking.type values the model accepts on requests. Read each key on its own: for example, enabled can be false while disabled is true.

    • Constructor Detail

    • Method Detail

      • adaptive

         final CapabilitySupport adaptive()

        Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).

      • betweenTools

         final CapabilitySupport betweenTools()

        Whether the model accepts thinking with type 'between_tools' (thinking turned off, and any short progress updates the model writes between tool calls come back as thinking blocks). False exactly when a request that sends it gets a 400 from this model. A request that sends 'between_tools' can still be rejected for another reason, such as an effort level the model does not allow with thinking off.

      • disabled

         final CapabilitySupport disabled()

        Whether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking. A request that sends 'disabled' can still be rejected for another reason, such as an effort level the model does not allow with thinking off.

      • enabled

         final CapabilitySupport enabled()

        Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).

      • _adaptive

         final JsonField<CapabilitySupport> _adaptive()

        Returns the raw JSON value of adaptive.

        Unlike adaptive, this method doesn't throw if the JSON field has an unexpected type.

      • _betweenTools

         final JsonField<CapabilitySupport> _betweenTools()

        Returns the raw JSON value of betweenTools.

        Unlike betweenTools, this method doesn't throw if the JSON field has an unexpected type.

      • _disabled

         final JsonField<CapabilitySupport> _disabled()

        Returns the raw JSON value of disabled.

        Unlike disabled, this method doesn't throw if the JSON field has an unexpected type.

      • _enabled

         final JsonField<CapabilitySupport> _enabled()

        Returns the raw JSON value of enabled.

        Unlike enabled, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final ThinkingTypes validate()

        Validates that the types of all values in this object match their expected types recursively.

        This method is not forwards compatible with new types from the API for existing fields.

      • builder

         final static ThinkingTypes.Builder builder()

        Returns a mutable builder for constructing an instance of ThinkingTypes.

        The following fields are required:

        .adaptive()
        .betweenTools()
        .disabled()
        .enabled()