Package de.espirit.firstspirit.ai.dto
Enum Class StrictMode
- All Implemented Interfaces:
Serializable,Comparable<StrictMode>,Constable
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:
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic StrictModeReturns the enum constant of this class with the specified name.static StrictMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Use strict mode if the requirements are met.- Since:
- 5.2.251303
-
ENABLED
Use strict mode, requests not meeting the requirements may be rejected.- Since:
- 5.2.251303
-
DISABLED
Do not use strict mode.- Since:
- 5.2.251303
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-