Interface AssistantMessage

A single message sent by the user or the assistant.

interface AssistantMessage {
    assistantId: string;
    conversationId: string;
    createdAt: Date;
    data: AssistantMessageData;
    messageId: string;
}

Properties

assistantId: string

The id of the assistant that this message is part of.

conversationId: string

The id of the conversation this message is part of.

createdAt: Date

When this message was created.

The data associated with this message that varies between user messages and assistant responses.

messageId: string

The id of this message.