Skip to content

Commit

Permalink
Troubleshooting Fallback skill compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 25, 2023
1 parent 92b56d4 commit 3b4a4c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions neon_utils/skills/common_query_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def __handle_query_action(self, message):
{"handler": "common_query"}))

def __handle_question_query(self, message):
# Override ovos-workshop implementation that doesn't pass `message`
search_phrase = message.data["phrase"]

# First, notify the requestor that we are attempting to handle
Expand Down
6 changes: 3 additions & 3 deletions neon_utils/skills/neon_fallback_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
from neon_utils.skills.neon_skill import NeonSkill
from ovos_utils.intents import IntentLayers
from ovos_workshop.decorators.layers import IntentLayers
from ovos_workshop.skills.fallback import FallbackSkillV1
from ovos_workshop.skills.fallback import FallbackSkillV2


# TODO: Consider deprecation and implementing ovos_workshop directly
class NeonFallbackSkill(NeonSkill, FallbackSkillV1):
class NeonFallbackSkill(NeonSkill, FallbackSkillV2):
"""
Class that extends the NeonSkill and FallbackSkill classes to provide
NeonSkill functionality to any Fallback skill subclassing this class.
Expand All @@ -54,4 +54,4 @@ def __init__(self, *args, **kwargs):
@property
def fallback_config(self):
# "skill_id": priority (int) overrides
return self.config_core["skills"].get("fallbacks", {})
return self.config_core["skills"].get("fallbacks", {})

0 comments on commit 3b4a4c3

Please sign in to comment.