I need to return the intent confidence in action. How could it possibly be done?
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]]:
# how to get confidence
confidence = 0
dispatcher.utter_message(json_message=
{
"confidence": confidence,
"text": "Hello World"
}
)
return []