Package org.freeplane.api.ai
Class AiModelSelection
java.lang.Object
org.freeplane.api.ai.AiModelSelection
Explicit provider/model choice or default-model marker inside an
AiModelConfiguration.- Since:
- 1.13.3
-
Method Summary
Modifier and TypeMethodDescriptionstatic AiModelSelectionSelects the default model resolved by the request execution context.booleanstatic AiModelSelectionSelects a specific provider/model pair.Returns the explicit model name, ornullfordefaultModel().Returns the explicit provider name, ornullfordefaultModel().inthashCode()booleanReturns whether this selection explicitly requests the default model.
-
Method Details
-
defaultModel
Selects the default model resolved by the request execution context.This is an explicit override, not the same as leaving model selection unset. In a saved prompt request it bypasses the saved prompt's explicit model selection while still allowing other model-configuration fields to inherit independently.
- Returns:
- default-model marker
-
explicit
Selects a specific provider/model pair.Both names are trimmed and must be non-blank. Availability is checked when the request starts.
- Parameters:
providerName- provider identifiermodelName- model identifier within the provider- Returns:
- explicit model selection
-
isDefaultModel
public boolean isDefaultModel()Returns whether this selection explicitly requests the default model.- Returns:
- true for
defaultModel()
-
getProviderName
Returns the explicit provider name, ornullfordefaultModel().- Returns:
- provider name, or
null
-
getModelName
Returns the explicit model name, ornullfordefaultModel().- Returns:
- model name, or
null
-
hashCode
public int hashCode() -
equals
-