Class CohereThinkingV2.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • type

        public CohereThinkingV2.Builder type​(CohereThinkingV2.Type type)
        Reasoning is enabled by default for models that support it, but can be turned off by setting type = disbaled.
        Parameters:
        type - the value to set
        Returns:
        this builder
      • tokenBudget

        public CohereThinkingV2.Builder tokenBudget​(Integer tokenBudget)
        The maximum number of tokens the model can use for thinking, which must be set to a positive integer.

        The model will stop thinking if it reaches the thinking token budget and will proceed with the response.

        Parameters:
        tokenBudget - the value to set
        Returns:
        this builder