Skip to content

Smarter fallback responses#292

Closed
celskeggs wants to merge 1 commit intoStypox:masterfrom
celskeggs:cskeggs-patch-4
Closed

Smarter fallback responses#292
celskeggs wants to merge 1 commit intoStypox:masterfrom
celskeggs:cskeggs-patch-4

Conversation

@celskeggs
Copy link
Contributor

This PR makes the fallback skill re-enable the microphone one time when the user says something that it can't understand. Of course, it's possible that the speech that Dicio is hearing is not directed at it, so it doesn't make sense to retry indefinitely: if the user's second attempt is also something that Dicio can't understand, this implementation omits the "Could you repeat?" part of the response and stops re-enabling the microphone until the user successfully performs another interaction.

Fixes #280.

I'm not totally happy about the fact that this PR requires me to move InteractionLog into the skill/ module, but I didn't see another good solution.

This way, we're able to have the fallback skill ask for the user to
repeat themself one time, and then stop asking.
@Stypox
Copy link
Owner

Stypox commented Feb 27, 2025

Thank you!

I'm not totally happy about the fact that this PR requires me to move InteractionLog into the skill/ module, but I didn't see another good solution.

Yeah the skills were never meant to know anything about the state of the conversation, so unfortunately this means the code architecture does not help achieving this. I gave it a try at modifying the architecture two times, too, and ended up with #296 which I prefer a bit over this PR (though I still don't like it so much that a skill gets access to possibly the SkillOutput of another skill).

So I'm closing in favor of #296 but thanks for the input! Let me know what you think about #296

@Stypox Stypox closed this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When Dicio doesn't understand, and asks me to repeat, it should enable the mic again automatically

2 participants