rasa/core/training/interactive.py
def _validate_user_regex(latest_message: Dict[Text, Any],
                         intents: List[Text]) -> bool:
    """Validate if a users message input is correct.

    This assumes the user entered an intent directly, e.g. using
    `/greet`. Return `True` if the intent is a known one."""

    parse_data = latest_message.get("parse_data", {})
    intent = parse_data.get("intent", {}).get("name")

    if intent in intents:
        return True
    else:
        return False
Validate if a users message input is correct.

    This assumes the user entered an intent directly, e.g. using
    `/greet`. Return `True` if the intent is a known one.
Validate if a users message input is correct.
This assumes the user entered an intent directly, e.g. using
`/greet`. Return `True` if the intent is a known one.
Validate if a users message input is correct . This assumes the user entered an intent directly e . g . using ` / greet ` . Return ` True ` if the intent is a known one .
def _validate_user_regex(latest_message: Dict[Text, Any],
                         intents: List[Text]) -> bool:
    parse_data = latest_message.get("parse_data", {})
    intent = parse_data.get("intent", {}).get("name")
    if intent in intents:
        return True
    else:
        return False
def _validate_user_regex ( latest_message : Dict [ Text , Any ] , intents : List [ Text ] ) -> bool : parse_data = latest_message . get ( "parse_data" , { } ) intent = parse_data . get ( "intent" , { } ) . get ( "name" ) if intent in intents : return True else : return False
Validate if a users message input is correct.
Validate if a users message input is correct .
"""Validate if a users message input is correct.

    This assumes the user entered an intent directly, e.g. using
    `/greet`. Return `True` if the intent is a known one."""
latest_message
Dict[Text, Any]
intents
List[Text]