rasa/core/training/interactive.py
async def _write_data_to_file(sender_id: Text, endpoint: EndpointConfig):
    """Write stories and nlu data to file."""

    story_path, nlu_path, domain_path = _request_export_info()

    tracker = await retrieve_tracker(endpoint, sender_id)
    evts = tracker.get("events", [])

    await _write_stories_to_file(story_path, evts)
    await _write_nlu_to_file(nlu_path, evts)
    await _write_domain_to_file(domain_path, evts, endpoint)

    logger.info("Successfully wrote stories and NLU data")
Write stories and nlu data to file.
Write stories and nlu data to file.
Write stories and nlu data to file .
async def _write_data_to_file(sender_id: Text, endpoint: EndpointConfig):
    story_path, nlu_path, domain_path = _request_export_info()
    tracker = await retrieve_tracker(endpoint, sender_id)
    evts = tracker.get("events", [])
    await _write_stories_to_file(story_path, evts)
    await _write_nlu_to_file(nlu_path, evts)
    await _write_domain_to_file(domain_path, evts, endpoint)
    logger.info("Successfully wrote stories and NLU data")
async def _write_data_to_file ( sender_id : Text , endpoint : EndpointConfig ) : story_path , nlu_path , domain_path = _request_export_info ( ) tracker = await retrieve_tracker ( endpoint , sender_id ) evts = tracker . get ( "events" , [ ] ) await _write_stories_to_file ( story_path , evts ) await _write_nlu_to_file ( nlu_path , evts ) await _write_domain_to_file ( domain_path , evts , endpoint ) logger . info ( "Successfully wrote stories and NLU data" )
Write stories and nlu data to file.
Write stories and nlu data to file .
"""Write stories and nlu data to file."""
sender_id
Text
endpoint
EndpointConfig