rasa/core/actions/action.py
def action_from_name(name: Text, action_endpoint: Optional[EndpointConfig],
                     user_actions: List[Text]) -> 'Action':
    """Return an action instance for the name."""

    defaults = {a.name(): a for a in default_actions()}

    if name in defaults and name not in user_actions:
        return defaults.get(name)
    elif name.startswith("utter_"):
        return UtterAction(name)
    else:
        return RemoteAction(name, action_endpoint)
Return an action instance for the name.
Return an action instance for the name.
Return an action instance for the name .
def action_from_name(name: Text, action_endpoint: Optional[EndpointConfig],
                     user_actions: List[Text]) -> 'Action':
    defaults = {a.name(): a for a in default_actions()}
    if name in defaults and name not in user_actions:
        return defaults.get(name)
    elif name.startswith("utter_"):
        return UtterAction(name)
    else:
        return RemoteAction(name, action_endpoint)
def action_from_name ( name : Text , action_endpoint : Optional [ EndpointConfig ] , user_actions : List [ Text ] ) -> 'Action' : defaults = { a . name ( ) : a for a in default_actions ( ) } if name in defaults and name not in user_actions : return defaults . get ( name ) elif name . startswith ( "utter_" ) : return UtterAction ( name ) else : return RemoteAction ( name , action_endpoint )
Return an action instance for the name.
Return an action instance for the name .
"""Return an action instance for the name."""
name
Text
action_endpoint
Optional[EndpointConfig]
user_actions
List[Text]