Hi! I upgrade my rasa from rasa 1.10 to rasa 2.0 and everything is working fine until i upgrade my rasa to the latest one.
Rasa Version : 2.8.12
Minimum Compatible Version: 2.8.9
Rasa SDK Version : 2.8.2
Rasa X Version : None
Python Version : 3.8.0
Operating System : Windows-10-10.0.19041-SP0
Python Path : C:\Users\User\miniconda3\envs\rasa_demo3\python.exe
I cant run my action files that required form. My question is do i have to change/add something in my forms.py since I only see Class for FormAction and it doesn’t have any class that related to FormValidationAction
import logging
import typing
from typing import Dict, Text, Any, List, Union, Optional, Tuple
from rasa_sdk import utils
from rasa_sdk.events import SlotSet, Form, EventType
from rasa_sdk.interfaces import Action, ActionExecutionRejection
logger = logging.getLogger(__name__)
if typing.TYPE_CHECKING:
from rasa_sdk import Tracker
from rasa_sdk.executor import CollectingDispatcher
# this slot is used to store information needed
# to do the form handling
REQUESTED_SLOT = "requested_slot"
class FormAction(Action):
def name(self) -> Text:
"""Unique identifier of the form"""
raise NotImplementedError("A form must implement a name")
@staticmethod
def required_slots(tracker: "Tracker") -> List[Text]:
"""A list of required slots that the form has to fill.
Use `tracker` to request different list of slots
depending on the state of the dialogue
"""
raise NotImplementedError(
"A form must implement required slots that it has to fill"
)
Here some of the code from my form.py! Please help me, thank you!