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

fix: logs and pipeline query api #636

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion ovos_core/intent_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from ovos_adapt.opm import AdaptPipeline
from ovos_commonqa.opm import CommonQAService
from padacioso.opm import PadaciosoPipeline as PadaciosoService

from ocp_pipeline.opm import OCPPipelineMatcher
from ovos_bus_client.message import Message
Expand All @@ -33,6 +32,7 @@
from ovos_utils.lang import standardize_lang_tag
from ovos_utils.log import LOG, log_deprecation, deprecated
from ovos_utils.metrics import Stopwatch
from padacioso.opm import PadaciosoPipeline as PadaciosoService


class IntentService:
Expand Down Expand Up @@ -355,6 +355,7 @@ def handle_utterance(self, message: Message):
lang = self.disambiguate_lang(message)

utterances = message.data.get('utterances', [])
LOG.info(f"Parsing utterance: {utterances}")

stopwatch = Stopwatch()

Expand Down Expand Up @@ -465,6 +466,7 @@ def handle_get_intent(self, message):

# Loop through the matching functions until a match is found.
for pipeline, match_func in self.get_pipeline(skips=["converse",
"common_qa",
"fallback_high",
"fallback_medium",
"fallback_low"],
Expand Down
1 change: 1 addition & 0 deletions ovos_core/intent_services/converse_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def converse_with_skills(self, utterances: List[str], lang: str, message: Messag
if skill_id in session.blacklisted_skills:
LOG.debug(f"ignoring match, skill_id '{skill_id}' blacklisted by Session '{session.session_id}'")
continue
LOG.debug(f"Attempting to converse with skill: {skill_id}")
if self.converse(utterances, skill_id, lang, message):
state = session.utterance_states.get(skill_id, UtteranceState.INTENT)
return PipelineMatch(handled=state != UtteranceState.RESPONSE,
Expand Down
Loading