The definition of a user message.

interface TextChatMessagesTextChatMessageUser {
    content: WatsonXAI.TextChatUserContents[];
    name?: string;
    role: string;
}

Hierarchy (view full)

Properties

Properties

name?: string

An optional name for the participant. Provides the model information to differentiate between participants of the same role.

role: string

The role of the messages author.