public enum ChatMessageType extends Enum<ChatMessageType>
| Enum Constant and Description |
|---|
AI |
SYSTEM |
TOOL_EXECUTION_RESULT |
USER |
| Modifier and Type | Method and Description |
|---|---|
static Class<? extends ChatMessage> |
classOf(ChatMessageType type) |
static ChatMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChatMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatMessageType SYSTEM
public static final ChatMessageType USER
public static final ChatMessageType AI
public static final ChatMessageType TOOL_EXECUTION_RESULT
public static ChatMessageType[] values()
for (ChatMessageType c : ChatMessageType.values()) System.out.println(c);
public static ChatMessageType 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 static Class<? extends ChatMessage> classOf(ChatMessageType type)
Copyright © 2023. All rights reserved.