Getting error in implementing Custom channel in rasa core latest version


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 , also any reason you’re not usign the run script?