public enum AIMessageSource extends java.lang.Enum<AIMessageSource> implements ValueEnum
Enum Constant and Description |
---|
AI
Content to be seen as generated via AI, although it does not necessarily need to have been generated via AI.
|
SYSTEM
Content that frames the context of the request and how AI should operate.
|
USER
Content from the user.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static AIMessageSource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AIMessageSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AIMessageSource SYSTEM
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "system".
public static final AIMessageSource USER
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "user".
public static final AIMessageSource AI
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "AI".
public static AIMessageSource[] values()
for (AIMessageSource c : AIMessageSource.values()) System.out.println(c);
public static AIMessageSource valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null