Skip to content

Commit

Permalink
feat:pipeline plugin factory
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 16, 2024
1 parent f2619b0 commit 0f72239
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion ovos_plugin_manager/templates/pipeline.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import abc
from collections import namedtuple
from dataclasses import dataclass
from typing import Optional, Dict, List, Union

Expand All @@ -7,8 +8,21 @@
from ovos_utils.fakebus import FakeBus



# Intent match response tuple, ovos-core expects PipelinePlugin to return this data structure
# intent_service: Name of the service that matched the intent
# intent_type: intent name (used to call intent handler over the message bus)
# intent_data: data provided by the intent match
# skill_id: the skill this handler belongs to
# TODO - deprecated
IntentMatch = namedtuple('IntentMatch',
['intent_service', 'intent_type',
'intent_data', 'skill_id', 'utterance']
)


@dataclass()
class IntentMatch:
class IntentHandlerMatch:
# ovos-core expects PipelinePlugins to return this data structure
# replaces old IntentMatch response namedtuple
# intent_service: Name of the service that matched the intent
Expand Down

0 comments on commit 0f72239

Please sign in to comment.