NlpResult class

语义结果实体

Constructors

NlpResult({required Rc rc, required String text, required String uuid, required String sid, String? service, String? category, dynamic error, String? vendor, List<Semantic>? semantic, AiuiData? data, String? dialogStat, dynamic usedState, dynamic state, String? version, bool? saveHistory, Answer? answer, List<NlpResult>? moreResults, bool? shouldEndSession})
NlpResult.fromJson(Map json)
factory

Properties

answer Answer?
对结果内容的最简化文本/图片描述,各技能自定义
getter/setter pair
category String?
技能类别
final
data AiuiData?
数据结构化表示,各技能自定义
final
dialogStat String?
用于客户端判断是否使用信源返回数据
final
error → dynamic
错误信息
final
hashCode int
The hash code for this object.
no setterinherited
moreResults List<NlpResult>?
在存在多个候选结果时,用于提供更多的结果描述
final
rc Rc
应答码(response code)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveHistory bool?
是否有会话历史
final
semantic List<Semantic>?
本次语义(包括历史继承过来的语义)结构化表示,各技能自定义
final
service String?
技能的全局唯一名称,一般为vendor.name
final
shouldEndSession bool?
当该字段为空或为 true 时表示技能已完成一次对话; 如果为 false 时,表示技能期待用户输入,远场交互设备此时应该主动打开麦克风拾音
final
sid String
会话id,用于标识会话,调试时提供给讯飞帮助定位问题
final
state → dynamic
交互状态(历史字段,请忽略)
final
text String
用户的输入
final
usedState → dynamic
交互使用状态(历史字段,请忽略)
final
uuid String
同sid(历史字段,请忽略)
final
vendor String?
技能提供者
final
version String?
版本
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited