rasa/core/training/interactive.py
async def is_listening_for_message(sender_id: Text,
                                   endpoint: EndpointConfig) -> bool:
    """Check if the conversation is in need for a user message."""

    tracker = await retrieve_tracker(endpoint, sender_id,
                                     EventVerbosity.APPLIED)

    for i, e in enumerate(reversed(tracker.get("events", []))):
        if e.get("event") == UserUttered.type_name:
            return False
        elif e.get("event") == ActionExecuted.type_name:
            return e.get("name") == ACTION_LISTEN_NAME
    return False
Check if the conversation is in need for a user message.
Check if the conversation is in need for a user message.
Check if the conversation is in need for a user message .
async def is_listening_for_message(sender_id: Text,
                                   endpoint: EndpointConfig) -> bool:
    tracker = await retrieve_tracker(endpoint, sender_id,
                                     EventVerbosity.APPLIED)
    for i, e in enumerate(reversed(tracker.get("events", []))):
        if e.get("event") == UserUttered.type_name:
            return False
        elif e.get("event") == ActionExecuted.type_name:
            return e.get("name") == ACTION_LISTEN_NAME
    return False
async def is_listening_for_message ( sender_id : Text , endpoint : EndpointConfig ) -> bool : tracker = await retrieve_tracker ( endpoint , sender_id , EventVerbosity . APPLIED ) for i , e in enumerate ( reversed ( tracker . get ( "events" , [ ] ) ) ) : if e . get ( "event" ) == UserUttered . type_name : return False elif e . get ( "event" ) == ActionExecuted . type_name : return e . get ( "name" ) == ACTION_LISTEN_NAME return False
Check if the conversation is in need for a user message.
Check if the conversation is in need for a user message .
"""Check if the conversation is in need for a user message."""
sender_id
Text
endpoint
EndpointConfig