is this line correct?
return [SlotSet("ocr_result", (datetime, price, address_from, address_to))]
the origin code is:
from typing import Dict, Text, Any, List, Union
from rasa_sdk import Tracker
from rasa_sdk.executor import CollectingDispatcher
from rasa_sdk.forms import FormValidationAction
from rasa_sdk import Action
from rasa_sdk.events import SlotSet
from actions.ocrapi import get_ocr_api
import json
class ActionRequestOcrs(Action):
def name(self) -> Text:
return "action_request_ocr"
def run(
self,
dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any],) -> List[Dict]:
img_path = tracker.get_slot('ticket')
datetime,price,address_from,address_to,ocr_data="","","","",""
datetime,price,address_from,address_to,ocr_data = self.get_ocr_response(img_path)
dispatcher.utter_message(ocr_data)
return [SlotSet("ocr_result", (datetime, price, address_from, address_to))]```