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

    Interface for ChatResponseContent parts that require user interaction. Content parts that implement this interface can be tracked by the delegation renderer without content-type-specific checks.

    interface QuestionResponseContent {
        handler?: QuestionResponseHandler | MultiSelectQuestionResponseHandler;
        header?: string;
        interactionId: undefined | string;
        isReadOnly: boolean;
        isResolved: boolean;
        kind: "question";
        multiSelect?: boolean;
        onSkip?: () => void;
        options: { description?: string; text: string; value?: string }[];
        question: string;
        request?: MutableChatRequestModel;
        selectedOption?: { text: string; value?: string };
        selectedOptions?: { text: string; value?: string }[];
        whenResolved: Promise<void>;
        asDisplayString?(): undefined | string;
        asString?(): undefined | string;
        merge?(nextChatResponseContent: ChatResponseContent): boolean;
        toLanguageModelMessage?(): LanguageModelMessage | LanguageModelMessage[];
        toSerializable?(): SerializableChatResponseContentData;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    header?: string
    interactionId: undefined | string

    Stable identifier for deduplication in pending interaction tracking.

    isReadOnly: boolean

    Whether this question is read-only (restored from persistence without handler). When true, the UI should disable option selection.

    isResolved: boolean

    Whether the interaction has been resolved (e.g., confirmed/denied, option selected).

    kind: "question"
    multiSelect?: boolean
    onSkip?: () => void

    Called when the user dismisses a single-select question without choosing an option.

    options: { description?: string; text: string; value?: string }[]
    question: string
    selectedOption?: { text: string; value?: string }
    selectedOptions?: { text: string; value?: string }[]
    whenResolved: Promise<void>

    Resolves when the interaction is resolved. Used for cleanup in delegation chains.

    Methods

    • Represents the content as a string. Returns undefined if the content is purely informational and/or visual and should not be included in the overall representation of the response.

      Returns undefined | string