actions.action_get_capital

This files contains custom action to get capital of a country.

Module Contents

Classes

ActionGetCapital

class actions.action_get_capital.ActionGetCapital

Bases: rasa_sdk.Action

name() Text
run(dispatcher: rasa_sdk.executor.CollectingDispatcher, tracker: rasa_sdk.Tracker, domain: Dict[Text, Any]) List[Dict[Text, Any]]

Returns

Parameters
  • dispatcher – Class responsible for sending messages back to user.

  • tracker – Class that maintains the state of a conversation.

  • domain – Dictionary containing information stored in ‘domain.yml’.