14 lines
478 B
Python
14 lines
478 B
Python
from adapt.intent import IntentBuilder
|
|
|
|
from jarvis.skills import Skill, SkillRegistering
|
|
from jarvis.skills.decorators import intent_handler
|
|
|
|
|
|
class WikipediaSkill(Skill, metaclass=SkillRegistering):
|
|
def __init__(self):
|
|
super().__init__("WikipediaSkill")
|
|
|
|
@intent_handler(IntentBuilder("WikipediaQueryIntent").require("Wikipedia").require("ArticleTitle"))
|
|
def handle_wikipedia_query_intent(self, data):
|
|
print("Handle Wikipedia Query Intent Method")
|