Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 2, 2024
1 parent ef4a147 commit bdafaba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
5 changes: 1 addition & 4 deletions ovos_core/intent_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ def __init__(self, bus, config=None):
self.bus = bus
self.config = config or Configuration().get("intents", {})

# Dictionary for translating a skill id to a name
self.skill_names = {}

for p in OVOSPipelineFactory.get_installed_pipelines():
LOG.debug(f"Found pipeline: {p}")
LOG.info(f"Found pipeline: {p}")
OVOSPipelineFactory.create(use_cache=True, bus=self.bus) # pre-loa

self.utterance_plugins = UtteranceTransformersService(bus)
Expand Down
16 changes: 1 addition & 15 deletions test/end2end/minicroft.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,13 @@ def __init__(self, skill_ids, *args, **kwargs):
bus = FakeBus()
super().__init__(bus, *args, **kwargs)
self.skill_ids = skill_ids
self.intent_service = self._register_intent_services()
self.intent_service = IntentService(self.bus)
self.scheduler = EventScheduler(bus, schedule_file="/tmp/schetest.json")

def load_metadata_transformers(self, cfg):
self.intent_service.metadata_plugins.config = cfg
self.intent_service.metadata_plugins.load_plugins()

def _register_intent_services(self):
"""Start up the all intent services and connect them as needed.
Args:
bus: messagebus client to register the services on
"""
service = IntentService(self.bus)
# Register handler to trigger fallback system
self.bus.on(
'mycroft.skills.fallback',
FallbackSkill.make_intent_failure_handler(self.bus)
)
return service

def load_plugin_skills(self):
LOG.info("loading skill plugins")
plugins = find_skill_plugins()
Expand Down

0 comments on commit bdafaba

Please sign in to comment.