Migration problem from 0.11.12 to the latest

Hi, I was developing custom action for my slot in the previous version. Today, I am trying to update rasa core to the latest. It turns out that the custom action no longer run properly. I browsed the custom action page, but it doesn’t provide as much details what has been changed. It’s brought to my attention that there’s no longer BooleanFormField, as I am getting the error message when I started the action server. “ImportError: cannot import name ‘BooleanFormField’”

The following is my code in the action.py file

from future import absolute_import

from future import division

from future import print_function

from future import unicode_literals import os

from bot import RestaurantAPI

from rasa_core_sdk import Action

from rasa_core_sdk.events import SlotSet

from rasa_core_sdk.forms import ( BooleanFormField, EntityFormField, FormAction, FreeTextFormField ) import logging

logger = logging.getLogger(name) class AgreeInfo(object): def save(self, slot_agree):

    logger.debug("-------slot_agree---------")
    logger.debug(format(slot_agree))
    logger.debug("-------slot_agree---------")
    return		

class ActionAgree(FormAction):

RANDOMIZE = False


@staticmethod
def required_fields():
    return [
        FreeTextFormField("slot_agree")
        
    ]

def name(self):
    return 'action_agree'

def submit(self, dispatcher, tracker, domain):
    
    agree_info = AgreeInfo()
    booking = agree_info.save(tracker.latest_message.get("text"))
   
    return[]

Could anyone advise how to change the action.py in order to fit the latest version of rasa core?

Thanks

hi @jbasix2002, did you already read our migration guide? https://rasa.com/docs/core/migrations/