Преглед на файлове

Upload files to 'chatbot/action'

SadhulaSaiKumar преди 2 години
родител
ревизия
a3cd34535e
променени са 2 файла, в които са добавени 27 реда и са изтрити 0 реда
  1. Двоични данни
      chatbot/action/__init__.py
  2. 27
    0
      chatbot/action/actions.py

Двоични данни
chatbot/action/__init__.py Целия файл


+ 27
- 0
chatbot/action/actions.py Целия файл

@@ -0,0 +1,27 @@
1
+# This files contains your custom actions which can be used to run
2
+# custom Python code.
3
+#
4
+# See this guide on how to implement these action:
5
+# https://rasa.com/docs/rasa/custom-actions
6
+
7
+
8
+# This is a simple example for a custom action which utters "Hello World!"
9
+
10
+# from typing import Any, Text, Dict, List
11
+#
12
+# from rasa_sdk import Action, Tracker
13
+# from rasa_sdk.executor import CollectingDispatcher
14
+#
15
+#
16
+# class ActionHelloWorld(Action):
17
+#
18
+#     def name(self) -> Text:
19
+#         return "action_hello_world"
20
+#
21
+#     def run(self, dispatcher: CollectingDispatcher,
22
+#             tracker: Tracker,
23
+#             domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
24
+#
25
+#         dispatcher.utter_message(text="Hello World!")
26
+#
27
+#         return []

Loading…
Отказ
Запис