Skip to content

Commit

Permalink
feat:allow pipelines to return a modified session
Browse files Browse the repository at this point in the history
better state management, relates to OpenVoiceOS/ovos-core#643
  • Loading branch information
JarbasAl committed Jan 9, 2025
1 parent 535c7d7 commit f89984f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ovos_plugin_manager/templates/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from ovos_bus_client.client import MessageBusClient
from ovos_bus_client.message import Message
from ovos_bus_client.session import Session
from ovos_utils.fakebus import FakeBus

# LEGACY: Intent match response tuple, ovos-core~=0.2 expects PipelinePlugin to return this data structure
Expand Down Expand Up @@ -34,6 +35,7 @@ class IntentHandlerMatch:
match_data: Optional[Dict] = None
skill_id: Optional[str] = None
utterance: Optional[str] = None
updated_session: Optional[Session] = None


@dataclass
Expand All @@ -52,6 +54,7 @@ class PipelineMatch(IntentHandlerMatch):
match_data: Optional[Dict] = None
skill_id: Optional[str] = None
utterance: Optional[str] = None
updated_session: Optional[Session] = None
match_type: bool = True # compat


Expand Down

0 comments on commit f89984f

Please sign in to comment.