MAIDR JavaScript API
    Preparing search index...

    Interface Message

    Chat message in the conversation history with metadata and status.

    interface Message {
        id: string;
        text: string;
        isUser: boolean;
        model?: Llm;
        timestamp: string;
        status: Status;
        modelSelections?: SelectedModel[];
        isWelcomeMessage?: boolean;
        image?: string;
        positionText?: string;
        questionId?: string;
    }
    Index

    Properties

    id: string
    text: string
    isUser: boolean
    model?: Llm
    timestamp: string
    status: Status
    modelSelections?: SelectedModel[]
    isWelcomeMessage?: boolean
    image?: string

    Plot image sent to the AI with this question (data URL); user messages only.

    positionText?: string

    Verbose description of the focused point sent with this question; user messages only.

    questionId?: string

    The id of the user message this response answers; responses only. The timestamp cannot pair them: two questions sent in the same millisecond share one.