IntentRecognitionCanceledEventArgs class

Zdefiniuj ładunek anulowanych zdarzeń wyników rozpoznawania intencji.

Extends

Konstruktory

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

Tworzy i inicjuje wystąpienie tej klasy.

Właściwości

errorCode

Kod błędu w przypadku nieudanego rozpoznawania. Dodano w wersji 1.1.0.

errorDetails

W przypadku nieudanego rozpoznawania zawiera szczegółowe informacje o błędzie.

offset

Reprezentuje przesunięcie komunikatu

reason

Przyczyna anulowania rozpoznawania.

result

Reprezentuje wynik rozpoznawania intencji.

sessionId

Reprezentuje identyfikator sesji.

Szczegóły konstruktora

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

Tworzy i inicjuje wystąpienie tej klasy.

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

Parametry

errorDetails

string

result
IntentRecognitionResult

Wynik rozpoznawania intencji.

offset

number

Przesunięcie.

sessionId

string

Identyfikator sesji.

Szczegóły właściwości

errorCode

Kod błędu w przypadku nieudanego rozpoznawania. Dodano w wersji 1.1.0.

CancellationErrorCode errorCode

Wartość właściwości

Kod błędu reprezentujący przyczynę błędu.

errorDetails

W przypadku nieudanego rozpoznawania zawiera szczegółowe informacje o błędzie.

string errorDetails

Wartość właściwości

string

Ciąg reprezentujący szczegóły błędu.

offset

Reprezentuje przesunięcie komunikatu

number offset

Wartość właściwości

number

reason

Przyczyna anulowania rozpoznawania.

CancellationReason reason

Wartość właściwości

Określa przyczynę anulowania.

result

Reprezentuje wynik rozpoznawania intencji.

IntentRecognitionResult result

Wartość właściwości

Reprezentuje wynik rozpoznawania intencji.

sessionId

Reprezentuje identyfikator sesji.

string sessionId

Wartość właściwości

string

Reprezentuje identyfikator sesji.