Neutrome SDK reference
    Preparing search index...

    Type Alias MessageSpan

    Instruction range covering one message, from MSG_START to MSG_END.

    type MessageSpan = {
        end: number;
        role: MessageRole | null;
        start: number;
    }
    Index
    end: number

    Index of the closing instruction.

    role: MessageRole | null

    Declared role, or null when the message carries no role instruction.

    start: number

    Index of the opening instruction.