{"id":31908771,"url":"https://github.com/allenai/alexafsm","last_synced_at":"2025-10-13T15:55:56.261Z","repository":{"id":48184644,"uuid":"83077200","full_name":"allenai/alexafsm","owner":"allenai","description":"With alexafsm, developers can model dialog agents with first-class concepts such as states, attributes, transition, and actions. alexafsm also provides visualization and other tools to help understand, test, debug, and maintain complex FSM conversations.","archived":false,"fork":false,"pushed_at":"2023-05-01T20:15:37.000Z","size":3453,"stargazers_count":111,"open_issues_count":2,"forks_count":16,"subscribers_count":57,"default_branch":"master","last_synced_at":"2025-09-30T01:26:42.741Z","etag":null,"topics":["alexa","alexa-skill","finite-state-machine","fsm"],"latest_commit_sha":null,"homepage":"https://medium.com/ai2-blog/alexafsm-a-finite-state-machine-python-library-for-building-complex-alexa-skills-61c3af5a299d","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allenai.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-24T19:49:32.000Z","updated_at":"2024-06-15T02:18:55.000Z","dependencies_parsed_at":"2022-08-24T20:00:16.684Z","dependency_job_id":null,"html_url":"https://github.com/allenai/alexafsm","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/allenai/alexafsm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenai%2Falexafsm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenai%2Falexafsm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenai%2Falexafsm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenai%2Falexafsm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allenai","download_url":"https://codeload.github.com/allenai/alexafsm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenai%2Falexafsm/sbom","scorecard":{"id":185258,"data":{"date":"2025-08-11","repo":{"name":"github.com/allenai/alexafsm","commit":"0c2e8842ddbb4a34ac64a5139e7febee3b28889a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":5,"reason":"Found 5/10 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2023-62 / GHSA-m2qf-hxjv-5gpq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T19:41:54.096Z","repository_id":48184644,"created_at":"2025-08-16T19:41:54.097Z","updated_at":"2025-08-16T19:41:54.097Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015939,"owners_count":26085777,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alexa","alexa-skill","finite-state-machine","fsm"],"created_at":"2025-10-13T15:55:54.639Z","updated_at":"2025-10-13T15:55:56.253Z","avatar_url":"https://github.com/allenai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"alexafsm\n========\n\n* Finite-state machine library for building complex Alexa conversations.\n* Free software: Apache Software License 2.0.\n\nDialog agents need to keep track of the various pieces of information to make\ndecisions how to respond to a given user input. This is referred to as context,\nsession, or state tracking. As the dialog complexity increases, this\nstate-tracking logic becomes harder to write, debug, and maintain. This library\ntakes the finite-state machine design approach to address this complexity. Developers\nusing this library can model dialog agents with first-class concepts such as\nstates, attributes, transition, and actions. Visualization and other tools are\nalso provided to help understand and debug complex FSM conversations.\n\nAlso check out our [blog post](https://medium.com/@vha14/alexafsm-a-finite-state-machine-python-library-for-building-complex-alexa-skills-61c3af5a299d).\n\n## Features\n\n* FSM-based library for building Alexa skills with complex dialog state tracking.\n* Tools to validate, visualize, and print the FSM graph.\n* Support analytics with [VoiceLabs](http://voicelabs.co/).\n* Can be paired with any Python server library (Flask, CherryPy, etc.)\n* Written in Python 3.6 (primarily for type annotation and string interpolation).\n\n## Getting Started\n\nInstall from [PyPi](https://pypi.python.org/pypi/alexafsm):\n\n    pip install alexafsm\n\nConsult the [Alexa skill search](https://github.com/allenai/alexafsm/tree/master/tests/skillsearch) skill in the `tests` directory for details of how to\nwrite an `alexafsm` skill. An Alexa skill is composed of the following three classes:\n`SessionAttributes`, `States`, and `Policy`.\n\n### `SessionAttributes`\n\n`SessionAttributes` is a class that holds session attributes (`alexa_request['session']['attributes']`)\nand any information we need to keep track of dialog state.\n* The core attributes are `intent`, `slots`, and `state`.\n* `intent` and `slots` map directly to Alexa's concepts.\n* `slots` should be of type `Slots`, which in turn is defined as a named tuple, one\nfield for each slot type. In the skill search example, `Slots = namedtuple('Slots', ['query', 'nth']`).\nThis named tuple class should be specified in the class definition as `slots_cls = Slots`.\n* `state` holds the name of the current state in the state machine.\n* Each Alexa skill can contain arbitrary number of additional attributes. If an attribute is\nnot meant to be sent back to Alexa server (e.g. so as to reduce the payload size), it should\nbe added to `not_sent_fields`. In the skill search example, `searched` and `first_time` are not sent\nto Alexa server.\n\nSee the implementation of skill search skill's [`SessionAttributes`](https://github.com/allenai/alexafsm/blob/master/tests/skillsearch/session_attributes.py)\n\n###  `States`\n\n`States` is a class that specifies most of the FSM and its behavior. It holds a reference to\na `SessionAttributes` object, the type of which is specified by overriding the\n`session_attributes_cls` class attribute. The FSM is specified by a list of\nparameter-less methods. Consider the following method:\n\n```python\n@with_transitions(\n    {\n        'trigger': NEW_SEARCH,\n        'source': '*',\n        'prepare': 'm_search',\n        'conditions': 'm_has_result_and_query'\n    },\n    {\n        'trigger': NTH_SKILL,\n        'source': '*',\n        'conditions': 'm_has_nth',\n        'after': 'm_set_nth'\n    },\n    {\n        'trigger': PREVIOUS_SKILL,\n        'source': '*',\n        'conditions': 'm_has_previous',\n        'after': 'm_set_previous'\n    },\n    {\n        'trigger': NEXT_SKILL,\n        'source': '*',\n        'conditions': 'm_has_next',\n        'after': 'm_set_next'\n    },\n    {\n        'trigger': amazon_intent.NO,\n        'source': 'has_result',\n        'conditions': 'm_has_next',\n        'after': 'm_set_next'\n    }\n)\ndef has_result(self) -\u003e response.Response:\n    \"\"\"Offer a preview of a skill\"\"\"\n    attributes = self.attributes\n    query = attributes.query\n    skill = attributes.skill\n    asked_for_speech = ''\n    if attributes.first_time_presenting_results:\n        asked_for_speech = _you_asked_for(query)\n    if attributes.number_of_hits == 1:\n        skill_position_speech = 'The only skill I found is'\n    else:\n        skill_position_speech = f'The {ENGLISH_NUMBERS[attributes.skill_cursor]} skill is'\n        if attributes.first_time_presenting_results:\n            if attributes.number_of_hits \u003e 6:\n                num_hits = f'Here are the top {MAX_SKILLS} results.'\n            else:\n                num_hits = f'I found {len(attributes.skills)} skills.'\n            skill_position_speech = f'{num_hits} {skill_position_speech}'\n    return response.Response(\n        speech=f\"{asked_for_speech} \"\n               f\" {skill_position_speech} {_get_verbal_skill(skill)}.\"\n               f\" {HEAR_MORE}\",\n        card=f\"Search for {query}\",\n        card_content=f\"\"\"\n        Top result: {skill.name}\n\n        {_get_highlights(skill)}\n        \"\"\",\n        reprompt=DEFAULT_PROMPT\n    )\n```\n\nEach method encodes the following:\n\n* The name of the method is also the name of a state (`describing`) in the FSM.\n* The method may be decorated with one or several transitions, using `with_transitions`\ndecorators. Transitions can be inbound (`source` needs to be specified) or outbound (`dest`\nneeds to be specified).\n* Each method returns a `Response` object which is sent to Alexa.\n* Transitions can be specified with `prepare` and `conditions` attributes. See\nhttps://github.com/tyarkoni/transitions for detailed documentations. The values of these\nattributes are parameter-less methods of the `Policy` class.\n* The `prepare` methods are responsible for \"actions\" of the FSM such as querying\na database. The `after` methods are responsible for updating the state after the transition\ncompletes. They are the only methods responsible for side-effects, e.g. modifying\nthe attributes of the states. This design facilitates ease of debugging.\n\n### `Policy`\n\n`Policy` is the class that holds everything together. It contains a reference to a `States`\nobject, the type of which is specified by overriding the `states_cls` class attribute. A `Policy`\nobject initializes itself by constructing a FSM based on the `States` type. `Policy` class \ncontains the following key methods:\n\n* `handle` takes an Alexa request, parses it, and hands over all intent requests to `execute` method.\n* `execute` updates the policy's internal state with the request's\n    details (intent, slots, session attributes), then calls `trigger` to make the state transition.\n    It then looks up the corresponding response generating methods of the `States` class to generate\n    a response for Alexa.\n* `initialize` will initialize a policy without any request.\n* `validate` performs validation of a policy object based on `Policy` class definition and\n    a intent schema json file. It looks for intents that are not handled, invalid\n    source/dest/prepare specifications, and unreachable states. The test in `test_skillsearch.py`\n    performs such validation as a test of `alexafsm`.\n\nThe Alexa skill search skill in the `tests` directory also contains a Flask-based server that shows\nhow to use `Policy` in five lines of code:\n\n\n```python\n@app.route('/', methods=['POST'])\ndef main():\n    req = flask_request.json\n    policy = Policy.initialize()\n    return json.dumps(policy.handle(req, settings.vi)).encode('utf-8')\n```\n\n## Other Tools\n\n`alexafsm` supports validation, graph visualization, and printing of the FSM.\n\n### Validation\n\nSimply initialize a `Policy` before calling `validate`. This function takes as\ninput the path to the skill's Alexa intent schema json file and performs the\nfollowing checks:\n\n* All Alexa intents have corresponding events/triggers in the FSM.\n* All states have either inbound or outbound transitions.\n* All transitions are specified with valid source and destination states.\n* All conditions and prepare actions are handled with methods in the `Policy` class.\n\n### Change Detection with Record and Playback\n\nWhen making code changes that are not supposed to impact a skill's dialog logic, we may want a tool\nto check that the skill's logic indeed stay the same. This is done by first recording \n(`SkillSettings().record = True`) one or several sessions, making the code change, then checking \nif the changed code still produces the same set of dialogs (`SkillSettings().playback = True`).\nDuring playback, calls to databases such as ElasticSearch can be fulfilled from data read from files\ngenerated during the recording. This is done by decorating the database call with `recordable`\nfunction. See [the ElasticSearch call](https://github.com/allenai/alexafsm/blob/master/tests/skillsearch/clients.py#L40)\nin Skill Search for an example usage.\n\n### Graph Visualization\n\n`alexafsm` uses the `transitions` library's API to draw the FSM graph. For example,\nthe skill search skill's FSM can be visualized using the [graph.py](https://github.com/allenai/alexafsm/blob/master/tests/skillsearch/bin/graph.py).\ninvoked from [graph.sh](https://github.com/allenai/alexafsm/blob/master/tests/skillsearch/bin/graph.sh).\nThe resulting graph is displayed follow:\n\n![FSM Example](https://github.com/allenai/alexafsm/blob/master/tests/skillsearch/fsm.png)\n\n### Graph Printout\n\nFor complex graphs, it may be easier to inspect the FSM in text format. Use the\n`print_machine` method to accomplish this. The output for the skill search skill is\nbelow:\n\n```text\nMachine states:\n\tbad_navigate, describe_ratings, describing, exiting, has_result, helping, initial, is_that_all, no_query_search, no_result, search_prompt\n\nEvents and transitions:\n\nEvent: NthSkill\n\tSource: bad_navigate\n\t\tbad_navigate -\u003e bad_navigate, conditions: ['m_has_nth']\n\t\tbad_navigate -\u003e has_result, conditions: ['m_has_nth']\n\tSource: describe_ratings\n\t\tdescribe_ratings -\u003e bad_navigate, conditions: ['m_has_nth']\n\t\tdescribe_ratings -\u003e has_result, conditions: ['m_has_nth']\n\tSource: describing\n\t\tdescribing -\u003e bad_navigate, conditions: ['m_has_nth']\n\t\tdescribing -\u003e has_result, conditions: ['m_has_nth']\n\tSource: exiting\n\t\texiting -\u003e bad_navigate, conditions: ['m_has_nth']\n\t\texiting -\u003e has_result, conditions: ['m_has_nth']\n\tSource: has_result\n\t\thas_result -\u003e bad_navigate, conditions: ['m_has_nth']\n\t\thas_result -\u003e has_result, conditions: ['m_has_nth']\n\tSource: helping\n\t\thelping -\u003e bad_navigate, conditions: ['m_has_nth']\n\t\thelping -\u003e has_result, conditions: ['m_has_nth']\n\tSource: initial\n\t\tinitial -\u003e bad_navigate, conditions: ['m_has_nth']\n\t\tinitial -\u003e has_result, conditions: ['m_has_nth']\n\tSource: is_that_all\n\t\tis_that_all -\u003e bad_navigate, conditions: ['m_has_nth']\n\t\tis_that_all -\u003e has_result, conditions: ['m_has_nth']\n\tSource: no_query_search\n\t\tno_query_search -\u003e bad_navigate, conditions: ['m_has_nth']\n\t\tno_query_search -\u003e has_result, conditions: ['m_has_nth']\n\tSource: no_result\n\t\tno_result -\u003e bad_navigate, conditions: ['m_has_nth']\n\t\tno_result -\u003e has_result, conditions: ['m_has_nth']\n\tSource: search_prompt\n\t\tsearch_prompt -\u003e bad_navigate, conditions: ['m_has_nth']\n\t\tsearch_prompt -\u003e has_result, conditions: ['m_has_nth']\nEvent: PreviousSkill\n\tSource: bad_navigate\n\t\tbad_navigate -\u003e bad_navigate, conditions: ['m_has_previous']\n\t\tbad_navigate -\u003e has_result, conditions: ['m_has_previous']\n\tSource: describe_ratings\n\t\tdescribe_ratings -\u003e bad_navigate, conditions: ['m_has_previous']\n\t\tdescribe_ratings -\u003e has_result, conditions: ['m_has_previous']\n\tSource: describing\n\t\tdescribing -\u003e bad_navigate, conditions: ['m_has_previous']\n\t\tdescribing -\u003e has_result, conditions: ['m_has_previous']\n\tSource: exiting\n\t\texiting -\u003e bad_navigate, conditions: ['m_has_previous']\n\t\texiting -\u003e has_result, conditions: ['m_has_previous']\n\tSource: has_result\n\t\thas_result -\u003e bad_navigate, conditions: ['m_has_previous']\n\t\thas_result -\u003e has_result, conditions: ['m_has_previous']\n\tSource: helping\n\t\thelping -\u003e bad_navigate, conditions: ['m_has_previous']\n\t\thelping -\u003e has_result, conditions: ['m_has_previous']\n\tSource: initial\n\t\tinitial -\u003e bad_navigate, conditions: ['m_has_previous']\n\t\tinitial -\u003e has_result, conditions: ['m_has_previous']\n\tSource: is_that_all\n\t\tis_that_all -\u003e bad_navigate, conditions: ['m_has_previous']\n\t\tis_that_all -\u003e has_result, conditions: ['m_has_previous']\n\tSource: no_query_search\n\t\tno_query_search -\u003e bad_navigate, conditions: ['m_has_previous']\n\t\tno_query_search -\u003e has_result, conditions: ['m_has_previous']\n\tSource: no_result\n\t\tno_result -\u003e bad_navigate, conditions: ['m_has_previous']\n\t\tno_result -\u003e has_result, conditions: ['m_has_previous']\n\tSource: search_prompt\n\t\tsearch_prompt -\u003e bad_navigate, conditions: ['m_has_previous']\n\t\tsearch_prompt -\u003e has_result, conditions: ['m_has_previous']\nEvent: NextSkill\n\tSource: bad_navigate\n\t\tbad_navigate -\u003e bad_navigate, conditions: ['m_has_next']\n\t\tbad_navigate -\u003e has_result, conditions: ['m_has_next']\n\tSource: describe_ratings\n\t\tdescribe_ratings -\u003e bad_navigate, conditions: ['m_has_next']\n\t\tdescribe_ratings -\u003e has_result, conditions: ['m_has_next']\n\tSource: describing\n\t\tdescribing -\u003e bad_navigate, conditions: ['m_has_next']\n\t\tdescribing -\u003e has_result, conditions: ['m_has_next']\n\tSource: exiting\n\t\texiting -\u003e bad_navigate, conditions: ['m_has_next']\n\t\texiting -\u003e has_result, conditions: ['m_has_next']\n\tSource: has_result\n\t\thas_result -\u003e bad_navigate, conditions: ['m_has_next']\n\t\thas_result -\u003e has_result, conditions: ['m_has_next']\n\tSource: helping\n\t\thelping -\u003e bad_navigate, conditions: ['m_has_next']\n\t\thelping -\u003e has_result, conditions: ['m_has_next']\n\tSource: initial\n\t\tinitial -\u003e bad_navigate, conditions: ['m_has_next']\n\t\tinitial -\u003e has_result, conditions: ['m_has_next']\n\tSource: is_that_all\n\t\tis_that_all -\u003e bad_navigate, conditions: ['m_has_next']\n\t\tis_that_all -\u003e has_result, conditions: ['m_has_next']\n\tSource: no_query_search\n\t\tno_query_search -\u003e bad_navigate, conditions: ['m_has_next']\n\t\tno_query_search -\u003e has_result, conditions: ['m_has_next']\n\tSource: no_result\n\t\tno_result -\u003e bad_navigate, conditions: ['m_has_next']\n\t\tno_result -\u003e has_result, conditions: ['m_has_next']\n\tSource: search_prompt\n\t\tsearch_prompt -\u003e bad_navigate, conditions: ['m_has_next']\n\t\tsearch_prompt -\u003e has_result, conditions: ['m_has_next']\nEvent: AMAZON.NoIntent\n\tSource: has_result\n\t\thas_result -\u003e bad_navigate, conditions: ['m_has_next']\n\t\thas_result -\u003e has_result, conditions: ['m_has_next']\n\tSource: describe_ratings\n\t\tdescribe_ratings -\u003e is_that_all\n\tSource: describing\n\t\tdescribing -\u003e search_prompt\n\tSource: is_that_all\n\t\tis_that_all -\u003e search_prompt\nEvent: DescribeRatings\n\tSource: bad_navigate\n\t\tbad_navigate -\u003e describe_ratings, conditions: ['m_has_result']\n\tSource: describe_ratings\n\t\tdescribe_ratings -\u003e describe_ratings, conditions: ['m_has_result']\n\tSource: describing\n\t\tdescribing -\u003e describe_ratings, conditions: ['m_has_result']\n\tSource: exiting\n\t\texiting -\u003e describe_ratings, conditions: ['m_has_result']\n\tSource: has_result\n\t\thas_result -\u003e describe_ratings, conditions: ['m_has_result']\n\tSource: helping\n\t\thelping -\u003e describe_ratings, conditions: ['m_has_result']\n\tSource: initial\n\t\tinitial -\u003e describe_ratings, conditions: ['m_has_result']\n\tSource: is_that_all\n\t\tis_that_all -\u003e describe_ratings, conditions: ['m_has_result']\n\tSource: no_query_search\n\t\tno_query_search -\u003e describe_ratings, conditions: ['m_has_result']\n\tSource: no_result\n\t\tno_result -\u003e describe_ratings, conditions: ['m_has_result']\n\tSource: search_prompt\n\t\tsearch_prompt -\u003e describe_ratings, conditions: ['m_has_result']\nEvent: AMAZON.YesIntent\n\tSource: has_result\n\t\thas_result -\u003e describing\n\tSource: describe_ratings\n\t\tdescribe_ratings -\u003e describing\n\tSource: describing\n\t\tdescribing -\u003e exiting\n\tSource: is_that_all\n\t\tis_that_all -\u003e exiting\nEvent: AMAZON.CancelIntent\n\tSource: no_result\n\t\tno_result -\u003e exiting\n\tSource: search_prompt\n\t\tsearch_prompt -\u003e exiting\n\tSource: is_that_all\n\t\tis_that_all -\u003e exiting\n\tSource: bad_navigate\n\t\tbad_navigate -\u003e exiting\n\tSource: no_query_search\n\t\tno_query_search -\u003e exiting\n\tSource: describing\n\t\tdescribing -\u003e is_that_all\n\tSource: has_result\n\t\thas_result -\u003e is_that_all\n\tSource: describe_ratings\n\t\tdescribe_ratings -\u003e is_that_all\n\tSource: initial\n\t\tinitial -\u003e search_prompt\n\tSource: helping\n\t\thelping -\u003e search_prompt\nEvent: AMAZON.StopIntent\n\tSource: no_result\n\t\tno_result -\u003e exiting\n\tSource: search_prompt\n\t\tsearch_prompt -\u003e exiting\n\tSource: is_that_all\n\t\tis_that_all -\u003e exiting\n\tSource: bad_navigate\n\t\tbad_navigate -\u003e exiting\n\tSource: no_query_search\n\t\tno_query_search -\u003e exiting\n\tSource: describing\n\t\tdescribing -\u003e is_that_all\n\tSource: has_result\n\t\thas_result -\u003e is_that_all\n\tSource: describe_ratings\n\t\tdescribe_ratings -\u003e is_that_all\n\tSource: initial\n\t\tinitial -\u003e search_prompt\n\tSource: helping\n\t\thelping -\u003e search_prompt\nEvent: NewSearch\n\tSource: bad_navigate\n\t\tbad_navigate -\u003e exiting, conditions: ['m_searching_for_exit']\n\t\tbad_navigate -\u003e has_result, prepare: ['m_search'], conditions: ['m_has_result_and_query']\n\t\tbad_navigate -\u003e no_query_search, conditions: ['m_no_query_search']\n\t\tbad_navigate -\u003e no_result, prepare: ['m_search'], conditions: ['m_no_result']\n\tSource: describe_ratings\n\t\tdescribe_ratings -\u003e exiting, conditions: ['m_searching_for_exit']\n\t\tdescribe_ratings -\u003e has_result, prepare: ['m_search'], conditions: ['m_has_result_and_query']\n\t\tdescribe_ratings -\u003e no_query_search, conditions: ['m_no_query_search']\n\t\tdescribe_ratings -\u003e no_result, prepare: ['m_search'], conditions: ['m_no_result']\n\tSource: describing\n\t\tdescribing -\u003e exiting, conditions: ['m_searching_for_exit']\n\t\tdescribing -\u003e has_result, prepare: ['m_search'], conditions: ['m_has_result_and_query']\n\t\tdescribing -\u003e no_query_search, conditions: ['m_no_query_search']\n\t\tdescribing -\u003e no_result, prepare: ['m_search'], conditions: ['m_no_result']\n\tSource: exiting\n\t\texiting -\u003e exiting, conditions: ['m_searching_for_exit']\n\t\texiting -\u003e has_result, prepare: ['m_search'], conditions: ['m_has_result_and_query']\n\t\texiting -\u003e no_query_search, conditions: ['m_no_query_search']\n\t\texiting -\u003e no_result, prepare: ['m_search'], conditions: ['m_no_result']\n\tSource: has_result\n\t\thas_result -\u003e exiting, conditions: ['m_searching_for_exit']\n\t\thas_result -\u003e has_result, prepare: ['m_search'], conditions: ['m_has_result_and_query']\n\t\thas_result -\u003e no_query_search, conditions: ['m_no_query_search']\n\t\thas_result -\u003e no_result, prepare: ['m_search'], conditions: ['m_no_result']\n\tSource: helping\n\t\thelping -\u003e exiting, conditions: ['m_searching_for_exit']\n\t\thelping -\u003e has_result, prepare: ['m_search'], conditions: ['m_has_result_and_query']\n\t\thelping -\u003e no_query_search, conditions: ['m_no_query_search']\n\t\thelping -\u003e no_result, prepare: ['m_search'], conditions: ['m_no_result']\n\tSource: initial\n\t\tinitial -\u003e exiting, conditions: ['m_searching_for_exit']\n\t\tinitial -\u003e has_result, prepare: ['m_search'], conditions: ['m_has_result_and_query']\n\t\tinitial -\u003e no_query_search, conditions: ['m_no_query_search']\n\t\tinitial -\u003e no_result, prepare: ['m_search'], conditions: ['m_no_result']\n\tSource: is_that_all\n\t\tis_that_all -\u003e exiting, conditions: ['m_searching_for_exit']\n\t\tis_that_all -\u003e has_result, prepare: ['m_search'], conditions: ['m_has_result_and_query']\n\t\tis_that_all -\u003e no_query_search, conditions: ['m_no_query_search']\n\t\tis_that_all -\u003e no_result, prepare: ['m_search'], conditions: ['m_no_result']\n\tSource: no_query_search\n\t\tno_query_search -\u003e exiting, conditions: ['m_searching_for_exit']\n\t\tno_query_search -\u003e has_result, prepare: ['m_search'], conditions: ['m_has_result_and_query']\n\t\tno_query_search -\u003e no_query_search, conditions: ['m_no_query_search']\n\t\tno_query_search -\u003e no_result, prepare: ['m_search'], conditions: ['m_no_result']\n\tSource: no_result\n\t\tno_result -\u003e exiting, conditions: ['m_searching_for_exit']\n\t\tno_result -\u003e has_result, prepare: ['m_search'], conditions: ['m_has_result_and_query']\n\t\tno_result -\u003e no_query_search, conditions: ['m_no_query_search']\n\t\tno_result -\u003e no_result, prepare: ['m_search'], conditions: ['m_no_result']\n\tSource: search_prompt\n\t\tsearch_prompt -\u003e exiting, conditions: ['m_searching_for_exit']\n\t\tsearch_prompt -\u003e has_result, prepare: ['m_search'], conditions: ['m_has_result_and_query']\n\t\tsearch_prompt -\u003e no_query_search, conditions: ['m_no_query_search']\n\t\tsearch_prompt -\u003e no_result, prepare: ['m_search'], conditions: ['m_no_result']\nEvent: AMAZON.HelpIntent\n\tSource: bad_navigate\n\t\tbad_navigate -\u003e helping\n\tSource: describe_ratings\n\t\tdescribe_ratings -\u003e helping\n\tSource: describing\n\t\tdescribing -\u003e helping\n\tSource: exiting\n\t\texiting -\u003e helping\n\tSource: has_result\n\t\thas_result -\u003e helping\n\tSource: helping\n\t\thelping -\u003e helping\n\tSource: initial\n\t\tinitial -\u003e helping\n\tSource: is_that_all\n\t\tis_that_all -\u003e helping\n\tSource: no_query_search\n\t\tno_query_search -\u003e helping\n\tSource: no_result\n\t\tno_result -\u003e helping\n\tSource: search_prompt\n\t\tsearch_prompt -\u003e helping\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallenai%2Falexafsm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallenai%2Falexafsm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallenai%2Falexafsm/lists"}