rasa/core/agent.py
def _is_form_policy_present(self) -> bool:
        """Check whether form policy is present and used."""

        has_form_policy = (
            self.policy_ensemble and
            any(isinstance(p, FormPolicy)
                for p in self.policy_ensemble.policies))

        return not self.domain or not self.domain.form_names or has_form_policy
Check whether form policy is present and used.
Check whether form policy is present and used.
Check whether form policy is present and used .
def _is_form_policy_present(self) -> bool:
        has_form_policy = (
            self.policy_ensemble and
            any(isinstance(p, FormPolicy)
                for p in self.policy_ensemble.policies))
        return not self.domain or not self.domain.form_names or has_form_policy
def _is_form_policy_present ( self ) -> bool : has_form_policy = ( self . policy_ensemble and any ( isinstance ( p , FormPolicy ) for p in self . policy_ensemble . policies ) ) return not self . domain or not self . domain . form_names or has_form_policy
Check whether form policy is present and used.
Check whether form policy is present and used .
"""Check whether form policy is present and used."""
self