rasa/core/agent.py
def handle_channels(self, channels: List[InputChannel],
                        http_port: int = constants.DEFAULT_SERVER_PORT,
                        route: Text = "/webhooks/",
                        cors=None) -> 'Sanic':
        """Start a webserver attaching the input channels and handling msgs.

        If ``serve_forever`` is set to ``True``, this call will be blocking.
        Otherwise the webserver will be started, and the method will
        return afterwards."""
        from rasa.core import run

        app = run.configure_app(channels, cors, None,
                                enable_api=False,
                                route=route)

        app.agent = self

        app.run(host='0.0.0.0', port=http_port,
                access_log=logger.isEnabledFor(logging.DEBUG))

        # this might seem unnecessary (as run does not return until the server
        # is killed) - but we use it for tests where we mock `.run` to directly
        # return and need the app to inspect if we created a properly
        # configured server
        return app
Start a webserver attaching the input channels and handling msgs.

        If ``serve_forever`` is set to ``True``, this call will be blocking.
        Otherwise the webserver will be started, and the method will
        return afterwards.
Start a webserver attaching the input channels and handling msgs.
Start a webserver attaching the input channels and handling msgs .
def handle_channels(self, channels: List[InputChannel],
                        http_port: int = constants.DEFAULT_SERVER_PORT,
                        route: Text = "/webhooks/",
                        cors=None) -> 'Sanic':
        from rasa.core import run
        app = run.configure_app(channels, cors, None,
                                enable_api=False,
                                route=route)
        app.agent = self
        app.run(host='0.0.0.0', port=http_port,
                access_log=logger.isEnabledFor(logging.DEBUG))
        return app
def handle_channels ( self , channels : List [ InputChannel ] , http_port : int = constants . DEFAULT_SERVER_PORT , route : Text = "/webhooks/" , cors = None ) -> 'Sanic' : from rasa . core import run app = run . configure_app ( channels , cors , None , enable_api = False , route = route ) app . agent = self app . run ( host = '0.0.0.0' , port = http_port , access_log = logger . isEnabledFor ( logging . DEBUG ) ) return app
Start a webserver attaching the input channels and handling msgs.
Start a webserver attaching the input channels and handling msgs .
"""Start a webserver attaching the input channels and handling msgs.

        If ``serve_forever`` is set to ``True``, this call will be blocking.
        Otherwise the webserver will be started, and the method will
        return afterwards.""" # this might seem unnecessary (as run does not return until the server # is killed) - but we use it for tests where we mock `.run` to directly # return and need the app to inspect if we created a properly # configured server
self
channels
List[InputChannel]
http_port
int
route
Text
cors