[Rasa] Fallback 커스텀액션 및 이벤트 ( UserUtteranceReverted, ActionExecuted )
[ Rasa SDK ]eventsfrom rasa_sdk.events import ( Restarted, SlotSet, SessionStarted, ActionExecuted, EventType, FollowupAction, ActiveLoop, Form, UserUtteranceReverted, ConversationPaused , AllSlotsReset) * UserUtteranceReverted대화의 특정 시점으로 되돌리는 역할. ( 사용자의 마지막 발화를 무효화 ) * action_default_fallbackfrom rasa_sdk import Actionfrom rasa_sdk.events import UserUtteranceRevertedclass ActionHandleInc..
[Rasa] 커스텀 액션 이벤트 (FollowupAction, Restarted)
[ Rasa SDK ]eventsfrom rasa_sdk.events import ( Restarted, SlotSet, SessionStarted, ActionExecuted, EventType, FollowupAction, ActiveLoop, Form, UserUtteranceReverted, ConversationPaused , AllSlotsReset) * FollowupAction한 액션의 실행 후 즉시 다른 액션을 실행하도록 제어. from rasa_sdk import Actionfrom rasa_sdk.events import FollowupActionfrom rasa_sdk.interfaces import Trackerfrom rasa_sdk.executor import Co..
[Rasa] 챗봇_ slot 이벤트에 따른 action진행 (SlotSet)
[ Rasa SDK ]eventsfrom rasa_sdk.events import ( Restarted, SlotSet, SessionStarted, ActionExecuted, EventType, FollowupAction, ActiveLoop, Form, UserUtteranceReverted, ConversationPaused , AllSlotsReset) * SlotSetfrom rasa_sdk import Actionfrom rasa_sdk.events import SlotSetclass ActionSaveUserInfo(Action): def name(self): return "action_save_user_info" def run(self, dispatch..