public static enum CohereMessage.Role extends Enum<CohereMessage.Role> implements BmcEnum
One of CHATBOT|USER to identify who the message is coming from.
Modifier and Type | Method and Description |
---|---|
static CohereMessage.Role |
create(String key) |
String |
getValue() |
static CohereMessage.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CohereMessage.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CohereMessage.Role Chatbot
public static final CohereMessage.Role User
public static CohereMessage.Role[] values()
for (CohereMessage.Role c : CohereMessage.Role.values()) System.out.println(c);
public static CohereMessage.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 nullpublic static CohereMessage.Role create(String key)
Copyright © 2016–2024. All rights reserved.