rasa/core/agent.py
async def _update_model_from_server(model_server: EndpointConfig,
                                    agent: 'Agent') -> None:
    """Load a zipped Rasa Core model from a URL and update the passed agent."""

    if not is_url(model_server.url):
        raise aiohttp.InvalidURL(model_server.url)

    model_directory = tempfile.mkdtemp()

    new_model_fingerprint = await _pull_model_and_fingerprint(
        model_server, model_directory, agent.fingerprint)
    if new_model_fingerprint:
        _load_and_set_updated_model(agent, model_directory,
                                    new_model_fingerprint)
    else:
        logger.debug("No new model found at "
                     "URL {}".format(model_server.url))
Load a zipped Rasa Core model from a URL and update the passed agent.
Load a zipped Rasa Core model from a URL and update the passed agent.
Load a zipped Rasa Core model from a URL and update the passed agent .
async def _update_model_from_server(model_server: EndpointConfig,
                                    agent: 'Agent') -> None:
    if not is_url(model_server.url):
        raise aiohttp.InvalidURL(model_server.url)
    model_directory = tempfile.mkdtemp()
    new_model_fingerprint = await _pull_model_and_fingerprint(
        model_server, model_directory, agent.fingerprint)
    if new_model_fingerprint:
        _load_and_set_updated_model(agent, model_directory,
                                    new_model_fingerprint)
    else:
        logger.debug("No new model found at "
                     "URL {}".format(model_server.url))
async def _update_model_from_server ( model_server : EndpointConfig , agent : 'Agent' ) -> None : if not is_url ( model_server . url ) : raise aiohttp . InvalidURL ( model_server . url ) model_directory = tempfile . mkdtemp ( ) new_model_fingerprint = await _pull_model_and_fingerprint ( model_server , model_directory , agent . fingerprint ) if new_model_fingerprint : _load_and_set_updated_model ( agent , model_directory , new_model_fingerprint ) else : logger . debug ( "No new model found at " "URL {}" . format ( model_server . url ) )
Load a zipped Rasa Core model from a URL and update the passed agent.
Load a zipped Rasa Core model from a URL and update the passed agent .
"""Load a zipped Rasa Core model from a URL and update the passed agent."""
model_server
EndpointConfig
agent
'Agent'