else:
logger.debug("There is no active form")
return result
def _metadata(self) -> Dict[Text, Any]:
return {"priority": self.priority, "lookup": self.lookup}
After Change
if tracker.active_loop.get(LOOP_REJECTED):
if self.state_is_unhappy(tracker, domain):
tracker.update(LoopInterrupted(True))
return PolicyPrediction(result, policy_priority=self.priority)
result = self._prediction_result(
tracker.active_loop_name, tracker, domain
)
elif tracker.latest_action_name == tracker.active_loop_name:
// predict action_listen after form action
result = self._prediction_result(ACTION_LISTEN_NAME, tracker, domain)
else:
logger.debug("There is no active form")
return PolicyPrediction(result, policy_priority=self.priority)
def _metadata(self) -> Dict[Text, Any]:
return {"priority": self.priority, "lookup": self.lookup}