mycroft.engines package

mycroft.engines.intent_engine module

class mycroft.engines.intent_engine.IntentEngine(path_manager)[source]

Bases: object

Interface for intent engines

calc_intents(query)[source]

Run the intent engine to determine the probability of each intent against the query :param query: input sentence as a single string :return: dict of intent: intent_data where

Example return data: { ‘name’: ‘TimeSkill:time.ask’, ‘confidence’: ‘0.65’, ‘matches’: {‘location’: ‘new york’} }

on_intents_loaded()[source]

Override to run code when all intents have been registered

try_register_intent(*args, **kwargs)[source]

Attempt to register intent with given arguments :rtype str :returns intent name if parsed parameters, otherwise “”

mycroft.engines.intent_engine.extract_intent_name(namespaced_name)[source]

Ex. TimeSkill:time.ask -> time.ask

mycroft.engines.intent_engine.extract_skill_name(namespaced_name)[source]

Ex. TimeSkill:time.ask -> TimeSkill

mycroft.engines.intent_engine.make_namespaced(intent_name, skill_name)[source]

Mangle the intent name so that it doesn’t conflict and to save the skill name in the same string

mycroft.engines.padatious_engine module

class mycroft.engines.padatious_engine.PadatiousEngine(path_manager)[source]

Bases: mycroft.engines.intent_engine.IntentEngine

Interface for Padatious intent engine

GIT_BRANCH = 'feature/mycroft-simple'
GIT_URL = 'https://github.com/MatthewScholefield/padatious-mycroft.git'
HOST = '127.0.0.1'
PORT = 8014
calc_intents(query)[source]
on_intents_loaded()[source]
try_register_intent(skill_name, intent_name)[source]