A user message in a chat.

interface ChatsUserMessage {
    content: ChatsUserContent;
    name?: string;
    role: "user";
}

Properties

Properties

Content of a user message.

name?: string

Name for the participant. Provides the model information to differentiate between participants of the same role.

role: "user"

Role of the messages author, in this case should always be "user".