Theia API Documentation v1.65.0
    Preparing search index...

    A reference to a value that the user added to their chat request.

    interface ChatPromptReference {
        id: string;
        modelDescription?: string;
        range?: [start: number, end: number];
        value: unknown;
    }
    Index

    Properties

    id: string

    A unique identifier for this kind of reference.

    modelDescription?: string

    A description of this value that could be used in an LLM prompt.

    range?: [start: number, end: number]

    The start and end index of the reference in the prompt. When undefined, the reference was not part of the prompt text.

    Note that the indices take the leading #-character into account which means they can used to modify the prompt as-is.

    value: unknown

    The value of this reference. The string | Uri | Location types are used today, but this could expand in the future.