Enum GPTConfiguration.AnswerType
- java.lang.Object
-
- java.lang.Enum<GPTConfiguration.AnswerType>
-
- com.composum.ai.backend.base.service.chat.GPTConfiguration.AnswerType
-
- All Implemented Interfaces:
Serializable
,Comparable<GPTConfiguration.AnswerType>
- Enclosing class:
- GPTConfiguration
public static enum GPTConfiguration.AnswerType extends Enum<GPTConfiguration.AnswerType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GPTConfiguration.AnswerType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GPTConfiguration.AnswerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MARKDOWN
public static final GPTConfiguration.AnswerType MARKDOWN
The default if nothing is requested - markdown is the "native" output form at least of ChatGPT.
-
HTML
public static final GPTConfiguration.AnswerType HTML
Real HTML or, more likely, richtext as simplified HTML.
-
JSON
public static final GPTConfiguration.AnswerType JSON
JSON is not yet supported by all models, so a bit dangerous.
-
-
Method Detail
-
values
public static GPTConfiguration.AnswerType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GPTConfiguration.AnswerType c : GPTConfiguration.AnswerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GPTConfiguration.AnswerType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-