rasa icon indicating copy to clipboard operation
rasa copied to clipboard

Add check loop def

Open emysdias opened this issue 2 years ago • 3 comments

Co-authored-by: WashingtonBispo [email protected]

https://github.com/RasaHQ/rasa/issues/10925

Proposed changes:

file stories.yml to test

version: "3.0"

stories:

- story: greet path
  steps:
  - intent: greet
  - action: utter_greet
  - checkpoint: cp_a

- story: cp_a1
  steps:
  - checkpoint: cp_a
  - intent: movies
  - action: utter_movies

- story: cp_a2
  steps:
  - checkpoint: cp_a
  - intent: deny
  - action: utter_cheer_up
  - checkpoint: cp_b

- story: cp_b1
  steps:
  - checkpoint: cp_b
  - intent: affirm
  - action: utter_cheer_up
  - checkpoint: cp_a
  

- story: sad path 1
  steps:
  - intent: greet
  - action: utter_greet
  - intent: mood_unhappy
  - action: utter_cheer_up
  - action: utter_did_that_help
  - intent: affirm
  - action: utter_happy

- story: sad path 2
  steps:
  - intent: greet
  - action: utter_greet
  - intent: mood_unhappy
  - action: utter_cheer_up
  - action: utter_did_that_help
  - intent: deny
  - action: utter_goodbye

The warning: Captura de tela de 2022-03-08 10-12-10

Status (please check what you already did):

  • [ ] added some tests for the functionality
  • [ ] updated the documentation
  • [x] updated the changelog (please check changelog for instructions)
  • [ ] reformat files using black (please check Readme for instructions)

emysdias avatar Mar 08 '22 03:03 emysdias

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

:white_check_mark: emysdias
:x: itallogravina
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Mar 08 '22 03:03 CLAassistant

I don't understand how to interpret cp_b => cp_a is causing a loop. I'd like to quickly identify which stories are causing the loop just by reading the warning, similar to how the warning is when rasa data validate found conflicting stories.

hsm207 avatar Mar 09 '22 08:03 hsm207

I don't understand how to interpret cp_b => cp_a is causing a loop. I'd like to quickly identify which stories are causing the loop just by reading the warning, similar to how the warning is when rasa data validate found conflicting stories.

I changed the message Captura de tela de 2022-03-09 20-35-22

emysdias avatar Mar 09 '22 23:03 emysdias