Class ModelOptionsUtils

java.lang.Object
org.springframework.ai.model.ModelOptionsUtils

public abstract class ModelOptionsUtils extends Object
Utility class for manipulating ModelOptions objects.
Since:
0.8.0
Author:
Christian Tzolov, Thomas Vitale, chabinhwang, Sebastien Deleuze
  • 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.