A system message in a chat.

interface ChatsSystemMessage {
    content: string | ChatsTextContentPart[];
    name?: string;
    role: "system";
}

Properties

Properties

content: string | ChatsTextContentPart[]

Content of a system message.

name?: string

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

role: "system"

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