public enum MessageType extends Enum<MessageType>
| Enum Constant and Description |
|---|
ANSWER |
FOLLOW_UP |
FUNCTION_CALL |
QUESTION |
TOOL_OUTPUT |
TOOL_RESPONSE |
UNKNOWN |
VERBOSE |
| Modifier and Type | Method and Description |
|---|---|
static MessageType |
fromString(String value) |
String |
getValue() |
static MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageType QUESTION
public static final MessageType ANSWER
public static final MessageType FUNCTION_CALL
public static final MessageType TOOL_OUTPUT
public static final MessageType TOOL_RESPONSE
public static final MessageType FOLLOW_UP
public static final MessageType VERBOSE
public static final MessageType UNKNOWN
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
public static MessageType fromString(String value)
Copyright © 2024. All rights reserved.