rasa_sdk/forms.py
def request_next_slot(
        self,
        dispatcher: "CollectingDispatcher",
        tracker: "Tracker",
        domain: "DomainDict",
    ) -> Optional[List[EventType]]:
        """Request the next slot and utter template if needed,
        else return None"""

        for slot in self.required_slots(tracker):
            if self._should_request_slot(tracker, slot):
                logger.debug(f"Request next slot '{slot}'")
                dispatcher.utter_message(template=f"utter_ask_{slot}", **tracker.slots)
                return [SlotSet(REQUESTED_SLOT, slot)]

        # no more required slots to fill
        return None
Request the next slot and utter template if needed,
        else return None
Request the next slot and utter template if needed,
else return None
Request the next slot and utter template if needed else return None
def request_next_slot(
        self,
        dispatcher: "CollectingDispatcher",
        tracker: "Tracker",
        domain: "DomainDict",
    ) -> Optional[List[EventType]]:
        for slot in self.required_slots(tracker):
            if self._should_request_slot(tracker, slot):
                logger.debug(f"Request next slot '{slot}'")
                dispatcher.utter_message(template=f"utter_ask_{slot}", **tracker.slots)
                return [SlotSet(REQUESTED_SLOT, slot)]
        return None
def request_next_slot ( self , dispatcher : "CollectingDispatcher" , tracker : "Tracker" , domain : "DomainDict" , ) -> Optional [ List [ EventType ] ] : for slot in self . required_slots ( tracker ) : if self . _should_request_slot ( tracker , slot ) : logger . debug ( f"Request next slot '{slot}'" ) dispatcher . utter_message ( template = f"utter_ask_{slot}" , ** tracker . slots ) return [ SlotSet ( REQUESTED_SLOT , slot ) ] return None
Request the next slot and utter template if needed,
else return None
Request the next slot and utter template if needed else return None
"""Request the next slot and utter template if needed,
        else return None""" # no more required slots to fill
self
dispatcher
"CollectingDispatcher"
tracker
"Tracker"
domain
"DomainDict"