Class ThreadCreateAndRunParams.Thread.Message.Role

  • All Implemented Interfaces:
    com.openai.core.Enum

    
    public final class ThreadCreateAndRunParams.Thread.Message.Role
     implements Enum
                        

    The 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.