jovotech / jovo-model

💬 A language model abstraction layer that works across NLU providers, including Alexa, Dialogflow, LUIS, Rasa, and more
https://www.jovo.tech/marketplace/jovo-model
Apache License 2.0
19 stars 11 forks source link

:sparkles: Add alexa name-free interaction support #94

Closed sadlowskij closed 9 months ago

sadlowskij commented 10 months ago

Proposed changes

This adds support for the interactionModel._nameFreeInteraction property to be added to the resulting Alexa Language Model.

I first thought that the object in the alexa section of the jovo language model would just be merged into the end result of the non platform specific build result. Is there a reason, why this is not the case?

Instead of going this way though, this follows the current approach of basically copy and pasting the nameFreeInteraction from model.alexa.interactionModel to alexaModel.interactionModel.

Types of changes

Checklist

sadlowskij commented 9 months ago

I tend to agree, this PR here does not really negatively impact future refactoring into that direction, so I think this should not really impact this PR. However looking into the future it might be worth it to overhaul this at some point in my opinion, especially if users keep running into similar issues like this more regularly.