Hi, I encountered problem when running rasa shell. Here is the logs:
and the actions’ code: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 []
class ActionRandom(Action):
def name(self) -> Text:
return "action_random"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
counter = random.randrange(100, 200)
dispatcher.utter_message("Random number: {}".format(counter))
return []
class ActionCounter(Action):
counter = 0
def name(self):
return "action_counter"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
self.counter += 1
dispatcher.utter_message("It's the {} time you activate me".format(self.counter))
return []
Will be grateful for any help