Skip to content

Commit 51db042

Browse files
authored
Merge pull request #649 from OpenVoiceOS/release-0.5.0a1
Release 0.5.0a1
2 parents 96d4fa1 + fa061a4 commit 51db042

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Changelog
22

3-
## [0.4.0a1](https://github.com/OpenVoiceOS/ovos-core/tree/0.4.0a1) (2025-01-29)
3+
## [0.5.0a1](https://github.com/OpenVoiceOS/ovos-core/tree/0.5.0a1) (2025-01-31)
44

5-
[Full Changelog](https://github.com/OpenVoiceOS/ovos-core/compare/0.3.8...0.4.0a1)
5+
[Full Changelog](https://github.com/OpenVoiceOS/ovos-core/compare/0.4.0...0.5.0a1)
66

77
**Merged pull requests:**
88

9-
- feat:multilang\_match [\#646](https://github.com/OpenVoiceOS/ovos-core/pull/646) ([JarbasAl](https://github.com/JarbasAl))
9+
- feat:persona pipeline [\#648](https://github.com/OpenVoiceOS/ovos-core/pull/648) ([JarbasAl](https://github.com/JarbasAl))
1010

1111

1212

ovos_core/intent_services/__init__.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from ovos_utils.log import LOG, log_deprecation, deprecated
3434
from ovos_utils.metrics import Stopwatch
3535
from padacioso.opm import PadaciosoPipeline as PadaciosoService
36+
from ovos_persona import PersonaService
3637
import warnings
3738

3839

@@ -113,6 +114,7 @@ def _load_pipeline_plugins(self):
113114
self._common_qa = CommonQAService(self.bus, self.config.get("common_query"))
114115
self._stop = StopService(self.bus)
115116
self._ocp = OCPPipelineMatcher(self.bus, config=self.config.get("OCP", {}))
117+
self._persona = PersonaService(self.bus, config=self.config.get("persona", {}))
116118

117119
def update_skill_name_dict(self, message):
118120
"""Messagebus handler, updates dict of id to skill name conversions."""
@@ -203,7 +205,9 @@ def get_pipeline(self, skips=None, session=None) -> Tuple[str, Callable]:
203205
"adapt_medium": self._adapt_service.match_medium,
204206
"fallback_medium": self._fallback.medium_prio,
205207
"adapt_low": self._adapt_service.match_low,
206-
"fallback_low": self._fallback.low_prio
208+
"fallback_low": self._fallback.low_prio,
209+
"ovos-persona-pipeline-plugin-high": self._persona.match_high,
210+
"ovos-persona-pipeline-plugin-low": self._persona.match_low
207211
}
208212
if self._padacioso_service is not None:
209213
matchers.update({
@@ -270,28 +274,28 @@ def _handle_deactivate(self, message):
270274
def _emit_match_message(self, match: Union[IntentHandlerMatch, PipelineMatch], message: Message, lang: str):
271275
"""
272276
Emit a reply message for a matched intent, updating session and skill activation.
273-
277+
274278
This method processes matched intents from either a pipeline matcher or an intent handler,
275279
creating a reply message with matched intent details and managing skill activation.
276-
280+
277281
Args:
278282
match (Union[IntentHandlerMatch, PipelineMatch]): The matched intent object containing
279283
utterance and matching information.
280284
message (Message): The original messagebus message that triggered the intent match.
281285
lang (str): The language of the pipeline plugin match
282-
286+
283287
Details:
284288
- Handles two types of matches: PipelineMatch and IntentHandlerMatch
285289
- Creates a reply message with matched intent data
286290
- Activates the corresponding skill if not previously deactivated
287291
- Updates session information
288292
- Emits the reply message on the messagebus
289-
293+
290294
Side Effects:
291295
- Modifies session state
292296
- Emits a messagebus event
293297
- Can trigger skill activation events
294-
298+
295299
Returns:
296300
None
297301
"""

ovos_core/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# START_VERSION_BLOCK
22
VERSION_MAJOR = 0
3-
VERSION_MINOR = 4
3+
VERSION_MINOR = 5
44
VERSION_BUILD = 0
5-
VERSION_ALPHA = 0
5+
VERSION_ALPHA = 1
66
# END_VERSION_BLOCK
77

88
# for compat with old imports

requirements/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ padacioso>=1.0.0, <2.0.0
77
ovos-adapt-parser>=1.0.5, <2.0.0
88
ovos_ocp_pipeline_plugin>=1.0.10, <2.0.0
99
ovos-common-query-pipeline-plugin>=1.0.5, <2.0.0
10+
ovos-persona>=0.4.4,<1.0.0
1011

1112
ovos-utils[extras]>=0.6.0,<1.0.0
1213
ovos_bus_client>=0.1.4,<2.0.0

0 commit comments

Comments
 (0)