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

    Interface QuestionResponseContent

    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: string | undefined;
        isAwaitingInteraction?: boolean;
        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?(): string | undefined;
        asString?(): string | undefined;
        merge?(nextChatResponseContent: ChatResponseContent): boolean;
        toLanguageModelMessage?(): LanguageModelMessage | LanguageModelMessage[];
        toSerializable?(): SerializableChatResponseContentData;
    }

    Hierarchy (View Summary)

    Implemented by

    Index
    header?: string
    interactionId: string | undefined

    Stable identifier for deduplication in pending interaction tracking.

    isAwaitingInteraction?: boolean

    Whether the interaction currently requires user action. Unlike isResolved, this reflects the momentary state: e.g. a tool call whose confirmation was granted is not yet resolved (the tool is still executing) but no longer awaits interaction. When undefined, consumers should fall back to !isResolved.

    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.