Package org.freeplane.api.ai
Class AiTemperature
java.lang.Object
org.freeplane.api.ai.AiTemperature
Immutable public temperature configuration for script-facing AI requests.
null temperature in AiModelConfiguration means inherit the
surrounding configuration. modelDefault() is an explicit value meaning
"ask the selected model to use its own default temperature". Numeric values are
passed through as requested model temperature values.
- Since:
- 1.13.3
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetValue()Returns the numeric temperature value, ornullformodelDefault().inthashCode()booleanReturns whether this value requests the model default.booleanReturns whether this value is numeric.static AiTemperatureRequests the selected model's default temperature explicitly.static AiTemperatureof(double value) Requests a numeric temperature.toString()
-
Method Details
-
modelDefault
Requests the selected model's default temperature explicitly.- Returns:
- shared model-default temperature marker
-
of
Requests a numeric temperature.- Parameters:
value- finite temperature value- Returns:
- numeric temperature configuration
-
isModelDefault
public boolean isModelDefault()Returns whether this value requests the model default.- Returns:
- true for
modelDefault()
-
isNumeric
public boolean isNumeric()Returns whether this value is numeric.- Returns:
- true when
getValue()is non-null
-
getValue
Returns the numeric temperature value, ornullformodelDefault().- Returns:
- numeric temperature, or
null
-
hashCode
public int hashCode() -
equals
-
toString
-