notice

This is documentation for Rasa Open Source Documentation v2.0.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (2.1.x).

Version: 2.0.x

rasa.shared.utils.pykwalify_extensions

This module regroups custom validation functions, and it is loaded as an extension of the pykwalify library:

https://pykwalify.readthedocs.io/en/latest/extensions.html#extensions

require_response_keys

require_response_keys(responses: List[Dict[Text, Any]], rule_obj: Dict, path: Text) -> bool

Validate that response dicts have either the "text" key or the "custom" key.