IntentRecognitionCanceledEventArgs class

Define payload of intent recognition canceled result events.

Extends

Constructors

IntentRecognitionCanceledEventArgs(CancellationReason, string, CancellationErrorCode, IntentRecognitionResult, number, string)

Creates and initializes an instance of this class.

Properties

errorCode

The error code in case of an unsuccessful recognition. Added in version 1.1.0.

errorDetails

In case of an unsuccessful recognition, provides details of the occurred error.

offset

Represents the message offset

reason

The reason the recognition was canceled.

result

Represents the intent recognition result.

sessionId

Represents the session identifier.

Constructor Details

IntentRecognitionCanceledEventArgs(CancellationReason, string, CancellationErrorCode, IntentRecognitionResult, number, string)

Creates and initializes an instance of this class.

new IntentRecognitionCanceledEventArgs(reason: CancellationReason, errorDetails: string, errorCode: CancellationErrorCode, result?: IntentRecognitionResult, offset?: number, sessionId?: string)

Parameters

errorDetails

string

result
IntentRecognitionResult

The result of the intent recognition.

offset

number

The offset.

sessionId

string

The session id.

Property Details

errorCode

The error code in case of an unsuccessful recognition. Added in version 1.1.0.

CancellationErrorCode errorCode

Property Value

An error code that represents the error reason.

errorDetails

In case of an unsuccessful recognition, provides details of the occurred error.

string errorDetails

Property Value

string

A String that represents the error details.

offset

Represents the message offset

number offset

Property Value

number

reason

The reason the recognition was canceled.

CancellationReason reason

Property Value

Specifies the reason canceled.

result

Represents the intent recognition result.

IntentRecognitionResult result

Property Value

Represents the intent recognition result.

sessionId

Represents the session identifier.

string sessionId

Property Value

string

Represents the session identifier.