IntentRecognitionCanceledEventArgs class
Define payload of intent recognition canceled result events.
- Extends
Constructors
Intent |
Creates and initializes an instance of this class. |
Properties
error |
The error code in case of an unsuccessful recognition. Added in version 1.1.0. |
error |
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. |
session |
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
- reason
- CancellationReason
- errorDetails
-
string
- errorCode
- CancellationErrorCode
- 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.