Difference ActionReverted and UserUtteranceReverted

Hello everyone,

Looking at the implementation of the two Event subclasses in the title, I don’t see in which way they differ. Could someone tell me if they are really different, or they used to be different and have been modified in a way which makes them now similar.

I’m looking at Rasa version 1.1.6.

1 Like

Hey @abecher, welcome to the forum! They are very similar, the only difference is that one reverts a bot action and one reverts user input (and everything that happened after, including more actions). So it’s pretty much about how far back the reversion goes.

@erohmensing could you please more as no much document is there for these topic. Purspose of restart ,UserUtteranceReverted and ConversationPaused?

@piyush29programmer For example, consider a story like so:

*intent_1
  - action_1
*intent_2
  - action_2
  - action_3
  - action_4

if action_4 returns ActionReverted(), then the context for the next prediction will look like:

*intent_1
  - action_1
*intent_2
  - action_2
  - action_3

However if it returns a UserUtteranceReverted(), it will look like

*intent_1
  - action_1

Does that make sense?

3 Likes

thanxs for the help .could you please respond to Purspose of restart ,UserUtteranceReverted and ConversationPaused?