vnoelifant / cozmo-companion

1 stars 0 forks source link

Customize bot response based on prior detected sentiment #38

Closed vnoelifant closed 6 months ago

vnoelifant commented 8 months ago

Existing implementation assumed that the bot would provide a response to user based on sentiment and user request, but this was based on the sentiment and user request in the same speech utterance. The bot's response however, should be customized based on sentiment from prior user speech utterance. The app should be enhanced with stateful behavior that remembers the sentiment context across turns. This involves adding a new attribute to the VoiceAssistant class to store the last sentiment.