Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion alt_requirements/requirements_botfront.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rasa-addons==0.6.3
rasa-addons==0.7.0
jieba==0.39
python-socketio==4.3.0
python-engineio==3.9.3
2 changes: 1 addition & 1 deletion docker/Dockerfile_botfront
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ EXPOSE 5005

ENTRYPOINT ["rasa"]

CMD ["--help"]
CMD ["run", "--enable-api", "--debug"]
13 changes: 12 additions & 1 deletion rasa/core/actions/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def default_actions() -> List["Action"]:

def default_action_names() -> List[Text]:
"""List default action names."""
return [a.name() for a in default_actions()]
# bf mod
return [a.name() for a in default_actions()] + list(actions_bf.keys())
# /bf mod


def combine_user_with_default_actions(user_actions):
Expand All @@ -92,6 +94,9 @@ def action_from_name(
return defaults[name]
elif name.startswith(UTTER_PREFIX):
return ActionUtterTemplate(name)
# bf mod
elif name in actions_bf: return actions_bf[name]
# /bf mod
else:
return RemoteAction(name, action_endpoint)

Expand Down Expand Up @@ -370,6 +375,7 @@ async def _utter_responses(
responses += [resolved]
else:
responses += [response]
# /bf mod

for response in responses:
if "template" in response:
Expand All @@ -378,6 +384,7 @@ async def _utter_responses(
draft = await nlg.generate(
# bf: added language kwarg
response["template"], tracker, output_channel.name(), **kwargs, language=output_channel.language
# /bf mod
)
if not draft:
continue
Expand Down Expand Up @@ -604,3 +611,7 @@ def __init__(self):
super(ActionDefaultAskRephrase, self).__init__(
"utter_ask_rephrase", silent_fail=True
)

# bf mod
from rasa_addons.core.actions import actions_bf
# /bf mod
2 changes: 1 addition & 1 deletion rasa/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "1.1.7"
__bf_patch__ = "-bf.3"
__bf_patch__ = "-bf.5"