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

Refactor/converse messages #371

Merged
merged 5 commits into from
Oct 13, 2023

Conversation

emphasize
Copy link
Member

@emphasize emphasize commented Oct 10, 2023

Changes the from core emitted message types of converse messages to directly address skills. (opposed to bulk messaging)
Furthermore only active skills will be eligible to initiate converse ping pong while collecting skills.

Message Type Message Data Emits response (Skill) handled by (Skill)
{self.skill_id}.converse.ping N/A skill.converse.pong self._handle_converse_ack
{self.skill_id}.converse.request {'utterances': list, 'lang': str} skill.converse.response self.converse
{self.skill_id}.converse.get_response {'utterances': list, 'lang': str} N/A self.get_response

This reduces the bus workload and resources consumed by skills. In direct comparison we`re increasing the responsiveness of converse up to 40% (dependent on the active skills)

Tests are adjusted and working (if both changes are pulled)


Skill counterpart PR: OpenVoiceOS/OVOS-workshop#144
Message spec PR: OpenVoiceOS/message_spec#2

@JarbasAl JarbasAl added enhancement New feature or request refactor code refactor without functional changes labels Oct 11, 2023
@emphasize
Copy link
Member Author

what the heck is it complaining about?

@JarbasAl JarbasAl force-pushed the refactor/converse_messages branch from 14255ea to 1676dcf Compare October 12, 2023 23:56
@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (ba7f008) 60.57% compared to head (6057a94) 59.88%.
Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #371      +/-   ##
==========================================
- Coverage   60.57%   59.88%   -0.70%     
==========================================
  Files          13       13              
  Lines        1854     1857       +3     
==========================================
- Hits         1123     1112      -11     
- Misses        731      745      +14     
Flag Coverage Δ
unittests 59.88% <100.00%> (-0.70%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
ovos_core/intent_services/converse_service.py 80.42% <100.00%> (-5.07%) ⬇️
ovos_core/version.py 76.92% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JarbasAl JarbasAl merged commit 2408fd5 into OpenVoiceOS:dev Oct 13, 2023
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor code refactor without functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants