Add AdaptIntent alias
It is used so that the init argument isn't required and so that it is imported from within the mycroft modulepull/1625/head
parent
321807b1f1
commit
dbdd67f965
|
@ -19,5 +19,6 @@ from mycroft.messagebus.message import Message
|
|||
from mycroft.skills.context import adds_context, removes_context
|
||||
from mycroft.skills.core import MycroftSkill, FallbackSkill, \
|
||||
intent_handler, intent_file_handler
|
||||
from mycroft.skills.intent_service import AdaptIntent
|
||||
|
||||
MYCROFT_ROOT_PATH = abspath(join(dirname(__file__), '..'))
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
import time
|
||||
from adapt.context import ContextManagerFrame
|
||||
from adapt.engine import IntentDeterminationEngine
|
||||
from adapt.intent import IntentBuilder
|
||||
|
||||
from mycroft.configuration import Configuration
|
||||
from mycroft.messagebus.message import Message
|
||||
|
@ -24,6 +25,11 @@ from mycroft.util.parse import normalize
|
|||
from mycroft.metrics import report_timing, Stopwatch
|
||||
|
||||
|
||||
class AdaptIntent(IntentBuilder):
|
||||
def __init__(self, name=''):
|
||||
super().__init__(name)
|
||||
|
||||
|
||||
class ContextManager(object):
|
||||
"""
|
||||
ContextManager
|
||||
|
|
Loading…
Reference in New Issue