type-alias
Source: events.ts ↗
ChatClarificationQuestionsEvent
An event emitted when clarification questions are presented, answered, or cancelled.
export type ChatClarificationQuestionsEvent = BaseEvent & {
type: "chatClarificationQuestions";
interactionId: string;
questions: ChatClarificationQuestion[];
responses?: Record<string, string> | null;
};
References: BaseEvent, ChatClarificationQuestion
Remarks
responses is undefined when the questions are first presented, contains the selected answers after submission, and is null when the user cancels the questions by sending another message.