Package org.springframework.ai.model
Class ModelOptionsUtils
java.lang.Object
org.springframework.ai.model.ModelOptionsUtils
Utility class for manipulating
ModelOptions objects.- Since:
- 0.8.0
- Author:
- Christian Tzolov, Thomas Vitale, chabinhwang, Sebastien Deleuze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @Nullable TmergeOption(@Nullable T runtimeValue, @Nullable T defaultValue) Return the runtime value if not null, or else the default value.
-
Constructor Details
-
ModelOptionsUtils
public ModelOptionsUtils()
-
-
Method Details
-
mergeOption
@Contract("_, !null -> !null") public static <T> @Nullable T mergeOption(@Nullable T runtimeValue, @Nullable T defaultValue) Return the runtime value if not null, or else the default value.
-