Enum Class AiThinkingEffort

java.lang.Object
java.lang.Enum<AiThinkingEffort>
org.freeplane.api.ai.AiThinkingEffort
All Implemented Interfaces:
Serializable, Comparable<AiThinkingEffort>, Constable

public enum AiThinkingEffort extends Enum<AiThinkingEffort>
Provider-independent thinking-effort override for AI model configuration.

A null thinking effort in AiModelConfiguration means inherit the surrounding configuration.

Since:
1.13.3
  • Enum Constant Details

  • Method Details

    • values

      public static AiThinkingEffort[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AiThinkingEffort valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromPreferenceValue

      public static AiThinkingEffort fromPreferenceValue(String value)
      Parses a stored preference value.

      null, blank, and inherit return null. Unknown values also return null.

      Parameters:
      value - preference value
      Returns:
      parsed effort, or null to inherit
    • toOpenAiValue

      public String toOpenAiValue()
      Returns the lowercase value used by OpenAI-compatible providers.
      Returns:
      lowercase provider value