Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:allow pipelines to return a modified session #296

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
JarbasAl marked this conversation as resolved.
Show resolved Hide resolved
JarbasAl marked this conversation as resolved.
Show resolved Hide resolved
match_type: bool = True # compat


Expand Down
Loading