Interface ChatInputMessage

ChatInputMessage represents a role and content related to a chat.

interface ChatInputMessage {
    content: string;
    role: Roles;
}

Properties

Properties

content: string

content represents the content of the message.

role: Roles

role represents the role of the sender (user or assistant).