Package com.openai.models
Class Message.Role
-
- All Implemented Interfaces:
-
com.openai.core.Enum
public final class Message.Role implements Enum
The entity that produced the message. One of
user
orassistant
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
Message.Role.Known
public enum
Message.Role.Value
-
Field Summary
Fields Modifier and Type Field Description public final static Message.Role
USER
public final static Message.Role
ASSISTANT
-
Method Summary
-
-
Method Detail
-
value
final Message.Role.Value value()
-
known
final Message.Role.Known known()
-
of
final static Message.Role of(String value)
-
-
-
-