mycroft.managers package¶
mycroft.managers.client_manager module¶
mycroft.managers.format_manager module¶
mycroft.managers.intent_manager module¶
-
class
mycroft.managers.intent_manager.
IntentManager
(path_manager)[source]¶ Bases:
object
Used to handle creating both intents and intent engines
-
calc_results
(query)[source]¶ Find the best intent and run the handler to find the results
Parameters: query – input sentence Returns: name, results Rtype name: string (namespaced intent) Rtype results: dict
-
register_fallback
(handler)[source]¶ Register a function to be called as a general knowledge fallback
Parameters: handler – function that receives query and returns a dict of results, one of which is ‘confidence’ note: register_fallback in the MycroftSkill base class automatically manages results
-
register_intent
(skill_name, intent, handler)[source]¶ Register an intent via the corresponding intent engine It tries passing the arguments to each engine until one can interpret it correctly
Parameters: - skill_name –
- intent – argument used to build intent; can be anything
- handler – function that receives intent_data and returns a dict of results note: register_intent in the MycroftSkill base class automatically manages results
Returns: nothing
-