Version: 3.x
rasa.core.policies.form_policy
FormPolicy Objects
class FormPolicy(MemoizationPolicy)
Policy which handles prediction of Forms
recall
| recall(states: List[State], tracker: DialogueStateTracker, domain: Domain) -> Optional[Text]
Finds the action based on the given states.
Arguments:
states
- List of states.tracker
- The tracker.domain
- The Domain.
Returns:
The name of the action.
predict_action_probabilities
| predict_action_probabilities(tracker: DialogueStateTracker, domain: Domain, interpreter: NaturalLanguageInterpreter, **kwargs: Any, ,) -> PolicyPrediction
Predicts the corresponding form action if there is an active form.