Package org.freeplane.api.ai
Enum Class AiThinkingEffort
- All Implemented Interfaces:
Serializable,Comparable<AiThinkingEffort>,Constable
Provider-independent thinking-effort override for AI model configuration.
A null thinking effort in AiModelConfiguration means inherit
the surrounding configuration.
- Since:
- 1.13.3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AiThinkingEffortfromPreferenceValue(String value) Parses a stored preference value.Returns the lowercase value used by OpenAI-compatible providers.static AiThinkingEffortReturns the enum constant of this class with the specified name.static AiThinkingEffort[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAX
-
XHIGH
-
HIGH
-
MEDIUM
-
LOW
-
MINIMAL
-
NONE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fromPreferenceValue
Parses a stored preference value.null, blank, andinheritreturnnull. Unknown values also returnnull.- Parameters:
value- preference value- Returns:
- parsed effort, or
nullto inherit
-
toOpenAiValue
Returns the lowercase value used by OpenAI-compatible providers.- Returns:
- lowercase provider value
-