This repository has been archived on 2023-06-09. You can view files and clone it, but cannot push or open issues or pull requests.
jarvis-server/jarvis/skills/research/wikipedia/__init__.py

18 lines
528 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")
def create_skill():
return WikipediaSkill()