rasa/core/nlg/callback.py
def nlg_request_format(template_name: Text,
                       tracker: DialogueStateTracker,
                       output_channel: Text,
                       **kwargs: Any) -> Dict[Text, Any]:
    """Create the json body for the NLG json body for the request."""

    tracker_state = tracker.current_state(EventVerbosity.ALL)

    return {
        "template": template_name,
        "arguments": kwargs,
        "tracker": tracker_state,
        "channel": {
            "name": output_channel
        }
    }
Create the json body for the NLG json body for the request.
Create the json body for the NLG json body for the request.
Create the json body for the NLG json body for the request .
def nlg_request_format(template_name: Text,
                       tracker: DialogueStateTracker,
                       output_channel: Text,
                       **kwargs: Any) -> Dict[Text, Any]:
    tracker_state = tracker.current_state(EventVerbosity.ALL)
    return {
        "template": template_name,
        "arguments": kwargs,
        "tracker": tracker_state,
        "channel": {
            "name": output_channel
        }
    }
def nlg_request_format ( template_name : Text , tracker : DialogueStateTracker , output_channel : Text , ** kwargs : Any ) -> Dict [ Text , Any ] : tracker_state = tracker . current_state ( EventVerbosity . ALL ) return { "template" : template_name , "arguments" : kwargs , "tracker" : tracker_state , "channel" : { "name" : output_channel } }
Create the json body for the NLG json body for the request.
Create the json body for the NLG json body for the request .
"""Create the json body for the NLG json body for the request."""
template_name
Text
tracker
DialogueStateTracker
output_channel
Text
kwargs
Any