Interface ChatMessage

ChatMessage represents an object that contains the content and a role. It can be used for input and returned as part of the response.

interface ChatMessage {
    content: string;
    output: string;
    role: Roles;
}

Properties

Properties

content: string

content represents the content of the message.

output: string

output represents the output for this message.

role: Roles

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