2019-07-11 22:54:33 +02:00
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
|
|
from platypush.plugins import Plugin
|
|
|
|
|
|
|
|
class AssistantPlugin(ABC, Plugin):
|
|
|
|
"""
|
|
|
|
Base class for assistant plugins
|
|
|
|
"""
|
|
|
|
|
|
|
|
@abstractmethod
|
2019-07-12 14:53:12 +02:00
|
|
|
def start_conversation(self, *args, language=None, **kwargs):
|
2019-07-11 22:54:33 +02:00
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
def stop_conversation(self, *args, **kwargs):
|
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
|
|
|
|
# vim:sw=4:ts=4:et:
|