I am new in rasa and am facing a problem while trying to execute a python code imported into the actions.py. To execute the python code it needs a value that it will get from the tracker.get_slot(“value”) and utter the result. But when I run the “rasa run actions” command it stucked like the below-
rasa run actions 2022-06-24 12:21:14 INFO rasa_sdk.endpoint - Starting action endpoint server…
Here is my actions.py file: from typing import Any, Text, Dict, List
from rasa_sdk.events import SlotSet
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
import pandas
import onemax
from onemax import *
class ActionAskParameter(Action):
def name(self) -> Text:
return "action_ask_parameter"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
parameter = tracker.get_slot("param")
print(param)
return [parameter]
param = run()
g_a(om, n_bits, n_iter, n_pop, r_c, param)
print(‘f(%s) = %f’ % (best, score))
Any help is highly appreciated.