Example

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): boolean;
    isSame(other): boolean;
}

Hierarchy (view full)

Properties

answer: string

Description

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

answerStatusCode: number

Description

The status of the QnaResponse

id: number

Description

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

Description

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

  • Parameters

    • type: string

    Returns boolean

    Description

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

  • Parameters

    Returns boolean

    Description

    Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

Generated using TypeDoc