Enum Class StrictMode

java.lang.Object
java.lang.Enum<StrictMode>
de.espirit.firstspirit.ai.dto.StrictMode
All Implemented Interfaces:
Serializable, Comparable<StrictMode>, Constable

@Experimental public enum StrictMode extends Enum<StrictMode>
Strict mode to be used when using function calling or structured output. If enabled, this will reliably adhere to a pre-defined schema instead of being best-effort.
Depending on the AI service used for making the requests this may include requirements like:
  • All function parameters need to be declared as required
  • JSON schema object definitions are expected to contain "additionalProperties": false
  • JSON schema object properties need to be declared as required using "required": ["name", ...]
Since:
5.2.251303
  • Enum Constant Details

    • DEFAULT

      public static final StrictMode DEFAULT
      Use strict mode if the requirements are met.
      Since:
      5.2.251303
    • ENABLED

      public static final StrictMode ENABLED
      Use strict mode, requests not meeting the requirements may be rejected.
      Since:
      5.2.251303
    • DISABLED

      public static final StrictMode DISABLED
      Do not use strict mode.
      Since:
      5.2.251303
  • Method Details

    • values

      public static StrictMode[] 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

      public static StrictMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null