Name 'Text' isnot defined

Hi everyone, I’m trying to use custom action to call an external API and get the result, but when I try to start actions with “rasa run actions” I get this error :

My actions file :

Thank you :slight_smile:

You have to import text. Actually you’ll probably have to import a few other types as well along the way as you extend your bot, so you could just import these:

from typing import Any, Text, Dict, List