Getting error in implementing Custom channel in rasa core latest version

Hi

I want to create custom channel using latest rasa core. Documentation is not clear.

How do I use RestInput class to create custom channel?

from rasa_core.channels import RestInput

interpreter = RasaNLUInterpreter("model/nlu")

agent = Agent.load("model/dialogue", interpreter= interpreter)

channel = RestInput()

agent.handle_channels(list(channel) , http_port = 5001)

I am doing this way and getting error - RestInput’ object is not iterable How do I pass channel?

handle_channel function is not available. Instead handle_channels is available which requires list of channel to be passed.

Take a look at this https://github.com/RasaHQ/rasa_core/blob/master/rasa_core/run.py#L196 , also any reason you’re not usign the run script?