{ "info": { "author": "Noel Gaur", "author_email": "noel.gaur@analyticservice.net", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7" ], "description": "## 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 ) -> 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```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/appliedsoul/rasa_ext_plugin", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "rasa-ext-plugin", "package_url": "https://pypi.org/project/rasa-ext-plugin/", "platform": "", "project_url": "https://pypi.org/project/rasa-ext-plugin/", "project_urls": { "Homepage": "http://github.com/appliedsoul/rasa_ext_plugin" }, "release_url": "https://pypi.org/project/rasa-ext-plugin/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "Rasa plugins to extend state and store functionalities", "version": "0.0.4" }, "last_serial": 5946913, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "1bf8767f98ea8eda5272b0b2eb73bc53", "sha256": "0c405657acf58ec55d03a6268da7202f90a5d4389def5714357b8cea63934092" }, "downloads": -1, "filename": "rasa_ext_plugin-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1bf8767f98ea8eda5272b0b2eb73bc53", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2483, "upload_time": "2019-09-22T08:44:37", "url": "https://files.pythonhosted.org/packages/95/32/0a97fbca0062e46e68924ba10f7375a8de580ccc1cedeccad0e79b49cc5d/rasa_ext_plugin-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41e525ac4930a2841a2a7fcf3cd24bb2", "sha256": "60c169ebf3a71f3b7bbfe1e3879c30798c9ec3642ce8a4772eb29e7ad3d27706" }, "downloads": -1, "filename": "rasa-ext-plugin-0.0.2.tar.gz", "has_sig": false, "md5_digest": "41e525ac4930a2841a2a7fcf3cd24bb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2517, "upload_time": "2019-09-22T08:44:40", "url": "https://files.pythonhosted.org/packages/5d/e1/a0275db5f03939456747e2cf7864563fdeae8fd33439fa10ad0f3eee8c26/rasa-ext-plugin-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "fa556426ec1e210187b41511384bc169", "sha256": "95c83e23d982357a2fc98659dafe54a9b99a8fa38161dbc2c8e564ef3ce8b599" }, "downloads": -1, "filename": "rasa_ext_plugin-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "fa556426ec1e210187b41511384bc169", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4894, "upload_time": "2019-09-22T09:22:37", "url": "https://files.pythonhosted.org/packages/4c/0f/9906fcba01bf4a2186307f25c9f8fb429698755c55a71a52d8edbe3bd667/rasa_ext_plugin-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6d70fedf247a587f45d67fd69b94f065", "sha256": "9aeedf25301fa050027d19f020081758df95a957e7bd8c39fa91ef8af7072317" }, "downloads": -1, "filename": "rasa-ext-plugin-0.0.3.tar.gz", "has_sig": false, "md5_digest": "6d70fedf247a587f45d67fd69b94f065", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3290, "upload_time": "2019-09-22T09:22:39", "url": "https://files.pythonhosted.org/packages/3d/2b/4fe19c96c5408ac91a9914f62780813cfa5eb64739fb05f443b17331f7b0/rasa-ext-plugin-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "2cdb368362e552a2cead06bdcae82304", "sha256": "a10e9ac8d094bf2240a2d276eb19709ab44eb3b37f3ab34f475daa35199069be" }, "downloads": -1, "filename": "rasa-ext-plugin-0.0.4.tar.gz", "has_sig": false, "md5_digest": "2cdb368362e552a2cead06bdcae82304", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3649, "upload_time": "2019-10-08T22:13:19", "url": "https://files.pythonhosted.org/packages/dc/70/227f73345217bbc6cf99f94d91be66a39c0df2ccc5df03e864bafab710d8/rasa-ext-plugin-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2cdb368362e552a2cead06bdcae82304", "sha256": "a10e9ac8d094bf2240a2d276eb19709ab44eb3b37f3ab34f475daa35199069be" }, "downloads": -1, "filename": "rasa-ext-plugin-0.0.4.tar.gz", "has_sig": false, "md5_digest": "2cdb368362e552a2cead06bdcae82304", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3649, "upload_time": "2019-10-08T22:13:19", "url": "https://files.pythonhosted.org/packages/dc/70/227f73345217bbc6cf99f94d91be66a39c0df2ccc5df03e864bafab710d8/rasa-ext-plugin-0.0.4.tar.gz" } ] }