public class RobotMessage extends Object
| 构造器和说明 |
|---|
RobotMessage() |
| 限定符和类型 | 方法和说明 |
|---|---|
RobotKnowledge |
getKnowledge()
当type=KNOWLEDGE时,值为RobotKnowledge对象
|
List<RobotRecommend> |
getRecommends()
当type=RECOMMEND时,值为RobotRecommend对象数组
|
RobotSelection |
getSelection()
当type=SELECTION时,值为RobotSelection对象
|
RobotText |
getText()
当type=TEXT时,值为RobotText对象
|
String |
getType()
消息的类型,TEXT:文本;KNOWLEDGE:知识库关联问题;RECOMMEND:知识库关联问题推荐;SELECTION:选择类型(目前多轮对话中可能会出现)
|
void |
setKnowledge(RobotKnowledge knowledge)
当type=KNOWLEDGE时,值为RobotKnowledge对象
|
void |
setRecommends(List<RobotRecommend> recommends)
当type=RECOMMEND时,值为RobotRecommend对象数组
|
void |
setSelection(RobotSelection selection)
当type=SELECTION时,值为RobotSelection对象
|
void |
setText(RobotText text)
当type=TEXT时,值为RobotText对象
|
void |
setType(String type)
消息的类型,TEXT:文本;KNOWLEDGE:知识库关联问题;RECOMMEND:知识库关联问题推荐;SELECTION:选择类型(目前多轮对话中可能会出现)
|
public RobotKnowledge getKnowledge()
public void setKnowledge(RobotKnowledge knowledge)
public List<RobotRecommend> getRecommends()
public void setRecommends(List<RobotRecommend> recommends)
public RobotSelection getSelection()
public void setSelection(RobotSelection selection)
public RobotText getText()
public void setText(RobotText text)
public String getType()
public void setType(String type)
Copyright © 2019. All Rights Reserved.