rasa data validate should warn when checkpoints create loops in stories
See original GitHub issueWhat problem are you trying to solve?
Users may accidentally create circular logic in stories using checkpoints. rasa data validate
should flag this if it occurs.
What’s your suggested solution?
rasa data validate
throws a warning mentioning which checkpoints caused the loop
Examples (if relevant)
For example, these stories:
version: “2.0”
stories:
-
story: happy path 1 steps:
-
intent: greet
-
action: utter_greet
-
checkpoint: cp_a
-
story: happy path 2 steps:
-
checkpoint: cp_a
-
intent: mood_great
-
action: utter_happy
-
story: sad path 1a steps:
-
checkpoint: cp_a
-
intent: mood_unhappy
-
action: utter_cheer_up
-
action: utter_did_that_help
-
checkpoint: cp_b
-
story: sad path 1b steps:
-
checkpoint: cp_b
-
intent: affirm
-
action: utter_happy
-
checkpoint: cp_a
-
story: sad path 1b steps:
-
checkpoint: cp_b
-
intent: deny
-
action: utter_goodbye
creates a loop as shown in this diagram:
<span class="image-wrap" style=""></span>
Is anything blocking this from being implemented? (if relevant)
No response
Definition of Done
rasa data validate
throws a warning mentioning which checkpoints caused the loop
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Exalate commented:
emysdias commented:
The pull request: https://github.com/RasaHQ/rasa/pull/10971
Exalate commented:
emysdias commented:
Whick is better to show, checkpoints or the story that is causing? @hsm207