from jarvis.skills import SkillRegistering, Skill from jarvis.skills.decorators import intent_file_handler class WeatherSkill(Skill, metaclass=SkillRegistering): def __init__(self, data=dict): super().__init__("WeatherSkill", data) @intent_file_handler("handle_weather.intent", "HandleWeatherIntent") def handle_weather(self, data): pass @intent_file_handler("handle_temperature.intent", "HandleTemperatureIntent") def handle_temperature(self, data): pass @intent_file_handler("handle_is_it_hot.intent", "HandleIsItHotIntent") def handle_temperature(self, data): pass @intent_file_handler("handle_is_it_cold.intent", "HandleIsItColdIntent") def handle_temperature(self, data): pass def create_skill(data): return WeatherSkill(data)