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