notice
This is documentation for Rasa Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).
Version: 2.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.