forked from rahulkumaran/Hack-In-The-North
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactions.py
More file actions
40 lines (26 loc) · 1.11 KB
/
actions.py
File metadata and controls
40 lines (26 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import logging
import warnings
from rasa_core import utils
from rasa_core.actions import Action
from rasa_core.agent import Agent
from rasa_core.channels.console import ConsoleInputChannel
from rasa_core.events import SlotSet
from rasa_core.interpreter import RasaNLUInterpreter
from rasa_core.policies.memoization import MemoizationPolicy
from outcome import predict_outcome
class ActionPatientInfoRecurrence(Action):
def name(self):
return "patient_consultation_info"
def run(self, dispatcher, tracker, domain):
dispatcher.utter_message("Getting patient depression recurrence../")
rec_info = predict_outcome()
class ActionPatientGeneralInfo(Action):
def name(self):
return "patient_general_info"
def run(self, dispatcher, tracker, domain):
dispatcher.utter_message("Patient's general info")