Package com.tnsai.llm.format
Enum Class ResponseFormat.Type
- All Implemented Interfaces:
Serializable,Comparable<ResponseFormat.Type>,Constable
- Enclosing class:
ResponseFormat
Response format type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGeneric JSON object output.Structured output with JSON Schema validation.Default text output with no special formatting. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the API value for this type.static ResponseFormat.TypeReturns the enum constant of this class with the specified name.static ResponseFormat.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
TEXT
Default text output with no special formatting. -
JSON_OBJECT
Generic JSON object output.The model will output valid JSON, but structure is not enforced.
-
JSON_SCHEMA
Structured output with JSON Schema validation.The model will output JSON that conforms to the provided schema.
-
-
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
-
getValue
Gets the API value for this type.
-