The definition of a user message.

interface TextChatMessageUser {
    content: string | WatsonXAI.TextChatUserContents[];
    name?: string;
    role: "user";
}

Hierarchy (view full)

Properties

Properties

content: string | WatsonXAI.TextChatUserContents[]

Content of a user message.

name?: string

An optional name for the participant.

role: "user"

The role of the messages author. Note that this parameter is case sensitive, make sure to use lower case.