Mycroft-core: Feature: Add get_selection() to MycroftSkill class

Created on 29 Aug 2019  路  5Comments  路  Source: MycroftAI/mycroft-core

A common need for Skill developers is to present a list of options to the user and ask them to make a selection. This is possible using a combination of existing methods, however it requires each developer to work out their own pattern. Adding a standard method will make this easier for developers and provide a more consistent experience for users.

The current method generally involves:

  1. Take list of items
  2. Generate question dialog using join_list()
  3. get_response() from user
  4. validate response checking for:

    • fuzzy match of list item

    • ordinal or number eg "third item", or "number two"

  5. return selected item, or execute on_fail callback
medium Enhancement - proposed help wanted

Most helpful comment

Not as far as I've heard, go for it!

If you have questions we have a chat at chat.mycroft.ai

All 5 comments

Hi, I'm interested in this issue. Has anyone claimed it yet?

Not as far as I've heard, go for it!

If you have questions we have a chat at chat.mycroft.ai

Please do, thanks Arjan :smile:

Closed by #2302, no?

You are quite correct. Closing!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

beemorris picture beemorris  路  6Comments

fxdgear picture fxdgear  路  6Comments

krisgesling picture krisgesling  路  3Comments

ChanceNCounter picture ChanceNCounter  路  8Comments

WSLUser picture WSLUser  路  9Comments