Check for elements that only work with certain policy/domain combinations.
Persists the policy to storage.
Loads policy and domain specification from disk.
Default implementation of a
Checks if the prediction is by a policy which memoized the training data.
policy_name- The name of the policy.
max_confidence- The max confidence of the policy's prediction.
Trueif it's a
Predicts the next action the bot should take after seeing the tracker.
Picks the best policy prediction based on probabilities and policy priority.
Triggers fallback if
action_listen is predicted after a user utterance.
tracker- the :class:
domain- the :class:
interpreter- Interpreter which may be used by the policies to create additional features.
The best policy prediction.
Exception that can be raised when policy config is not valid.