include skill_id in response

The intent_service now require the skill_id field to exist in the response, the converse request response now respons with the requested skill_id
pull/1886/head
Åke Forslund 2018-11-21 10:48:39 +01:00
parent 29310363d7
commit 7dcffab3f9
1 changed files with 3 additions and 2 deletions

View File

@ -254,8 +254,9 @@ class MockSkillsLoader(object):
'intent_failure',
FallbackSkill.make_intent_failure_handler(self.emitter))
def make_response(_):
data = dict(result=False)
def make_response(message):
skill_id = message.data.get('skill_id', '')
data = dict(result=False, skill_id=skill_id)
self.emitter.emit(Message('skill.converse.response', data))
self.emitter.on('skill.converse.request', make_response)