简体   繁体   English

沃森的谈话重置了对话

[英]Watson conversation reset conversation

There is any way to tell to watson that he sould reset the conversation "after this point everty asked will be just like conversation_start"? 有什么方法可以告诉沃森,他会重新开始谈话“在这一点之后,everty会问这会像conversation_start”吗?

tks TKS

Watson conversation is stateless. 沃森的谈话是无国籍的。 So it doesn't know anything about where you are in the conversation without the context object. 因此,如果没有上下文对象,它就不知道你在对话中的位置。

To reset the conversation, you just don't send the context object, and it will generate a new one. 要重置对话,您只需不发送上下文对象,它将生成一个新对象。

Or let's say you are in a process flow, and want to reset to a particular point. 或者假设您处于流程中,并希望重置为特定点。 Just take a copy of the context object at that point in time. 只需在该时间点获取上下文对象的副本。 Then use that to rollback. 然后使用它来回滚。

This is assuming that your application layer hasn't done anything outside of conversation which would be related to the rollback. 这假设您的应用程序层没有在会话之外做任何与回滚相关的事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM