Package com.openai.models
Class ChatCompletionMessage.Role
-
- All Implemented Interfaces:
-
com.openai.core.Enum
public final class ChatCompletionMessage.Role implements Enum
The role of the author of this message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
ChatCompletionMessage.Role.Known
public enum
ChatCompletionMessage.Role.Value
-
Field Summary
Fields Modifier and Type Field Description public final static ChatCompletionMessage.Role
ASSISTANT
-
Method Summary
Modifier and Type Method Description final JsonField<String>
_value()
final ChatCompletionMessage.Role.Value
value()
final ChatCompletionMessage.Role.Known
known()
final String
asString()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionMessage.Role
of(String value)
-
-
Method Detail
-
value
final ChatCompletionMessage.Role.Value value()
-
known
final ChatCompletionMessage.Role.Known known()
-
of
final static ChatCompletionMessage.Role of(String value)
-
-
-
-