rasa_sdk/forms.py
def from_entity(
        self,
        entity: Text,
        intent: Optional[Union[Text, List[Text]]] = None,
        not_intent: Optional[Union[Text, List[Text]]] = None,
        role: Optional[Text] = None,
        group: Optional[Text] = None,
    ) -> Dict[Text, Any]:
        """A dictionary for slot mapping to extract slot value.

        From:
        - an extracted entity
        - conditioned on
            - intent if it is not None
            - not_intent if it is not None,
                meaning user intent should not be this intent
            - role if it is not None
            - group if it is not None
        """

        intent, not_intent = self._list_intents(intent, not_intent)

        return {
            "type": "from_entity",
            "entity": entity,
            "intent": intent,
            "not_intent": not_intent,
            "role": role,
            "group": group,
        }
A dictionary for slot mapping to extract slot value.

        From:
        - an extracted entity
        - conditioned on
            - intent if it is not None
            - not_intent if it is not None,
                meaning user intent should not be this intent
            - role if it is not None
            - group if it is not None
        
A dictionary for slot mapping to extract slot value.
From:
an extracted entity
conditioned on
intent if it is not None
not_intent if it is not None,
meaning user intent should not be this intent
role if it is not None
group if it is not None
A dictionary for slot mapping to extract slot value . From : an extracted entity conditioned on intent if it is not None not_intent if it is not None meaning user intent should not be this intent role if it is not None group if it is not None
def from_entity(
        self,
        entity: Text,
        intent: Optional[Union[Text, List[Text]]] = None,
        not_intent: Optional[Union[Text, List[Text]]] = None,
        role: Optional[Text] = None,
        group: Optional[Text] = None,
    ) -> Dict[Text, Any]:
        intent, not_intent = self._list_intents(intent, not_intent)
        return {
            "type": "from_entity",
            "entity": entity,
            "intent": intent,
            "not_intent": not_intent,
            "role": role,
            "group": group,
        }
def from_entity ( self , entity : Text , intent : Optional [ Union [ Text , List [ Text ] ] ] = None , not_intent : Optional [ Union [ Text , List [ Text ] ] ] = None , role : Optional [ Text ] = None , group : Optional [ Text ] = None , ) -> Dict [ Text , Any ] : intent , not_intent = self . _list_intents ( intent , not_intent ) return { "type" : "from_entity" , "entity" : entity , "intent" : intent , "not_intent" : not_intent , "role" : role , "group" : group , }
A dictionary for slot mapping to extract slot value.
A dictionary for slot mapping to extract slot value .
"""A dictionary for slot mapping to extract slot value.

        From:
        - an extracted entity
        - conditioned on
            - intent if it is not None
            - not_intent if it is not None,
                meaning user intent should not be this intent
            - role if it is not None
            - group if it is not None
        """
self
entity
Text
intent
Optional[Union[Text, List[Text]]]
not_intent
Optional[Union[Text, List[Text]]]
role
Optional[Text]
group
Optional[Text]