你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
IntentRecognitionCanceledEventArgs class
定义意向识别取消的结果事件的有效负载。
- 扩展
构造函数
Intent |
创建和初始化此类的实例。 |
属性
error |
如果识别失败,则错误代码。 已在版本 1.1.0 中添加。 |
error |
如果识别失败,请提供发生错误的详细信息。 |
offset | 表示消息偏移量 |
reason | 识别被取消的原因。 |
result | 表示意向识别结果。 |
session |
表示会话标识符。 |
构造函数详细信息
IntentRecognitionCanceledEventArgs(CancellationReason, string, CancellationErrorCode, IntentRecognitionResult, number, string)
创建和初始化此类的实例。
new IntentRecognitionCanceledEventArgs(reason: CancellationReason, errorDetails: string, errorCode: CancellationErrorCode, result?: IntentRecognitionResult, offset?: number, sessionId?: string)
参数
- reason
- CancellationReason
- errorDetails
-
string
- errorCode
- CancellationErrorCode
- result
- IntentRecognitionResult
意向识别的结果。
- offset
-
number
偏移量。
- sessionId
-
string
会话 ID。
属性详细信息
errorCode
如果识别失败,则错误代码。 已在版本 1.1.0 中添加。
CancellationErrorCode errorCode
属性值
表示错误原因的错误代码。
errorDetails
如果识别失败,请提供发生错误的详细信息。
string errorDetails
属性值
string
一个表示错误详细信息的字符串。
offset
表示消息偏移量
number offset
属性值
number
reason
result
sessionId
表示会话标识符。
string sessionId
属性值
string
表示会话标识符。