{"id":18862076,"url":"https://github.com/appliedsoul/rasa_ext_plugin","last_synced_at":"2025-07-10T11:08:34.292Z","repository":{"id":57460056,"uuid":"210067394","full_name":"AppliedSoul/rasa_ext_plugin","owner":"AppliedSoul","description":"Rasa component plugin to extend state and store functionalities","archived":false,"fork":false,"pushed_at":"2019-10-08T21:58:49.000Z","size":10,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T05:34:31.819Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AppliedSoul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-21T23:57:28.000Z","updated_at":"2020-11-26T02:32:40.000Z","dependencies_parsed_at":"2022-08-28T15:11:34.724Z","dependency_job_id":null,"html_url":"https://github.com/AppliedSoul/rasa_ext_plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AppliedSoul/rasa_ext_plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppliedSoul%2Frasa_ext_plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppliedSoul%2Frasa_ext_plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppliedSoul%2Frasa_ext_plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppliedSoul%2Frasa_ext_plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AppliedSoul","download_url":"https://codeload.github.com/AppliedSoul/rasa_ext_plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppliedSoul%2Frasa_ext_plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264569459,"owners_count":23629603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T04:33:13.237Z","updated_at":"2025-07-10T11:08:34.263Z","avatar_url":"https://github.com/AppliedSoul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## rasa extension plugin\n\nExtends rasa core through component plugin to include:\n\n**max_event_history** :  limits the tracker to maximum of latest 'N ' events\n\n**ExtendedDialogueStateTracker**: optimize payload to action server to exclude tracker events.\n\n\n\n## Installation\n\n* Install the plugin (requires python3)\n\n  Online from pypi:\n\n  ```shell\n  pip install rasa-ext-plugin\n  ```\n\n  Offline:\n\n  ```shell\n  git clone https://github.com/AppliedSoul/rasa_ext_plugin.git\n  pip install -e rasa_ext_plugin\n  ```\n\n  \n\n* In RASA **endpoints.yaml** , setup the plugin tracker store\n\n  ```yaml\n  ###########################################################\n  # limiter tracker for existing store types : \n  # rasa_ext_plugin.core.tracker_store.InMemoryLimiterTrackerStore\n  # rasa_ext_plugin.core.tracker_store.RedisLimiterTrackerStore\n  # rasa_ext_plugin.core.tracker_store.MongoLimiterTrackerStore\n  # rasa_ext_plugin.core.tracker_store.SQLLimiterTrackerStore\n  #\n  # All limiter tracker store optionally accepts: \n  # max_event_history - limit maximum events tracked by tracker\n  ############################################################\n  \n  #tracker_store:\n  #  type: rasa_ext_plugin.core.tracker_store.InMemoryLimiterTrackerStore\n  #  url: localhost\n  #  max_event_history: 40\n    \n  tracker_store:\n      type: rasa_ext_plugin.core.tracker_store.RedisLimiterTrackerStore\n      url: localhost\n      port: 6379\n      db: 0\n  #    password:\n  #    record_exp:\n      max_event_history: 40\n      \n  ```\n\n* Startup the rasa server.\n\n\n\n## Customizing tracker payload sent to remote action server\n\nRefer to  [tracker_store]  _ExtendedDialogueStateTracker_  , modify the return state from  *current\\_state* method.\n\n```python\nclass ExtendedDialogueStateTracker(DialogueStateTracker):    \n    # override \n    # Actions uses this method to collect tracker's metadata\n    # before sending payload as json.\n    def current_state(\n        self, event_verbosity: EventVerbosity = EventVerbosity.NONE\n    ) -\u003e Dict[Text, Any]:\n        # conversation state format\n        #  {\n        #    \"sender_id\": self.sender_id,\n        #    \"slots\": self.current_slot_values(),\n        #    \"latest_message\": self.latest_message.parse_data,\n        #    \"latest_event_time\": latest_event_time,\n        #    \"followup_action\": self.followup_action,\n        #    \"paused\": self.is_paused(),\n        #    \"events\": evts,\n        #    \"latest_input_channel\": self.get_latest_input_channel(),\n        #    \"active_form\": self.active_form,\n        #    \"latest_action_name\": self.latest_action_name,\n        # }\n        state = super(ExtendedDialogueStateTracker,self).current_state(event_verbosity)\n        \n        #\n        # request payload to action server contains tracker information\n        # from this state \n\n        # removing events from state information\n        # action server currently ignores event history\n        # reduces size of request payload to action server\n        # \n        # additional unwanted keys can be poped to reduce size\n        #\n        state.pop(\"events\", None)\n        \n        return state\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappliedsoul%2Frasa_ext_plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappliedsoul%2Frasa_ext_plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappliedsoul%2Frasa_ext_plugin/lists"}