Skip to content

Commit

Permalink
Response generator responses with multimedia elements (#6323)
Browse files Browse the repository at this point in the history
* Use rules for greet, goodbye & challenge

* Convert nlu & stories to yml

* Add '-' in front of examples

* Add 'y' , 'n' to affirm & deny intents

* Remove 'greet -> utter_greet' rule, and use in stories instead

* implement yaml response format as well as extended response format

extended response format adds the ability to add images, buttons, ... to responses generated from the response selector. the format is the same as we use for utter templates in the domain.

* code style improvement

* fixed linter error

* fixed some more test and renamed nlg_stories to responses

* fixed typing issue

* fixed more types

* fixed tests

* Update training_data.py

* fixed import errror

* fixed remaining tests

* fixed name error

* Update rules.yml

* added tests for responses

* added changelog entry

* updated documentation

* applied review suggestions

* integrated review comments

* fixed typing issue

Co-authored-by: Arjaan Buijk <[email protected]>
Co-authored-by: Arjaan Buijk <[email protected]>
Co-authored-by: Roberto <[email protected]>
  • Loading branch information
4 people authored Aug 17, 2020
1 parent 3ed00f0 commit e186b07
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions test_rasa_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import rasa
from rasa.cli import interactive, train
from tests.conftest import DEFAULT_NLU_DATA


def test_interactive_help(run: Callable[..., RunResult]):
Expand Down Expand Up @@ -110,7 +111,7 @@ def test_train_core_called_when_no_model_passed_and_core(
"--config",
default_stack_config,
"--stories",
"examples/moodbot/data/stories.md",
"examples/moodbot/data/stories.yml",
"--domain",
"examples/moodbot/domain.yml",
]
Expand All @@ -136,13 +137,7 @@ def test_no_interactive_without_core_data(
interactive.add_subparser(sub_parser, [])

args = parser.parse_args(
[
"interactive",
"--config",
default_stack_config,
"--data",
"examples/moodbot/data/nlu.md",
]
["interactive", "--config", default_stack_config, "--data", DEFAULT_NLU_DATA,]
)
interactive._set_not_required_args(args)

Expand Down

0 comments on commit e186b07

Please sign in to comment.