notice
This is unreleased documentation for Rasa Documentation Main/Unreleased version.
For the latest released documentation, see the latest version (3.x).
rasa.core.policies.rule_policy
InvalidRule Objects
Exception that can be raised when rules are not valid.
RulePolicy Objects
Policy which handles all the rules.
supported_data
The type of data supported by this policy.
Returns:
The data type supported by this policy (ML and rule data).
get_default_config
Returns the default config (see parent class for full docstring).
__init__
Initializes the policy.
raise_if_incompatible_with_domain
Checks whether the domains action names match the configured fallback.
Arguments:
config
- configuration of aRulePolicy
domain
- a domain
Raises:
InvalidDomain
if this policy is incompatible with the domain
train
Trains the policy on given training trackers.
Arguments:
training_trackers
- The list of the trackers.domain
- The domain.
Returns:
The resource which can be used to load the trained policy.
predict_action_probabilities
Predicts the next action (see parent class for more information).
persist
Persists trained RulePolicy
.