From a3cd34535ea9d53438a37e8dcaf2fac20ccff635 Mon Sep 17 00:00:00 2001 From: SadhulaSaiKumar Date: Wed, 12 Apr 2023 10:58:28 +0000 Subject: [PATCH] Upload files to 'chatbot/action' --- chatbot/action/__init__.py | Bin 0 -> 1024 bytes chatbot/action/actions.py | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 chatbot/action/__init__.py create mode 100644 chatbot/action/actions.py diff --git a/chatbot/action/__init__.py b/chatbot/action/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..06d7405020018ddf3cacee90fd4af10487da3d20 GIT binary patch literal 1024 ScmZQz7zLvtFd70QH3R?z00031 literal 0 HcmV?d00001 diff --git a/chatbot/action/actions.py b/chatbot/action/actions.py new file mode 100644 index 0000000..8bf1f75 --- /dev/null +++ b/chatbot/action/actions.py @@ -0,0 +1,27 @@ +# This files contains your custom actions which can be used to run +# custom Python code. +# +# See this guide on how to implement these action: +# https://rasa.com/docs/rasa/custom-actions + + +# This is a simple example for a custom action which utters "Hello World!" + +# from typing import Any, Text, Dict, List +# +# from rasa_sdk import Action, Tracker +# from rasa_sdk.executor import CollectingDispatcher +# +# +# class ActionHelloWorld(Action): +# +# def name(self) -> Text: +# return "action_hello_world" +# +# def run(self, dispatcher: CollectingDispatcher, +# tracker: Tracker, +# domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: +# +# dispatcher.utter_message(text="Hello World!") +# +# return []