AttributeError: 'Agent' object has no attribute 'handle_channels'

Hello

Rasa Version - 2.6.2

Error - AttributeError: ‘Agent’ object has no attribute ‘handle_channels’

from rasa.core.agent import Agent from rasa.core.interpreter import RasaNLUInterpreter from rasa.utils.endpoints import EndpointConfig from CustomConnector import RestInput

action_endpoint = EndpointConfig(url=“http://localhost:5075/webhook”)

action_endpoint = EndpointConfig(url=“http://localhost:5075/webhook”) nlu_interpreter = RasaNLUInterpreter(‘models/nlu’) agent = Agent.load(‘models’, interpreter = nlu_interpreter, action_endpoint = action_endpoint)

input_channel = RestInput()

agent.handle_channels([input_channel], http_port=5031, route=’/webhooks/’, cors="*")

agent.handle_channels([input_channel], http_port=5031, route=’/webhooks/’, cors="*")

Looks like handle_channels is deprecated. can someone help me please?

@akelad - do you have quick answer for me please?