Open turnerrainer opened 1 year ago
sample inputs to /rasa/stories/search
{
"type": "slots",
"slot": "asukoht"
}
{
"type": "forms",
"form": "custom_fallback_form"
}
{
"type": "responses",
"response": "utter_andmekaitse_küsimused"
}
@janyprus please link this issue with an appropriate pull request.
Pull requests #163 and #167
@turnerrainer will explain how to test it
AS AN Architect I WANT to have a REST service to list all Rasa rules requiring specified slots SO THAT there wouldn't be duplicate services for it
Acceptance Criteria
/rasa/stories/search
with input parameterstype: slots/forms
andinput: {JSON array}
stories.yml
as source of truthExamples
Search for required slots
Slots are defined by defining
slot_was_set
, for example,rules.rule.steps.slot_was_set
,rules.rule.condition.slot_was_set
, etc.or https://github.com/buerokratt/Training-Module/blob/main/mock1/data/stories.yml#L9-L14
Search for required forms
Forms are defined by defining
action
, for example,stories.story.steps.action
with value(s) having a suffix_form
For example
or https://github.com/buerokratt/Training-Module/blob/main/mock1/data/stories.yml#L11
Forms are defined by defining
active_loop
, for example,stories.story.steps.active_loop
with value(s) having a suffix_form
Search for required responses within stories
Responses are defined by defining
action
, for example,stories.story.steps.action
with value(s) having a prefixutter_
For example
or https://github.com/buerokratt/Training-Module/blob/main/mock1/data/stories.yml#L7