rasa/core/nlg/template.py
def generate_from_slots(self,
                            template_name: Text,
                            filled_slots: Dict[Text, Any],
                            output_channel: Text,
                            **kwargs: Any
                            ) -> Optional[Dict[Text, Any]]:
        """Generate a response for the requested template."""

        # Fetching a random template for the passed template name
        r = copy.deepcopy(self._random_template_for(template_name,
                                                    output_channel))
        # Filling the slots in the template and returning the template
        if r is not None:
            return self._fill_template_text(r, filled_slots, **kwargs)
        else:
            return None
Generate a response for the requested template.
Generate a response for the requested template.
Generate a response for the requested template .
def generate_from_slots(self,
                            template_name: Text,
                            filled_slots: Dict[Text, Any],
                            output_channel: Text,
                            **kwargs: Any
                            ) -> Optional[Dict[Text, Any]]:
        r = copy.deepcopy(self._random_template_for(template_name,
                                                    output_channel))
        if r is not None:
            return self._fill_template_text(r, filled_slots, **kwargs)
        else:
            return None
def generate_from_slots ( self , template_name : Text , filled_slots : Dict [ Text , Any ] , output_channel : Text , ** kwargs : Any ) -> Optional [ Dict [ Text , Any ] ] : r = copy . deepcopy ( self . _random_template_for ( template_name , output_channel ) ) if r is not None : return self . _fill_template_text ( r , filled_slots , ** kwargs ) else : return None
Generate a response for the requested template.
Generate a response for the requested template .
"""Generate a response for the requested template.""" # Fetching a random template for the passed template name # Filling the slots in the template and returning the template
self
template_name
Text
filled_slots
Dict[Text, Any]
output_channel
Text
kwargs
Any