Package com.openai.models
Class BetaThreadCreateParams.Message.Role
-
- All Implemented Interfaces:
-
com.openai.core.Enum
public final class BetaThreadCreateParams.Message.Role implements EnumThe role of the entity that is creating the message. Allowed values include:
user: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.assistant: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBetaThreadCreateParams.Message.Role.Knownpublic enumBetaThreadCreateParams.Message.Role.Value
-
Field Summary
Fields Modifier and Type Field Description public final static BetaThreadCreateParams.Message.RoleUSERpublic final static BetaThreadCreateParams.Message.RoleASSISTANT
-
Method Summary
Modifier and Type Method Description final JsonField<String>_value()final BetaThreadCreateParams.Message.Role.Valuevalue()final BetaThreadCreateParams.Message.Role.Knownknown()final StringasString()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaThreadCreateParams.Message.Roleof(String value)-
-
Method Detail
-
value
final BetaThreadCreateParams.Message.Role.Value value()
-
known
final BetaThreadCreateParams.Message.Role.Known known()
-
of
final static BetaThreadCreateParams.Message.Role of(String value)
-
-
-
-