claudius-chat-widget
    Preparing search index...

    Interface ChatMessage

    A single chat message exchanged between the user and the assistant.

    interface ChatMessage {
        attachments?: ChatAttachment[];
        content: string;
        createdAt?: string;
        id: string;
        role: "user" | "assistant";
        sources?: Source[];
        toolUses?: ToolUse[];
    }
    Index

    Properties

    attachments?: ChatAttachment[]

    Files attached by the user to this message, when any.

    content: string

    Plain-text message body. May be empty when the message only carries attachments.

    createdAt?: string

    ISO 8601 time the message was added to the conversation. Absent on messages persisted by widget versions that predate conversation export.

    id: string

    Stable unique identifier, used as the React list key.

    role: "user" | "assistant"

    Who authored the message.

    sources?: Source[]

    Sources cited by the assistant for this message, when any.

    toolUses?: ToolUse[]

    Tools the assistant called while producing this message, when any.