var answers = eventArgs.getQnaResponses();
for(var i = 0; i < answers.length; i++) {
print("answer option" + i + ": " + answers[i].answer);
}
interface QnaResponse {
    answer: string;
    answerStatusCode: number;
    id: number;
    status: PostProcessingActionResponseStatus;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

answer: string

The response string the module came up with in response to the eventArgs.transcript

answerStatusCode: number

The status of the QnaResponse

id: number

The id of the PostProcessingAction so returning results can be tied to post processing actions

The status holds the description and code for the post processing actions. In case of success the description will be empty and the code will be 0

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean